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

started common JS file and added it to the pear setup. Also some files for the...

started common JS file and added it to the pear setup. Also some files for the styling of the search box.
parent eb868cd1
No related branches found
No related tags found
No related merge requests found
WDN.jQuery(document).ready(function() {
WDN.jQuery('form#searchform label').css({display: "block");
WDN.jQuery('form#searchform input#search_input').focus(function(){
if (WDN.jQuery('#wdn_search_form input#search_input').val() != "") {
WDN.jQuery(this).siblings("label").hide();
};
})
}
})
\ No newline at end of file
......@@ -790,9 +790,30 @@ p.user_menu_friends_of {
#maincontent #elgg_topbar_container_search {
float:right;
diplay:block;
margin-top:-30px;
margin-bottom:30px;
margin-top:-25px;
margin-bottom:20px;
}
form#searchform input#search_input {background:#eee; border:1px solid #ccc;
border-color:#ccc #fff #fff #ccc;padding:2px;width:200px;}
form#searchform label {
z-index:10;
position:absolute;
margin-left:5px;
margin-top:2px;
color:#6d6d6d;
display:none;
}
form#searchform .search_submit_button {
background:url('<?php echo $vars['url']; ?>/mod/unl_theme/views/default/images/magnifyingGlass.png') no-repeat;
width:20px;
height:20px;
text-indent:-9999em;
border:none;
}
form#searchform .search_submit_button:hover {
cursor:pointer;
}
/* ***************************************
SEARCH LISTINGS
*************************************** */
......
unl_theme/views/default/images/magnifyingGlass.png

527 B

......@@ -88,9 +88,11 @@
</ul>
<div id="elgg_topbar_container_search">
<form id="searchform" action="<?php echo $vars['url']; ?>search/" method="get">
<fieldset>
<label for="search_input">Search the Social Network</label>
<input type="text" id="search_input" name="tag" class="search_input" />
<input type="submit" value="Search" class="search_submit_button" />
<input type="submit" value="Go" class="search_submit_button" />
</fieldset>
</form>
</div>
<div class="clear"></div>
\ No newline at end of file
......@@ -16,9 +16,9 @@ if (empty($vars['title'])) {
$title = $vars['config']->sitename . ": " . $vars['title'];
}
$page->breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li>Social Network</li> </ul>";
$page->doctitle = '<title>'.$title.'</title>';
$page->head .= elgg_view('page_elements/header', $vars);
$page->addScript($vars['url'] . 'mod/unl_theme/scripts/social.js');
$page->maincontentarea .= elgg_view('page_elements/unl_nav', $vars);
$page->titlegraphic = '<h1>'.$vars['config']->sitename.'</h1>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment