aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-15 16:42:55 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-15 16:42:55 +0100
commitaa33cacb62ef25cbab7c6ee1b253ed58072e6e44 (patch)
treecc9ef82c2026e109f288884c9e36efc15f3c8dab /include/text.php
parent0c74c79b18d77e4ca9032e92a652e51932f40aa4 (diff)
downloadvolse-hubzilla-aa33cacb62ef25cbab7c6ee1b253ed58072e6e44.tar.gz
volse-hubzilla-aa33cacb62ef25cbab7c6ee1b253ed58072e6e44.tar.bz2
volse-hubzilla-aa33cacb62ef25cbab7c6ee1b253ed58072e6e44.zip
style hashtags, mentions and categories. hide expand-aside button if not needed. css and class fixes
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php10
1 files changed, 2 insertions, 8 deletions
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 .= '&nbsp';
-
- $s .= '#<a href="' . zid($t['url']) . '" >' . $term . '</a>';
+ $s .= '<span class="badge badge-pill badge-info"><i class="fa fa-hashtag"></i>&nbsp;<a class="text-white" href="' . zid($t['url']) . '" >' . $term . '</a></span> ';
}
}
@@ -1484,10 +1481,7 @@ function format_mentions(&$item) {
if(strpos($item['body'], $t['url']))
continue;
- if($s)
- $s .= '&nbsp';
-
- $s .= '@<a href="' . zid($t['url']) . '" >' . $term . '</a>';
+ $s .= '<span class="badge badge-pill badge-success"><i class="fa fa-at"></i>&nbsp;<a class="text-white" href="' . zid($t['url']) . '" >' . $term . '</a></span> ';
}
}