fix search to use in app
This commit is contained in:
parent
39d5f2abcf
commit
345f784f67
3
app/search.apd
Normal file
3
app/search.apd
Normal file
@ -0,0 +1,3 @@
|
||||
url: $baseurl/search
|
||||
name: Search
|
||||
photo: $baseurl/app/search.png
|
BIN
app/search.png
Normal file
BIN
app/search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
@ -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))
|
||||
|
@ -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="" 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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user