本文整理汇总了PHP中CKunenaTools::topicIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaTools::topicIcon方法的具体用法?PHP CKunenaTools::topicIcon怎么用?PHP CKunenaTools::topicIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaTools
的用法示例。
在下文中一共展示了CKunenaTools::topicIcon方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
}
}
?>
">
<td class="kcol-first kcol-ktopicreplies">
<strong> <?php
echo CKunenaTools::formatLargeNumber($leaf->msgcount - 1);
?>
</strong><?php
echo JText::_('COM_KUNENA_GEN_REPLIES');
?>
</td>
<td class="kcol-mid kcol-ktopicicon">
<?php
echo CKunenaLink::GetThreadPageLink('view', intval($leaf->catid), intval($leaf->id), $unreadPage, intval($this->config->messages_per_page), CKunenaTools::topicIcon($leaf), intval($leaf->lastread));
?>
</td>
<td class="kcol-mid kcol-ktopictitle">
<?php
if ($leaf->attachments) {
echo CKunenaTools::showIcon('ktopicattach', JText::_('COM_KUNENA_ATTACH'));
}
?>
<div class="ktopic-title-cover"><?php
echo CKunenaLink::GetThreadLink('view', intval($leaf->catid), intval($leaf->id), KunenaParser::parseText($leaf->subject), KunenaParser::stripBBCode($leaf->message, 500), 'follow', 'ktopic-title km');
?>
<?php
if ($leaf->favcount) {
if ($leaf->myfavorite) {
示例2: ceil
echo '-stickymsg';
}
echo $this->escape($firstpost->class_sfx);
}
if ($message->hold == 1) {
echo ' kunapproved';
} else {
if ($message->hold) {
echo ' kdeleted';
}
}
?>
">
<td class="kcol-first kcol-ktopicicon">
<?php
echo CKunenaTools::topicIcon($message);
?>
</td>
<td class="kcol-mid ktopictittle">
<?php
$curMessageNo = $message->msgcount - ($message->unread ? $message->unread - 1 : 0);
$threadPages = ceil($message->msgcount / $this->config->messages_per_page);
$unreadPage = ceil($curMessageNo / $this->config->messages_per_page);
if ($message->attachments) {
echo CKunenaTools::showIcon('ktopicattach', JText::_('COM_KUNENA_ATTACH'));
}
?>
<div class="ktopic-title-cover">
<?php
echo CKunenaLink::GetThreadLink('view', intval($message->catid), intval($message->id), KunenaParser::parseText($message->subject, 30), KunenaParser::stripBBCode($message->message), 'follow', 'ktopic-title km');
示例3: foreach
echo JText::_('COM_KUNENA_MOD_NOTHING');
?>
</td>
</tr>
<?php
} else {
$k = 0;
foreach ($this->MessagesToApprove as $mes) {
?>
<tr class="k<?php
echo $this->tabclass[$k ^= 1];
?>
" >
<td class="kcol-mid kcol-ktopicicon">
<?php
echo CKunenaLink::GetThreadPageLink('view', intval($mes->catid), intval($mes->id), '1', intval($this->config->messages_per_page), CKunenaTools::topicIcon($mes), '');
?>
</td>
<td class="kcol-mid kcol-ktopictitle">
<div class="ktopic-title-cover"><?php
echo CKunenaLink::GetThreadLink('view', intval($mes->catid), intval($mes->id), KunenaParser::parseText($mes->subject), KunenaParser::stripBBCode($mes->message, 500), 'follow', 'ktopic-title km');
?>
</div>
<div class="ktopic-details">
<!-- By -->
<!-- Category -->
<span class="ktopic-category"> <?php
echo JText::_('COM_KUNENA_CATEGORY') . ' ' . CKunenaLink::GetCategoryLink('showcat', intval($mes->catid), $this->escape($mes->catname));
?>