Skip to content

Commit

Permalink
Finished tags markup, added tags to LIST_ROW block
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Beliavski committed Nov 29, 2010
1 parent 5f32fe5 commit f7ca2bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/tags/tags.forums.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// Get all subcategories
$limit = $cfg['plugin']['tags']['lim_forums'] == 0 ? null : (int) $cfg['plugin']['tags']['lim_forums'];
$tcloud = sed_tag_cloud('forums', $cfg['plugin']['tags']['order'], $limit);
$tc_html = '<div class="tag_cloud">';
$tc_html = '<ul class="tag_cloud">';
foreach($tcloud as $tag => $cnt)
{
$tag_count++;
Expand All @@ -44,13 +44,13 @@
break;
}
}
$tc_html .= '<a href="'.sed_url('plug', 'e=tags&a=forums&t='.$tag_u.$tl).'" class="'.$dim.'">'.htmlspecialchars($tag_t).'</a> ';
$tc_html .= '<li><a href="'.sed_url('plug', 'e=tags&a=forums&t='.$tag_u.$tl).'" class="'.$dim.'">'.htmlspecialchars($tag_t).'</a><span>'.$cnt.'</span></li>';
}
if($cfg['plugin']['tags']['more'] && $limit > 0)
{
$tc_html .= '<hr /><a class="more" href="'.sed_url('plug', 'e=tags&a=forums').'">'.$L['tags_All'].'</a>';
}
$tc_html .= '</div>';
$tc_html .= '</ul>';
$tc_html = ($tag_count > 0) ? $tc_html : $L['tags_Tag_cloud_none'];
$t->assign(array(
'FORUMS_SECTIONS_TOP_TAG_CLOUD' => $L['tags_Tag_cloud'],
Expand Down
8 changes: 8 additions & 0 deletions skins/sed-light/list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
<td>
<strong><a href="{LIST_ROW_URL}">{LIST_ROW_TITLE}</a></strong> {LIST_ROW_FILEICON}<br />
<span class="desc">{LIST_ROW_DESC} ({PHP.L.Hits}: {LIST_ROW_COUNT})</span>
<p>
<!-- BEGIN: LIST_ROW_TAGS_ROW -->
<!-- IF {PHP.tag_i} > 0 -->, <!-- ENDIF --><a href="{LIST_ROW_TAGS_ROW_URL}" title="{LIST_ROW_TAGS_ROW_TAG}">{LIST_ROW_TAGS_ROW_TAG}</a>
<!-- END: LIST_ROW_TAGS_ROW -->
<!-- BEGIN: PAGE_NO_TAGS -->
{LIST_ROW_NO_TAGS}
<!-- END: PAGE_NO_TAGS -->
</p>
</td>
<td class="centerall">{LIST_ROW_COMMENTS}</td>
<td class="centerall">{LIST_ROW_RATINGS}</td>
Expand Down

0 comments on commit f7ca2bf

Please sign in to comment.