]> git.mxchange.org Git - friendica.git/commitdiff
add in the search box
authorSimon L'nu <simon.lnu@gmail.com>
Mon, 26 Mar 2012 02:45:44 +0000 (22:45 -0400)
committerSimon L'nu <simon.lnu@gmail.com>
Mon, 26 Mar 2012 02:45:44 +0000 (22:45 -0400)
Signed-off-by: Simon L'nu <simon.lnu@gmail.com>
view/theme/dispy-dark/nav.tpl
view/theme/dispy-dark/style.css
view/theme/dispy-dark/theme.php
view/theme/dispy/nav.tpl
view/theme/dispy/style.css
view/theme/dispy/theme.php

index 11469dc6611f15c63567dbcf5f08c01414c0fed6..589d6835215759d539826a6b42a128945dfb1de4 100644 (file)
@@ -5,7 +5,7 @@
 <!-- yes, they're going the other way. seems that's how the template renderer
 works -->
 
-    <div id="nav-floater">
+<div id="nav-floater">
     <div id="nav-buttons">
     {{ if $nav.help }}
     <a id="nav-help-link" class="nav-link $nav.help.2" href="$nav.help.0" title="$nav.help.1">$nav.help.1</a>
@@ -33,17 +33,23 @@ works -->
     {{ endif }}
     {{ if $nav.network }}
     <a id="nav-network-link" class="nav-link $nav.network.2"
-    href="$nav.network.0" title="$nav.network.1">$nav.network.1</a>
+               href="$nav.network.0" title="$nav.network.1">$nav.network.1</a>
     {{ endif }}
     {{ if $nav.home }}
     <a id="nav-home-link" class="nav-link $nav.home.2"
-    href="$nav.home.0" title="$nav.home.1">$nav.home.1</a>
+               href="$nav.home.0" title="$nav.home.1">$nav.home.1</a>
     {{ endif }}
     {{ if $nav.login }}
     <a id="nav-login-link" class="nav-login-link $nav.login.2"
-    href="$nav.login.0" title="$nav.login.3" >$nav.login.1</a>
+               href="$nav.login.0" title="$nav.login.3" >$nav.login.1</a>
     {{ endif }}
-    </div>
+       </div>
+
+       <div class="search-box">
+               <form method="get" action="$nav.search.0">
+                       <input id="search-text" class="nav-menu-search" type="search" placeholder="Search" value="" id="search" name="search" />
+               </form>
+       </div>
 
     <div id="user-menu">
         <a id="user-menu-label" onclick="openClose('user-menu-popup'); return false" href="$nav.home.0">$sitelocation</a>
index ba8cda3c61bd4f9e9c628184172cf845e357949c..6292da6d23ed79f6ba868ca50395c48c41186bad 100644 (file)
@@ -221,7 +221,7 @@ input[type=submit] {
  * nav
  */
 nav {
-       height: 60px;
+       height: 80px;
        display: block;
        background-color: #1d1f1d;
        color: #eeeeec;
@@ -490,6 +490,15 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link
        margin: 0px;
        background: transparent url(icons.png) -190px -60px no-repeat;
 }
+.search-box {
+       margin: 5px;
+       width: 65%;
+       height: 40px;
+       z-index: 100;
+}
+#search-text {
+       border: 1px #2e2f2e solid;
+}
 .nav-ajax-update, .nav-ajax-left {
        width: 30px;
        height: 19px;
index 9b6ea76bf3e023e4d503d57ec4d98909f9843fe9..4c938997bc1f0c296b209d4d0466a7f525e5159a 100644 (file)
@@ -151,6 +151,6 @@ function dispydark_community_info() {
        $aside['$url'] = $url;
 
     $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl');
-       $a->page['right_aside'] = replace_macros($tpl, $aside);
+       $a->page['aside'] = replace_macros($tpl, $aside);
 }
 
index 11469dc6611f15c63567dbcf5f08c01414c0fed6..589d6835215759d539826a6b42a128945dfb1de4 100644 (file)
@@ -5,7 +5,7 @@
 <!-- yes, they're going the other way. seems that's how the template renderer
 works -->
 
-    <div id="nav-floater">
+<div id="nav-floater">
     <div id="nav-buttons">
     {{ if $nav.help }}
     <a id="nav-help-link" class="nav-link $nav.help.2" href="$nav.help.0" title="$nav.help.1">$nav.help.1</a>
@@ -33,17 +33,23 @@ works -->
     {{ endif }}
     {{ if $nav.network }}
     <a id="nav-network-link" class="nav-link $nav.network.2"
-    href="$nav.network.0" title="$nav.network.1">$nav.network.1</a>
+               href="$nav.network.0" title="$nav.network.1">$nav.network.1</a>
     {{ endif }}
     {{ if $nav.home }}
     <a id="nav-home-link" class="nav-link $nav.home.2"
-    href="$nav.home.0" title="$nav.home.1">$nav.home.1</a>
+               href="$nav.home.0" title="$nav.home.1">$nav.home.1</a>
     {{ endif }}
     {{ if $nav.login }}
     <a id="nav-login-link" class="nav-login-link $nav.login.2"
-    href="$nav.login.0" title="$nav.login.3" >$nav.login.1</a>
+               href="$nav.login.0" title="$nav.login.3" >$nav.login.1</a>
     {{ endif }}
-    </div>
+       </div>
+
+       <div class="search-box">
+               <form method="get" action="$nav.search.0">
+                       <input id="search-text" class="nav-menu-search" type="search" placeholder="Search" value="" id="search" name="search" />
+               </form>
+       </div>
 
     <div id="user-menu">
         <a id="user-menu-label" onclick="openClose('user-menu-popup'); return false" href="$nav.home.0">$sitelocation</a>
index 935ca507ec9f466364a8a82950a08211e07bad2b..116f88b31b932227158fdd3a05a65529bd097c28 100644 (file)
@@ -482,6 +482,15 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link
        margin: 0px;
        background: transparent url(icons.png) -190px -60px no-repeat;
 }
+.search-box {
+       margin: 5px;
+       width: 65%;
+       height: 40px;
+       z-index: 100;
+}
+#search-text {
+       border: 1px #eec solid;
+}
 .nav-ajax-update, .nav-ajax-left {
        width: 30px;
        height: 19px;
index 3fa9a33531fa55e18cebf023b4b44cf1b92e3064..9db77d7f3e2f4c045f7d508af6b75cbcf0ab2e8b 100644 (file)
@@ -151,6 +151,6 @@ function dispy_community_info() {
        $aside['$url'] = $url;
 
     $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl');
-       $a->page['right_aside'] = replace_macros($tpl, $aside);
+       $a->page['aside'] = replace_macros($tpl, $aside);
 }