style hashtags, mentions and categories. hide expand-aside button if not needed. css and class fixes
This commit is contained in:
@@ -1460,10 +1460,7 @@ function format_hashtags(&$item) {
|
||||
if(strpos($item['body'], $t['url']))
|
||||
continue;
|
||||
|
||||
if($s)
|
||||
$s .= ' ';
|
||||
|
||||
$s .= '#<a href="' . zid($t['url']) . '" >' . $term . '</a>';
|
||||
$s .= '<span class="badge badge-pill badge-info"><i class="fa fa-hashtag"></i> <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 .= ' ';
|
||||
|
||||
$s .= '@<a href="' . zid($t['url']) . '" >' . $term . '</a>';
|
||||
$s .= '<span class="badge badge-pill badge-success"><i class="fa fa-at"></i> <a class="text-white" href="' . zid($t['url']) . '" >' . $term . '</a></span> ';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user