Skip to content
Snippets Groups Projects
Commit 54af944d authored by Seth Meranda's avatar Seth Meranda
Browse files

updates styles of for the search box.

parent 3e670d0c
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,13 @@ $page->head .= '
';
$page->addScript('searchFunc.js');
if (isset($_GET['u'])
if (isset($_GET['u']) //u is referring site
&& preg_match('/^https?/', $_GET['u'])
&& filter_var($_GET['u'], FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)
&& $scanned = @file_get_contents($_GET['u'])) {
// Add local site search results
$scanned = new UNL_Templates_Scanner($scanned);
if (isset($scanned->navlinks)) {
if (isset($scanned->navlinks)) { //we're scrapping the navigation and other content from the originatting site.
require_once 'HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault();
$config->set('Cache.SerializerPath', '/tmp');
......@@ -71,7 +71,8 @@ if (isset($_GET['u'])
$page->maincontentarea = '
<div id="searchform">
<form action="http://www1.unl.edu/search/" method="get">
<input style="width:90%" type="text" name="q" />';
<label for="q">Search</label>
<input type="text" name="q" id="q" />';
if (!empty($local_results)) {
$page->maincontentarea .= '<input type="hidden" name="u" value="'.htmlentities($_GET['u'], ENT_QUOTES).'" />';
}
......
/* Google/Peoplefinder Styles */
/** Search Box **/
#searchform form.gsc-search-box {
background: #E9D78E; /* old browsers */
background: -moz-linear-gradient(top, #E9D78E 0%, #DCC679 100%); /* firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#E9D78E), color-stop(100%,#DCC679)); /* webkit */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#E9D78E', endColorstr='#DCC679',GradientType=0 ); /* ie */
padding:13px;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
width:auto;
}
#searchform table.gsc-search-box {
width:auto;
}
#searchform input.gsc-input {
border: 1px solid #8A7C47;
color: #5C5C5C;
font-size: 1.5em;
height: 31px;
padding: 2px 0 0 8px;
width: 800px;
}
#searchform input.gsc-search-button {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-border-radius: 5px;
font-size: 1.5em;
padding:4px 10px;
background: #897B42;
border: 1px solid #BDAB61;
color: #FFFFFF;
cursor: pointer;
}
#searchform table.gsc-branding {
display:none;
}
/** Overridden directory styles **/
#maincontent .recordDetails {
margin-left:8px;
......
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