fix search to use in app

This commit is contained in:
friendica 2014-05-22 21:24:41 -07:00
parent 39d5f2abcf
commit 345f784f67
5 changed files with 12 additions and 5 deletions

3
app/search.apd Normal file
View file

@ -0,0 +1,3 @@
url: $baseurl/search
name: Search
photo: $baseurl/app/search.png

BIN
app/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View file

@ -130,7 +130,8 @@ function translate_system_apps(&$arr) {
'Mail' => t('Mail'),
'Mood' => t('Mood'),
'Poke' => t('Poke'),
'Chat' => t('Chat')
'Chat' => t('Chat'),
'Search' => t('Search')
);
if(array_key_exists($arr['name'],$apps))

View file

@ -810,9 +810,9 @@ function search($s,$id='search-box',$url='/search',$save = false) {
$o = '<div id="' . $id . '">';
$o .= '<form action="' . $a->get_baseurl((stristr($url,'network')) ? true : false) . $url . '" method="get" >';
$o .= '<input type="text" class="icon-search" name="search" id="search-text" placeholder="&#xf002;" value="' . $s .'" onclick="this.submit();" />';
$o .= '<input type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />';
$o .= '<input class="search-submit btn btn-default" type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />';
if(feature_enabled(local_user(),'savedsearch'))
$o .= '<input type="submit" name="save" id="search-save" value="' . t('Save') . '" />';
$o .= '<input class="search-save btn btn-default" type="submit" name="save" id="search-save" value="' . t('Save') . '" />';
$o .= '</form></div>';
return $o;
}

View file

@ -45,8 +45,11 @@
margin: 10px 0 7px 0;
}
#search-save {
margin: 10px 0 7px 5px;
#netsearch-box #search-save {
margin: 9px 0 7px 6px;
}
.search-save {
margin: 7px 0 7px 7px;
}
.saved-search-li {