style hashtags, mentions and categories. hide expand-aside button if not needed. css and class fixes

This commit is contained in:
Mario Vavti
2017-03-15 16:42:55 +01:00
parent 0c74c79b18
commit aa33cacb62
10 changed files with 35 additions and 43 deletions

View File

@@ -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> ';
}
}