diff options
author | Friendika <info@friendika.com> | 2010-11-08 17:30:00 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-08 17:30:00 -0800 |
commit | 45149271285ea3515c3c1a7ea189609969c76748 (patch) | |
tree | 8c51894b100815a17662a881e0785eb5c708118f /boot.php | |
parent | 01f171bce71126f60cf0ef9b447006b34c5a3891 (diff) | |
download | volse-hubzilla-45149271285ea3515c3c1a7ea189609969c76748.tar.gz volse-hubzilla-45149271285ea3515c3c1a7ea189609969c76748.tar.bz2 volse-hubzilla-45149271285ea3515c3c1a7ea189609969c76748.zip |
added search
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -355,10 +355,10 @@ function load_translation_table($lang) { if(! function_exists('t')) { function t($s) { - + $a = get_app(); - if($a->strings[$s]) + if(x($a->strings,$s)) return $a->strings[$s]; return $s; }} @@ -1427,3 +1427,14 @@ function contact_block() { }} +if(! function_exists('search')) { +function search($s) { + $a = get_app(); + $o = '<div id="search-box">'; + $o .= '<form action="' . $a->get_baseurl() . '/search' . '" method="get" >'; + $o .= '<input type="text" name="search" id="search-text" value="' . $s .'" />'; + $o .= '<input type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />'; + $o .= '</form></div>'; + return $o; +}} + |