예제 #1
0
        $desc = implode('<br/>', array_map(array($this, 'escape'), $this->flaggedBy[$item->id]));
        if ($item->flagged > 5) {
            $desc .= '<br/>' . JText::sprintf('COM_COMMENTS_FLAGGED_BY_OTHERS', '<b>' . ($item->flagged - 5) . '</b>');
        }
        ?>

						<img src="../media/slicomments/img/spam16.png" title="<?php 
        echo JText::_('COM_COMMENTS_FLAGGED_BY'), '::', $desc;
        ?>
" class="flagged hasTip"/>
					<?php 
    }
    ?>
					<span class="text"><?php 
    if ($search = $this->state->get('filter.search')) {
        echo sliCommentsHelper::highlight(nl2br($this->escape($item->text)), $search);
    } else {
        echo nl2br($this->escape($item->text));
    }
    ?>
</span>
					<ul class="actions">
						<?php 
    if ($item->status == 1) {
        ?>
							<li><a href="index.php?option=com_slicomments&amp;task=comments.unapprove&amp;cid[]=<?php 
        echo $item->id, $token;
        ?>
" class="unapprove-comment"><?php 
        echo JText::_('COM_COMMENTS_ACTION_UNAPPROVE');
        ?>