Skip to content
Snippets Groups Projects
Commit 6926bc2b authored by Michael Fairchild's avatar Michael Fairchild
Browse files

Camel Case

parent 3b524d39
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ if (!$isEmbed) {
$page->breadcrumbs = renderTemplate('templates/breadcrumbs.tpl.php');
}
$local_results = '';
$localResults = '';
$inlineJS = '';
$apiKey = UNL_Search::getJSAPIKey();
$params = array(
......@@ -107,7 +107,7 @@ if (isset($_GET['u']) && $scanned = UNL_Search::getScannedPage($_GET['u'])) {
$context = json_encode($context);
$inlineJS .= "var LOCAL_SEARCH_CONTEXT = {$context};\n";
$local_results = renderTemplate('templates/google-results.tpl.php', array(
$localResults = renderTemplate('templates/google-results.tpl.php', array(
'title' => $page->titlegraphic,
'id' => 'local_results',
));
......@@ -125,12 +125,12 @@ $page->addScriptDeclaration($inlineJS);
$maincontent = '';
if (!$isEmbed) {
$maincontent .= renderTemplate('templates/search-form.tpl.php', array('local_results' => $local_results));
$maincontent .= renderTemplate('templates/search-form.tpl.php', array('local_results' => $localResults));
}
$maincontent .= renderTemplate('templates/search-results.tpl.php', array(
'isEmbed' => $isEmbed,
'local_results' => $local_results
'local_results' => $localResults
));
if (!$isEmbed) {
......
......@@ -14,10 +14,10 @@
<div class="bp960-wdn-col-one-fourth">
<div class="wdn-footer-module">
<?php
$related_links = file_get_contents('http://www.unl.edu/sharedcode/relatedLinks.html');
$related_links = preg_replace('#<h3>.*</h3>#', '<span role="heading" class="wdn-footer-heading">Related Links</span>', $related_links);
$related_links = preg_replace('#<ul>#', '<ul class="wdn-related-links-v1">', $related_links);
echo $related_links;
$relatedLinks = file_get_contents('http://www.unl.edu/sharedcode/relatedLinks.html');
$relatedLinks = preg_replace('#<h3>.*</h3>#', '<span role="heading" class="wdn-footer-heading">Related Links</span>', $relatedLinks);
$relatedLinks = preg_replace('#<ul>#', '<ul class="wdn-related-links-v1">', $relatedLinks);
echo $relatedLinks;
?>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment