aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-06-08 23:03:05 +0200
committerMario Vavti <mario@mariovavti.com>2018-06-08 23:03:05 +0200
commit468af29e3e4fb5c59f44afe8e870e21b66153992 (patch)
treef92f91af92b761c5ee6733364596f395e00c098f /Zotlabs/Widget
parent7c98aea52497ebbdd1880d98b0dbc26c32eaca39 (diff)
downloadvolse-hubzilla-468af29e3e4fb5c59f44afe8e870e21b66153992.tar.gz
volse-hubzilla-468af29e3e4fb5c59f44afe8e870e21b66153992.tar.bz2
volse-hubzilla-468af29e3e4fb5c59f44afe8e870e21b66153992.zip
new feature filter network by name
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Activity_filter.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Activity_filter.php b/Zotlabs/Widget/Activity_filter.php
index 32da20bf6..78e439fdd 100644
--- a/Zotlabs/Widget/Activity_filter.php
+++ b/Zotlabs/Widget/Activity_filter.php
@@ -154,6 +154,20 @@ class Activity_filter {
];
}
+ $name = [];
+ if(feature_enabled(local_channel(),'name_tab')) {
+ if(x($_GET,'cid') && ! x($_GET,'pf')) {
+ $filter_active = 'name';
+ }
+ $name = [
+ 'label' => x($_GET,'name') ? $_GET['name'] : t('Filter by name'),
+ 'icon' => 'filter',
+ 'url'=> z_root() . '/' . $cmd . '/',
+ 'sel'=> $filter_active == 'name' ? 'is-valid' : '',
+ 'title' => ''
+ ];
+ }
+
$reset = [];
if($filter_active) {
$reset = [
@@ -179,7 +193,8 @@ class Activity_filter {
$o .= replace_macros(get_markup_template('activity_filter_widget.tpl'), [
'$title' => t('Activity Filters'),
'$reset' => $reset,
- '$content' => $content
+ '$content' => $content,
+ '$name' => $name
]);
}