]> git.mxchange.org Git - friendica.git/blobdiff - mod/search.php
use colorbox to display upcomming events
[friendica.git] / mod / search.php
index 67702ac0970382c20fe2dfdcbab3f121a2983abd..339efc92db5750a075851e428424615aea91686e 100644 (file)
@@ -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 .= '<h2>Items tagged with: ' . $search . '</h2>';
+               $title = sprintf( t('Items tagged with: %s'), $search);
        else
-               $o .= '<h2>Search results for: ' . $search . '</h2>';
+               $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);