[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-www
Subject: Configurable search box
From: Adriaan de Groot <groot () kde ! org>
Date: 2007-05-27 10:47:42
Message-ID: 200705271247.42170.groot () kde ! org
[Download RAW message or body]
The newlayout/ template doesn't have the same configuration know $site_search
as the old one; patch attached to make it at least be on-or-off -- I left out
the custom search box possibility.
--
KDE Quality Team http://www.englishbreakfastnetwork.org/
GPG: FEA2 A3FE http://people.fruitsalad.org/adridg/
"It is impossible to make an emphatic point with only two arms."
["search.diff" (text/x-diff)]
Index: includes/newlayout/template-bottom2.inc
===================================================================
--- includes/newlayout/template-bottom2.inc (revision 667724)
+++ includes/newlayout/template-bottom2.inc (working copy)
@@ -7,6 +7,10 @@
$contact = i18n_var("Maintained by <a \
href=\"mailto:webmaster@kde.org\">The \
KDE Webmaster</a><br />\n"); ?>
+<?php
+ // Handle the search box, if wanted.
+ if (!isset($site_search) || ($site_search === true)) {
+?>
<div class="menutitle"><div>
<h2 id="cp-menu-search"><?php i18n("Search:")?></h2>
</div></div>
@@ -17,6 +21,10 @@
<input style="width:80%" type="text" size="10" name="q" id="Search" \
value="" /><br />
<input style="width:80%" type="submit" value=" <?php i18n("Search")?> \
" name="Button" id="searchButton" /> </p></form>
+<?php
+ // Handle the search box, if wanted.
+ }
+?>
</div>
</div>
_______________________________________________
kde-www mailing list
kde-www@kde.org
https://mail.kde.org/mailman/listinfo/kde-www
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic