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'),
|
'Mail' => t('Mail'),
|
||||||
'Mood' => t('Mood'),
|
'Mood' => t('Mood'),
|
||||||
'Poke' => t('Poke'),
|
'Poke' => t('Poke'),
|
||||||
'Chat' => t('Chat')
|
'Chat' => t('Chat'),
|
||||||
|
'Search' => t('Search')
|
||||||
);
|
);
|
||||||
|
|
||||||
if(array_key_exists($arr['name'],$apps))
|
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 = '<div id="' . $id . '">';
|
||||||
$o .= '<form action="' . $a->get_baseurl((stristr($url,'network')) ? true : false) . $url . '" method="get" >';
|
$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="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'))
|
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>';
|
$o .= '</form></div>';
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
@ -45,8 +45,11 @@
|
|||||||
margin: 10px 0 7px 0;
|
margin: 10px 0 7px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-save {
|
#netsearch-box #search-save {
|
||||||
margin: 10px 0 7px 5px;
|
margin: 9px 0 7px 6px;
|
||||||
|
}
|
||||||
|
.search-save {
|
||||||
|
margin: 7px 0 7px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.saved-search-li {
|
.saved-search-li {
|
||||||
|
Reference in New Issue
Block a user