bring back the body tag list - though it really belongs in the templates. It's difficult to debug community tags when you can't see any tags (except those the author typed in).
This commit is contained in:
parent
61601dc23d
commit
58ac92f4e1
@ -83,9 +83,13 @@ function format_term_for_display($term) {
|
|||||||
$s .= '#';
|
$s .= '#';
|
||||||
elseif($term['type'] == TERM_MENTION)
|
elseif($term['type'] == TERM_MENTION)
|
||||||
$s .= '@';
|
$s .= '@';
|
||||||
|
else
|
||||||
|
return $s;
|
||||||
|
|
||||||
if($term['url']) $s .= '<a target="extlink" href="' . $term['url'] . '">' . htmlspecialchars($term['term']) . '</a>';
|
if($term['url'])
|
||||||
else $s .= htmlspecialchars($term['term']);
|
$s .= '<a href="' . $term['url'] . '">' . htmlspecialchars($term['term']) . '</a>';
|
||||||
|
else
|
||||||
|
$s .= htmlspecialchars($term['term']);
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1025,6 +1025,20 @@ function prepare_body($item,$attach = false) {
|
|||||||
$s .= '<div class="clear"></div></div>';
|
$s .= '<div class="clear"></div></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_array($item['term']) && count($item['term'])) {
|
||||||
|
$tstr = '';
|
||||||
|
foreach($item['term'] as $t) {
|
||||||
|
$t1 = format_term_for_display($t);
|
||||||
|
if($t1) {
|
||||||
|
if($tstr)
|
||||||
|
$tstr .= ' ';
|
||||||
|
$tstr .= $t1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($tstr)
|
||||||
|
$s .= '<br /><div class="posttags">' . $tstr . '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
$writeable = ((get_observer_hash() == $item['owner_xchan']) ? true : false);
|
$writeable = ((get_observer_hash() == $item['owner_xchan']) ? true : false);
|
||||||
|
|
||||||
$x = '';
|
$x = '';
|
||||||
|
@ -2814,16 +2814,20 @@ aside input[type='text'] {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-tag, .filesavetags, .categorytags {
|
.posttags a, .body-tag, .filesavetags, .categorytags {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
filter:alpha(opacity=50);
|
filter:alpha(opacity=50);
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-tag:hover, .filesavetags:hover, .categorytags:hover {
|
.posttags a:hover, .body-tag:hover, .filesavetags:hover, .categorytags:hover {
|
||||||
opacity: 1.0 !important;
|
opacity: 1.0 !important;
|
||||||
filter:alpha(opacity=100) !important;
|
filter:alpha(opacity=100) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.posttags {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.item-select {
|
.item-select {
|
||||||
opacity: 0.1;
|
opacity: 0.1;
|
||||||
filter:alpha(opacity=10);
|
filter:alpha(opacity=10);
|
||||||
|
Reference in New Issue
Block a user