X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsearch.php;h=339efc92db5750a075851e428424615aea91686e;hb=5f89cb09234bc79aab2be93778609b344239c3da;hp=5fc96178501f557c73329779bca13aa95aa427e7;hpb=9a22b4818e0a406c89ff1cc84be4232c8a979f78;p=friendica.git diff --git a/mod/search.php b/mod/search.php index 5fc9617850..339efc92db 100644 --- a/mod/search.php +++ b/mod/search.php @@ -15,11 +15,11 @@ function search_saved_searches() { $saved = array(); foreach($r as $rr) { $saved[] = array( - 'id' => $rr['id'], - 'term' => $rr['term'], - 'encodedterm' => urlencode($rr['term']), - 'delete' => t('Remove term'), - 'selected' => ($search==$rr['term']), + 'id' => $rr['id'], + 'term' => $rr['term'], + 'encodedterm' => urlencode($rr['term']), + 'delete' => t('Remove term'), + 'selected' => ($search==$rr['term']), ); } @@ -27,10 +27,10 @@ function search_saved_searches() { $tpl = get_markup_template("saved_searches_aside.tpl"); $o .= replace_macros($tpl, array( - '$title' => t('Saved Searches'), - '$add' => '', - '$searchbox' => '', - '$saved' => $saved, + '$title' => t('Saved Searches'), + '$add' => '', + '$searchbox' => '', + '$saved' => $saved, )); } @@ -177,9 +177,13 @@ function search_content(&$a) { if($tag) - $o .= '

' . sprintf( t('Items tagged with: %s'), $search) . '

'; + $title = sprintf( t('Items tagged with: %s'), $search); else - $o .= '

' . sprintf( t('Search results for: %s'), $search) . '

'; + $title = sprintf( t('Search results for: %s'), $search); + + $o .= replace_macros(get_markup_template("section_title.tpl"),array( + '$title' => $title + )); logger("Start Conversation for '".$search."'", LOGGER_DEBUG); $o .= conversation($a,$r,'search',false);