Display private only filter as search parameter
This commit is contained in:
parent
db0caba3c4
commit
7c26f6626a
3 changed files with 12 additions and 1 deletions
|
@ -1681,6 +1681,7 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
|
|||
'result_count' => count($linksToDisplay),
|
||||
'search_term' => $searchterm,
|
||||
'search_tags' => $searchtags,
|
||||
'visibility' => ! empty($_SESSION['privateonly']) ? 'private' : '',
|
||||
'redirector' => $conf->get('redirector.url'), // Optional redirector URL.
|
||||
'links' => $linkDisp,
|
||||
'tags' => $LINKSDB->allTags(),
|
||||
|
|
|
@ -985,6 +985,10 @@ div.awesomplete > ul {
|
|||
margin: 0 0 0 5px;
|
||||
}
|
||||
|
||||
.search-result .label-private {
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
/**
|
||||
* TOOLS
|
||||
*/
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<div id="searchcriteria">{'Nothing found.'|t}</div>
|
||||
</div>
|
||||
</div>
|
||||
{elseif="!empty($search_term) or !empty($search_tags)"}
|
||||
{elseif="!empty($search_term) or !empty($search_tags) or !empty($visibility)"}
|
||||
<div class="pure-g pure-alert pure-alert-success search-result">
|
||||
<div class="pure-u-2-24"></div>
|
||||
<div class="pure-u-20-24">
|
||||
|
@ -106,6 +106,12 @@
|
|||
</span>
|
||||
{/loop}
|
||||
{/if}
|
||||
{if="!empty($visibility)"}
|
||||
{'with status'|t}
|
||||
<span class="label label-private">
|
||||
{$visibility|t}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue