advanced search front-end

This commit is contained in:
friendica
2014-03-08 17:39:20 -08:00
parent 20ef3aee72
commit bef416a2d1
4 changed files with 19 additions and 2 deletions

View File

@@ -15,6 +15,8 @@ function findpeople_widget() {
. '</div>' . $inv;
}
}
$advanced_search = ((local_user() && get_pconfig(local_user(),'feature','expert')) ? true : false);
return replace_macros(get_markup_template('peoplefind.tpl'),array(
'$findpeople' => t('Find Channels'),
@@ -26,6 +28,9 @@ function findpeople_widget() {
'$similar' => '', // FIXME and uncomment when mod/match working // t('Similar Interests'),
'$random' => t('Random Profile'),
'$inv' => t('Invite Friends'),
'$advanced_search' => $advanced_search,
'$advanced_hint' => t('Exammple: name=fred and country=iceland'),
'$find_advanced' => t('Advanced Find'),
'$loggedin' => local_user()
));