Commit 16cfdb42 authored by Kevin Abel's avatar Kevin Abel
Browse files

Adjusted the markup to use the new grid layout, the correct google loader, and...

Adjusted the markup to use the new grid layout, the correct google loader, and not to use the depricated gSearchForm.
parent fdf34fc0
......@@ -14,8 +14,9 @@ if (isset($_GET['format'])
$page = UNL_Templates::factory($template);
$page->doctitle = '<title>UNL | Search</title>';
$local_results = '';
$page->addScript('http://www.google.com/jsapi' . (empty(UNL_Search::$jsapiKey) ? '' : '?key=' . UNL_Search::$jsapiKey));
$page->head .= '
<script src="http://www.google.com/jsapi?key=ABQIAAAAfxH7RKwDLHYhDD9dSUZe-RTELkNjcWhKXky6vQZrvQAPA5Uw6xR-eQp2X1fKnLG-UqeKQ_7mwv5CcQ" type="text/javascript"></script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="http://directory.unl.edu/css/peoplefinder_default.css" />
<link rel="stylesheet" type="text/css" href="searchCSS.css" />
';
......@@ -68,7 +69,7 @@ if (isset($_GET['u']) //u is referring site
');
$local_results = '
<h3 class="sec_header">Local Results</h3>
<div id="local_results"></div>';
<div id="local_results" class="google-results"></div>';
} else {
// Default search for no referring site.
$page->titlegraphic = '<h1>UNL Search</h1>';
......@@ -85,13 +86,19 @@ if (isset($_GET['u']) //u is referring site
$page->maincontentarea = '
<div id="searchform">
<form action="./" method="get">
<label for="q">Search</label>
<input type="text" name="q" id="q" />';
<fieldset>
<div class="grid10 first">
<label for="q">Search</label>
<input class="search-query" type="text" name="q" id="search_q" title="search" />';
if (!empty($local_results)) {
$page->maincontentarea .= '<input type="hidden" name="u" value="'.htmlentities($_GET['u'], ENT_QUOTES).'" />';
}
$page->maincontentarea .= '
<input type="submit" value="Search" />
</div>
<div class="grid2">
<input class="search-button" title="search" type="submit" value="Search" />
</div>
</fieldset>
</form>
<noscript>
<form action="http://www.googlesyndicatedsearch.com/u/UNL1" method="get">
......@@ -100,12 +107,12 @@ $page->maincontentarea .= '
</form>
</noscript>
</div>
<div class="three_col left">
<div class="grid8 first">
'.$local_results.'
<h3 class="sec_header">UNL Web</h3>
<div id="unl_results"></div>
<div id="unl_results" class="google-results"></div>
</div>
<div class="col right">
<div class="grid4">
<h3 class="sec_header">UNL Directory</h3>
<div id="ppl_results"></div>
<a href="http://www1.unl.edu/wdn/wiki/About_Peoplefinder">About the UNL Directory</a>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment