diff --git a/unl_theme/scripts/social.js b/unl_theme/scripts/social.js new file mode 100644 index 0000000000000000000000000000000000000000..2650137c8e0324734a797c47fdbf3e8871fe5034 --- /dev/null +++ b/unl_theme/scripts/social.js @@ -0,0 +1,9 @@ +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 diff --git a/unl_theme/views/default/css.php b/unl_theme/views/default/css.php index 9d06739544d65b1701c8c2f9284888e6131b3e0c..0f95095b6e41fd28e78fe9a917f7b2e2830bde61 100644 --- a/unl_theme/views/default/css.php +++ b/unl_theme/views/default/css.php @@ -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 *************************************** */ diff --git a/unl_theme/views/default/images/magnifyingGlass.png b/unl_theme/views/default/images/magnifyingGlass.png new file mode 100644 index 0000000000000000000000000000000000000000..b5805b37273f3acf1d3935c876574b1ad9ae4789 Binary files /dev/null and b/unl_theme/views/default/images/magnifyingGlass.png differ diff --git a/unl_theme/views/default/page_elements/unl_nav.php b/unl_theme/views/default/page_elements/unl_nav.php index 635638957e2b38cb8105e54fda367dcade602a83..bd30644a2a4e3b3ec36347fc8eb2a67993ae048e 100644 --- a/unl_theme/views/default/page_elements/unl_nav.php +++ b/unl_theme/views/default/page_elements/unl_nav.php @@ -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 diff --git a/unl_theme/views/default/pageshells/pageshell.php b/unl_theme/views/default/pageshells/pageshell.php index 02366fa3a9e5ec947945ad836adbc27da1180fe2..57cce0bcd0f68826b1d70e96929ecd06756f7168 100644 --- a/unl_theme/views/default/pageshells/pageshell.php +++ b/unl_theme/views/default/pageshells/pageshell.php @@ -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>';