From aa33cacb62ef25cbab7c6ee1b253ed58072e6e44 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 15 Mar 2017 16:42:55 +0100 Subject: style hashtags, mentions and categories. hide expand-aside button if not needed. css and class fixes --- include/text.php | 10 ++-------- include/widgets.php | 12 ++++++------ 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index 9d76f9d78..2d1bc4222 100644 --- a/include/text.php +++ b/include/text.php @@ -1460,10 +1460,7 @@ function format_hashtags(&$item) { if(strpos($item['body'], $t['url'])) continue; - if($s) - $s .= ' '; - - $s .= '#' . $term . ''; + $s .= ' ' . $term . ' '; } } @@ -1484,10 +1481,7 @@ function format_mentions(&$item) { if(strpos($item['body'], $t['url'])) continue; - if($s) - $s .= ' '; - - $s .= '@' . $term . ''; + $s .= ' ' . $term . ' '; } } diff --git a/include/widgets.php b/include/widgets.php index f05c7c0ee..f247470b3 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1480,12 +1480,12 @@ function widget_forums($arr) { if($r1) { $o .= '
'; - $o .= '

' . t('Forums') . '

'; } @@ -1537,10 +1537,10 @@ function widget_activity($arr) { if($arr) { $o .= '
'; - $o .= '

' . t('Activity','widget') . '

'; } @@ -1582,7 +1582,7 @@ function widget_helpindex($arr) { if(! $level_0) $level_0 = get_help_content('toc'); - $level_0 = preg_replace('/\/','