当前位置: 首页>>代码示例>>PHP>>正文


PHP CKunenaTools::topicIcon方法代码示例

本文整理汇总了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) {
开发者ID:redigy,项目名称:Kunena-1.6,代码行数:31,代码来源:flat.php

示例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');
开发者ID:redigy,项目名称:Kunena-1.6,代码行数:31,代码来源:posts.php

示例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));
        ?>
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:moderate_messages.php


注:本文中的CKunenaTools::topicIcon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。