From 80e381176e1e301782bc56cbb7c6037825eddf2d Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 8 Mar 2014 19:04:07 -0800 Subject: collapse the advanced directory search so that folks who think they're advanced but really aren't don't whinge about it. --- include/contact_widgets.php | 2 +- view/tpl/peoplefind.tpl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 865fda5f9..758b7291b 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -16,7 +16,7 @@ function findpeople_widget() { } } - $advanced_search = ((local_user() && get_pconfig(local_user(),'feature','expert')) ? true : false); + $advanced_search = ((local_user() && get_pconfig(local_user(),'feature','expert')) ? t('Advanced') : false); return replace_macros(get_markup_template('peoplefind.tpl'),array( '$findpeople' => t('Find Channels'), diff --git a/view/tpl/peoplefind.tpl b/view/tpl/peoplefind.tpl index 268861781..c1462a9e9 100755 --- a/view/tpl/peoplefind.tpl +++ b/view/tpl/peoplefind.tpl @@ -4,12 +4,16 @@
+
{{if $advanced_search}} + {{$advanced_search}} + +
{{/if}}
-
{{if $similar}}{{$similar}}
{{/if}} {{if $loggedin}}{{$suggest}}
{{/if}} {{$random}}
-- cgit v1.2.3