diff options
author | Friendika <info@friendika.com> | 2011-10-11 19:27:58 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-11 19:27:58 -0700 |
commit | 2206d894b3fec7064b91e0420bcc2b16e9e7009b (patch) | |
tree | dff69c246dbba923a76e68404e2c012acbb29c07 /mod/search.php | |
parent | 557a7d0cec31a36d12898429c479c71671833dfd (diff) | |
download | volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.tar.gz volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.tar.bz2 volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.zip |
add contact_widgets and provide widgets on appropriate pages, fix the saved search widget
fix directory page on testbubble, don't use system theme for community, directory, and search if the viewer is logged in.
Diffstat (limited to 'mod/search.php')
-rw-r--r-- | mod/search.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/search.php b/mod/search.php index 034794e17..2a8bf1484 100644 --- a/mod/search.php +++ b/mod/search.php @@ -15,7 +15,7 @@ function search_saved_searches() { foreach($r as $rr) { $o .= '<li class="saved-search-li clear"><a href="search/?f=&remove=1&search=' . $rr['term'] . '" class="icon drophide savedsearchdrop" title="' . t('Remove term') . '" onclick="return confirmDelete();" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a> <a href="search/?f=&search=' . $rr['term'] . '" class="savedsearchterm" >' . $rr['term'] . '</a></li>' . "\r\n"; } - $o .= '</ul></div>' . "\r\n"; + $o .= '</ul><div class="clear"></div></div>' . "\r\n"; } return $o; @@ -50,6 +50,9 @@ function search_init(&$a) { $a->page['aside'] .= search_saved_searches(); } + else + unset($_SESSION['theme']); + } @@ -75,12 +78,9 @@ function search_content(&$a) { require_once('include/security.php'); require_once('include/conversation.php'); - if(x($_SESSION,'theme')) - unset($_SESSION['theme']); - $o = '<div id="live-search"></div>' . "\r\n"; - $o .= '<h3>' . t('Search') . '</h3>'; + $o .= '<h3>' . t('Search This Site') . '</h3>'; if(x($a->data,'search')) $search = notags(trim($a->data['search'])); |