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


PHP CKunenaLink::GetThreadPageSpecialLink方法代码示例

本文整理汇总了PHP中CKunenaLink::GetThreadPageSpecialLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetThreadPageSpecialLink方法的具体用法?PHP CKunenaLink::GetThreadPageSpecialLink怎么用?PHP CKunenaLink::GetThreadPageSpecialLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CKunenaLink的用法示例。


在下文中一共展示了CKunenaLink::GetThreadPageSpecialLink方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: intval

        }
        ?>
		<li class="klatest-subject">
		<?php 
        if ($this->params->get('sh_sticky')) {
            if ($item->ordering) {
                echo '<img src="' . JURI::root() . 'modules/mod_kunenalatest/tmpl/images/sticky.png" alt="' . JText::_('MOD_KUNENALATEST_STICKY_TOPIC') . '" title="' . JText::_('MOD_KUNENALATEST_STICKY_TOPIC') . '" />';
            }
        }
        if ($this->params->get('choosemodel') != 'latestposts' && $this->params->get('choosemodel') != 'latesttopics') {
            echo CKunenaLink::GetThreadLink('view', $item->catid, $item->id, JString::substr(htmlspecialchars($item->subject), '0', $this->params->get('titlelength')), JString::substr(htmlspecialchars(KunenaParser::stripBBCode($item->message)), '0', $this->params->get('messagelength')), 'follow');
        } else {
            if ($this->topic_ordering == 'ASC') {
                echo CKunenaLink::GetThreadPageSpecialLink('view', intval($item->catid), intval($item->thread), $threadPages, intval($this->kunena_config->messages_per_page), JString::substr(htmlspecialchars($item->subject), '0', $this->params->get('titlelength')), intval($item->id), '', '', JString::substr(htmlspecialchars(KunenaParser::stripBBCode($item->message)), '0', $this->params->get('messagelength')));
            } else {
                echo CKunenaLink::GetThreadPageSpecialLink('view', intval($item->catid), intval($item->thread), 1, intval($this->kunena_config->messages_per_page), JString::substr(htmlspecialchars($item->subject), '0', $this->params->get('titlelength')), intval($item->id), '', '', JString::substr(htmlspecialchars(KunenaParser::stripBBCode($item->message)), '0', $this->params->get('messagelength')));
            }
        }
        if ($item->unread) {
            echo '<sup class="knewchar">(' . JText::_($this->params->get('unreadindicator')) . ")</sup>";
        }
        if ($this->params->get('sh_favorite')) {
            if ($item->favcount) {
                if ($item->myfavorite) {
                    echo '<img class="favoritestar" src="' . $this->ktemplate->getImagePath('icons/favoritestar.png') . '"  alt="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" title="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" />';
                } else {
                    echo '<img class="favoritestar-grey" src="' . $this->ktemplate->getImagePath('icons/favoritestar-grey.png') . '"  alt="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" title="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" />';
                }
            }
        }
        if ($this->params->get('sh_locked')) {
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:default.php


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