public function inlineDisplay()
{
if (!$this->_TagData) {
$this->getData();
}
if ($this->_TagData->numRows() == 0) {
return '';
}
$String = '';
ob_start();
?>
<div class="InlineTags Meta">
<?php
echo t('Tagged');
?>
:
<ul>
<?php
foreach ($this->_TagData->resultArray() as $Tag) {
?>
<?php
if ($Tag['Name'] != '') {
?>
<li><?php
echo anchor(htmlspecialchars(TagFullName($Tag)), TagUrl($Tag, '', '/'), array('class' => 'Tag_' . str_replace(' ', '_', $Tag['Name'])));
?>
</li>
<?php
}
?>
<?php
}
?>
</ul>
</div>
<?php
$String = ob_get_clean();
return $String;
}
/** * Show tags after discussion body. */ public function discussionController_afterDiscussionBody_handler($Sender) { // Allow disabling of inline tags. if (c('Plugins.Tagging.DisableInline', false)) { return; } if (!property_exists($Sender->EventArguments['Object'], 'CommentID')) { $DiscussionID = property_exists($Sender, 'DiscussionID') ? $Sender->DiscussionID : 0; if (!$DiscussionID) { return; } $TagModule = new TagModule($Sender); echo $TagModule->inlineDisplay(); } }