From 58ac92f4e162abdad2d2f259bbf6c58029f65b86 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 20 Jun 2013 20:34:00 -0700 Subject: 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). --- include/taxonomy.php | 8 ++++++-- include/text.php | 14 ++++++++++++++ view/theme/redbasic/css/style.css | 8 ++++++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/include/taxonomy.php b/include/taxonomy.php index 5130ff9b7..aadcd938f 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -83,9 +83,13 @@ function format_term_for_display($term) { $s .= '#'; elseif($term['type'] == TERM_MENTION) $s .= '@'; + else + return $s; - if($term['url']) $s .= '' . htmlspecialchars($term['term']) . ''; - else $s .= htmlspecialchars($term['term']); + if($term['url']) + $s .= '' . htmlspecialchars($term['term']) . ''; + else + $s .= htmlspecialchars($term['term']); return $s; } diff --git a/include/text.php b/include/text.php index afe2490e7..9a20625a6 100755 --- a/include/text.php +++ b/include/text.php @@ -1025,6 +1025,20 @@ function prepare_body($item,$attach = false) { $s .= '
'; } + 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 .= '
' . $tstr . '
'; + } + $writeable = ((get_observer_hash() == $item['owner_xchan']) ? true : false); $x = ''; diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index f644d7903..38eea5b94 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2814,16 +2814,20 @@ aside input[type='text'] { margin-top: 10px; } -.body-tag, .filesavetags, .categorytags { +.posttags a, .body-tag, .filesavetags, .categorytags { opacity: 0.5; 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; filter:alpha(opacity=100) !important; } +.posttags { + margin-top: 15px; +} + .item-select { opacity: 0.1; filter:alpha(opacity=10); -- cgit v1.2.3