]> git.mxchange.org Git - friendica.git/commitdiff
profice a general content wrapper template.
authorrabuzarus <>
Tue, 7 Jun 2016 14:32:02 +0000 (16:32 +0200)
committerrabuzarus <>
Tue, 7 Jun 2016 14:32:02 +0000 (16:32 +0200)
mod/search.php
view/templates/content_wrapper.tpl [new file with mode: 0644]
view/theme/frio/css/style.css
view/theme/frio/templates/saved_searches_aside.tpl

index 790f577ba6e17511b6be30b39c3de963da5114a8..fd8a9eb64b83cff1a99cbfdf5f88ab063ced04a5 100644 (file)
@@ -132,9 +132,6 @@ function search_content(&$a) {
 
        nav_set_selected('search');
 
-
-       $o = '<h3>' . t('Search') . '</h3>';
-
        if(x($a->data,'search'))
                $search = notags(trim($a->data['search']));
        else
@@ -146,8 +143,13 @@ function search_content(&$a) {
                $search = ((x($_GET,'tag')) ? notags(trim(rawurldecode($_GET['tag']))) : '');
        }
 
-
-       $o .= search($search,'search-box','search',((local_user()) ? true : false), false);
+       // contruct a wrapper for the search header
+       $o .= replace_macros(get_markup_template("content_wrapper.tpl"),array(
+               'name' => "search-header",
+               '$title' => t("Search"),
+               '$title_size' => 3,
+               '$content' => search($search,'search-box','search',((local_user()) ? true : false), false)
+       ));
 
        if(strpos($search,'#') === 0) {
                $tag = true;
@@ -160,7 +162,7 @@ function search_content(&$a) {
                return dirfind_content($a);
        }
 
-        if(x($_GET,'search-option'))
+       if(x($_GET,'search-option'))
                switch($_GET['search-option']) {
                        case 'fulltext':
                                break;
diff --git a/view/templates/content_wrapper.tpl b/view/templates/content_wrapper.tpl
new file mode 100644 (file)
index 0000000..b418715
--- /dev/null
@@ -0,0 +1,12 @@
+
+<div {{if $name}}id="{{$name}}-wrapper"{{/if}} class="general-content-wrapper">
+       {{* give different possibilities for the size of the heading *}}
+       {{if $title_size}}
+               <h{{$title_size}} {{if $name}}id="{{$name}}-heading"{{/if}}>{{$title}}</h{{$title_size}}>
+       {{else}}
+       {{include file="section_title.tpl"}}
+       {{/if}}
+
+       {{* output the content *}}
+       {{$content}}
+</div>
index e6b51be298f04db0db8e6cab9b724644ed2ada97..34b56efff870cc242706b7f494c7017aff8aec67 100644 (file)
@@ -1655,7 +1655,22 @@ ul.dropdown-menu li:hover {
     color: $link_color;
     font-size: 20px;
 }
-
+/* Section-Content-Wrapper */
+#search-header-wrapper {
+    padding: 15px;
+    padding-bottom: 20px;
+    margin-bottom: 20px;
+    border: none;
+    /*background-color: #fff;*/
+    background-color: rgba(255,255,255,$contentbg_transp);
+    border-radius: 4px;
+    position: relative;
+    /*overflow: hidden;*/
+    color: #555;
+    box-shadow: 0 0 3px #dadada;
+    -webkit-box-shadow: 0 0 3px #dadada;
+    -moz-box-shadow: 0 0 3px #dadada;
+}
 
 /* PAGES */
 
index ed32c797511f17f0d3edab097d3c2ce3734582e1..da4cd1541a3083225495f24aa760f200b861b952 100644 (file)
@@ -2,7 +2,7 @@
 {{if $saved}}
 <div class="widget" id="saved-search-list">
        <h3 id="search">{{$title}}</h3>
-       
+
        <ul role="menu" id="saved-search-ul">
                {{foreach $saved as $search}}
                <li role="menuitem" class="saved-search-li clear">