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

Camel Case

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