當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CKunenaLink::GetCategoryReviewListLink方法代碼示例

本文整理匯總了PHP中CKunenaLink::GetCategoryReviewListLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKunenaLink::GetCategoryReviewListLink方法的具體用法?PHP CKunenaLink::GetCategoryReviewListLink怎麽用?PHP CKunenaLink::GetCategoryReviewListLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CKunenaLink的用法示例。


在下文中一共展示了CKunenaLink::GetCategoryReviewListLink方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: if

		<?php endif; ?>
		<?php if (! empty ( $category->moderators )) : ?>
			<div class="kthead-moderators ks">
		<?php
				// get the Moderator list for display
				$modslist = array();
				foreach ( $category->moderators as $moderator ) {
					$modslist[] = $moderator->getLink();
				}
				echo JText::_('COM_KUNENA_GEN_MODERATORS') . ': ' . implode(', ', $modslist);
		?>
			</div>
		<?php endif; ?>
		<?php if (! empty ( $this->pending [$category->id] )) : ?>
			<div class="ks kalert">
				<?php echo CKunenaLink::GetCategoryReviewListLink ( intval($category->id), intval($this->pending [$category->id]) . ' ' . JText::_('COM_KUNENA_SHOWCAT_PENDING'), 'nofollow' ); ?>
			</div>
		<?php endif; ?>
			</td>

			<td class="kcol-mid kcol-kcattopics">
				<!-- Number of Topics -->
				<span class="kcat-topics-number"><?php echo $this->formatLargeNumber ( $category->getTopics() ) ?></span>
				<span class="kcat-topics"><?php echo JText::_('COM_KUNENA_GEN_TOPICS');?></span>
				<!-- /Number of Topics -->
			</td>

			<td class="kcol-mid kcol-kcatreplies">
			<!-- Number of Replies -->
			<span class="kcat-replies-number"><?php echo $this->formatLargeNumber ( $category->getPosts() ) ?></span>
			<span class="kcat-replies"><?php echo JText::_('COM_KUNENA_GEN_REPLIES');?> </span>
開發者ID:GoremanX,項目名稱:Kunena-2.0,代碼行數:31,代碼來源:list_embed.php

示例2: foreach

            if (count($modslist) > 0) {
                echo '<div class="' . $boardclass . 'thead-moderators  fbs">' . _GEN_MODERATORS . ": ";
                $mod_cnt = 0;
                foreach ($modslist as $mod) {
                    if ($mod_cnt) {
                        echo ', ';
                    }
                    $mod_cnt++;
                    echo CKunenaLink::GetProfileLink($fbConfig, $mod->userid, $fbConfig->username ? $mod->username : $mod->name);
                }
                echo '</div>';
            }
            if ($is_Moderator) {
                if ($numPending > 0) {
                    echo '<div class="fbs" ><font color="red">';
                    echo ' ' . CKunenaLink::GetCategoryReviewListLink($singlerow->id, $numcolor . ' ' . $numPending . ' ' . _SHOWCAT_PENDING, 'nofollow');
                    echo '</font></div>';
                }
            }
            echo "</td>";
            echo " <td class=\"td-3  fbm\" align=\"center\" >{$numtopics}</td>";
            echo " <td class=\"td-4  fbm\" align=\"center\" >{$numreplies}</td>";
            if ($numtopics != 0) {
                ?>

                        <td class = "td-5" align="left">
                            <div class = "<?php 
                echo $boardclass;
                ?>
latest-subject fbm">
                                <?php 
開發者ID:kaantunc,項目名稱:MYK-BOR,代碼行數:31,代碼來源:fb_sub_category_list.php


注:本文中的CKunenaLink::GetCategoryReviewListLink方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。