PHP:
Code: Select all
$topic_row = array_merge($topic_row, array(
'TOPIC_TAGS' => implode($this->user->lang('COMMA_SEPARATOR'), $tags),
));
Code: Select all
<!-- IF topicrow.TOPIC_TAGS -->
<div class="tag">{topicrow.TOPIC_TAGS}</div>
<!-- ENDIF -->
PHP:
Code: Select all
foreach ($tags as tag)
{
$tags_row = $this->assign_block_vars('topicrow.tagrow', array(
'TOPIC_TAGS' => $tag,
));
}
$topic_row = array_merge($topic_row, $tags_row);
Code: Select all
<!-- IF topicrow.tagrow.TOPIC_TAGS -->
<!-- BEGIN topicrow.tagrow -->
<div class="tag">{topicrow.TOPIC_TAGS}</div>
<!-- END topicrow.tagrow -->
<!-- ENDIF -->