collapse the advanced directory search so that folks who think they're advanced but really aren't don't whinge about it.
This commit is contained in:
parent
bef416a2d1
commit
80e381176e
@ -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'),
|
||||
|
@ -4,12 +4,16 @@
|
||||
<form action="directory" method="post" />
|
||||
<input class="icon-search" id="side-peoplefind-url" type="text" name="search" size="24" title="{{$hint}}" placeholder=""/>
|
||||
<input id="side-peoplefind-submit" type="submit" name="submit" value="{{$findthem}}" />
|
||||
<br />
|
||||
{{if $advanced_search}}
|
||||
<a href="#" onclick="openClose('advanced-people-search-div'); return false;">{{$advanced_search}}</a>
|
||||
<div id="advanced-people-search-div" style="display: none;">
|
||||
<input class="icon-search" id="side-peoplefind-url" type="text" name="query" size="24" title="{{$advanced_hint}}" placeholder=""/>
|
||||
<input id="side-peoplefind-submit" type="submit" name="submit" value="{{$find_advanced}}" />
|
||||
</div>
|
||||
<br />
|
||||
{{/if}}
|
||||
</form>
|
||||
<br />
|
||||
{{if $similar}}<a href="match" >{{$similar}}</a><br />{{/if}}
|
||||
{{if $loggedin}}<a href="suggest" >{{$suggest}}</a><br />{{/if}}
|
||||
<a href="randprof" >{{$random}}</a><br />
|
||||
|
Reference in New Issue
Block a user