本文整理汇总了PHP中CKunenaLink::GetCategoryLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetCategoryLink方法的具体用法?PHP CKunenaLink::GetCategoryLink怎么用?PHP CKunenaLink::GetCategoryLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetCategoryLink方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
}
}
?>
<?php
if ($message->unread) {
echo CKunenaLink::GetThreadPageLink('view', intval($message->catid), intval($message->id), $unreadPage, intval($this->config->messages_per_page), '<sup class="knewchar"> (' . intval($message->unread) . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ')</sup>', intval($message->lastread));
}
if ($message->locked != 0) {
echo CKunenaTools::showIcon('ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC'));
}
?>
<div class="ks">
<!-- Category -->
<span class="ktopic-category">
<?php
echo JText::_('COM_KUNENA_CATEGORY') . ' ' . CKunenaLink::GetCategoryLink('showcat', intval($message->catid), $this->escape($message->catname));
?>
</span>
<!-- /Category -->
</div>
</td>
<td class="kcol-mid kcol-ktopiclastpost">
<div class="klatest-post-info">
<!-- Sticky -->
<?php
if ($this->messages[$message->id]->ordering != 0) {
echo CKunenaTools::showIcon('ktopicsticky', JText::_('COM_KUNENA_GEN_ISSTICKY'));
}
?>
<!-- /Sticky -->
<!-- Avatar -->
示例2: isset
_bt_cvr3">
<div class="<?php
echo $boardclass;
?>
_bt_cvr4">
<div class="<?php
echo $boardclass;
?>
_bt_cvr5">
<table class = "fb_blocktable" id="fb_bottomarea" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
<thead>
<tr>
<th class = "th-left" align="left" >
<?php
if ($kunena_my->id != 0) {
echo CKunenaLink::GetCategoryLink('markThisRead', $catid, isset($fbIcons['markThisForumRead']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['markThisForumRead'] . '" border="0" alt="' . _GEN_MARK_THIS_FORUM_READ . '" title="' . _GEN_MARK_THIS_FORUM_READ . '"/>' : _GEN_MARK_THIS_FORUM_READ, $rel = 'nofollow');
}
?>
<!-- Mod List -->
<?php
//get the Moderator list for display
$fb_queryName = $fbConfig->username ? "username" : "name";
$kunena_db->setQuery("select m.userid, u.{$fb_queryName} AS username FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='{$catid}'");
$modslist = $kunena_db->loadObjectList();
check_dberror("Unable to load moderators.");
?>
<?php
if (count($modslist) > 0) {
示例3: intval
<div class="kmsgbody">
<div class="kmsgtitle kresult-title">
<span class="kmsgtitle">
<?php
echo CKunenaLink::GetThreadPageLink('view', intval($result->catid), intval($result->id), NULL, NULL, $result->htmlsubject, intval($result->id));
?>
</span>
</div>
<div class="kmsgtext resultmsg">
<?php
echo $result->htmlmessage;
?>
</div>
<div class="resultcat">
<?php
echo JText::_('COM_KUNENA_CATEGORY') . ' ' . CKunenaLink::GetCategoryLink('showcat', intval($result->catid), $this->escape($result->catname), $rel = 'follow', $class = '', $title = '');
?>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<?php
}
?>
</td>
</tr>
<tr class="ksth">
<th colspan="3">
<?php
示例4: kunena_htmlspecialchars
<?php
if ($leaf->name) {
echo '<span class="topic_by">';
echo _GEN_BY . ' ' . CKunenaLink::GetProfileLink($fbConfig, $leaf->userid, $leaf->name);
echo '</span>';
}
?>
<!-- /By -->
<?php
if (strtolower($func) != 'showcat') {
?>
<!-- Category -->
<span class="topic_category">
<?php
echo _KUNENA_CATEGORY . ' ' . CKunenaLink::GetCategoryLink('showcat', $leaf->catid, kunena_htmlspecialchars(stripslashes($leaf->catname)));
?>
</span>
<!-- /Category -->
<?php
}
?>
<!-- Views -->
<span class="topic_views">
<?php
echo _GEN_HITS;
?>
: <?php
echo (int) $hits[$leaf->id];
?>
示例5: isset
if (is_file(KUNENA_ABSCATIMAGESPATH . $forumparent->id . "_notlogin_childsmall.gif")) {
echo "<img src=\"" . KUNENA_URLCATIMAGES . $forumparent->id . "_notlogin_childsmall.gif\" border=\"0\" class='forum-cat-image' alt=\" \" />";
} else {
echo isset($fbIcons['notloginforum']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['notloginforum_childsmall'] . '" border="0" alt="' . _GEN_FORUM_NOTNEW . '" title="' . _GEN_FORUM_NOTNEW . '" />' : stripslashes($fbConfig->newchar);
}
?>
<?php
}
//
}
// end: parent read unread iconset
?>
<?php
echo CKunenaLink::GetCategoryLink('showcat', $forumparent->id, kunena_htmlspecialchars(stripslashes($forumparent->name)));
echo '<span class="fb_childcount fbs">(' . $forumparent->numTopics . "/" . $forumparent->numPosts . ')</span>';
}
echo "</div>";
}
?>
</div>
</div>
<?php
}
//get the Moderator list for display
$kunena_db->setQuery("SELECT * FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='{$singlerow->id}'");
$modslist = $kunena_db->loadObjectList();
check_dberror("Unable to load moderators.");
// moderator list
示例6:
<li class="fb_teammember"><a href="http://www.kunena.com/community/profile?userid=122" target='_blank' rel='follow'>Roland76</a> Kunena developer</li>
<li class="fb_teammember"><a href="http://www.kunena.com/community/profile?userid=114" target='_blank' rel='follow'>severdia</a> Kunena developer</li>
<li class="fb_teammember"><a href="http://www.kunena.com/community/profile?userid=314" target='_blank' rel='follow'>Spock</a> Kunena moderator</li>
<li class="fb_teammember"><a href="http://www.kunena.com/community/profile?userid=148" target='_blank' rel='follow'>whouse</a> Kunena developer</li>
<li class="fb_teammember"><a href="http://www.kunena.com/community/profile?userid=1288" target='_blank' rel='follow'>xillibit</a> Kunena moderator</li>
<li class="fb_teammember"><a href="http://www.kunena.com/community/profile?userid=447" target='_blank' rel='follow'>@quila</a> Kunena moderator</li>
</ul></td>
</tr>
<tr valign="top">
<td colspan="2"><div class="fb_credits_more">Special thanks go to Beat and the CB Testing team, Ida and JoniJnm for significant contributions to Kunena. In addition many members of <a href="http://www.kunena.com" target='_blank' rel='follow'>www.Kunena.com</a> have contributed and helped make this a more stable and bugfree version.
Our Thanks go out to all contributors of Kunena! Greetings from the global Kunena forum team! <br />
<br />
<?php
$catid = (int) $catid;
// Add a link to go back to the latest category we where viewing...
echo '<div>To return to the forum ' . CKunenaLink::GetCategoryLink('showcat', $catid, _USER_RETURN_B, $rel = 'nofollow') . '<div>';
?>
</div></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php
require_once KUNENA_PATH_LIB . DS . 'kunena.version.php';
示例7: defined
**/
defined ( '_JEXEC' ) or die ();
require_once(KPATH_SITE.'/lib/kunena.link.class.php');
$tabclass = array ("row1", "row2" );
$mmm=0;
foreach ( $this->sections as $section ) :
$htmlClassBlockTable = !empty ( $section->class_sfx ) ? ' kblocktable' . $this->escape($section->class_sfx) : '';
$htmlClassTitleCover = !empty ( $section->class_sfx ) ? ' ktitle-cover' . $this->escape($section->class_sfx) : '';
?>
<div class="kblock kcategories-<?php echo intval($section->id) ?>">
<div class="kheader">
<?php if (count($this->sections) > 1) : ?>
<span class="ktoggler"><a class="ktoggler close" title="<?php echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE') ?>" rel="catid_<?php echo intval($section->id) ?>"></a></span>
<?php endif; ?>
<h2><span><?php echo CKunenaLink::GetCategoryLink ( 'listcat', intval($section->id), $this->escape($section->name), 'follow' ); ?></span></h2>
<?php if (!empty($section->description)) : ?>
<div class="ktitle-desc km">
<?php echo KunenaHtmlParser::parseBBCode ( $section->description ); ?>
</div>
<?php endif; ?>
</div>
<div class="kcontainer" id="catid_<?php echo intval($section->id) ?>">
<div class="kbody">
<table class="kblocktable<?php echo $htmlClassBlockTable ?>" id="kcat<?php echo intval($section->id) ?>">
<?php if (empty ( $this->categories [$section->id] )) { echo JText::_('COM_KUNENA_GEN_NOFORUMS');
} else {
$k = 0;
foreach ( $this->categories [$section->id] as $category ) {
?>
<tr class="k<?php echo $tabclass [$k ^= 1], isset ( $category->class_sfx ) ? ' k' . $this->escape($tabclass [$k]) . $this->escape($category->class_sfx) : '' ?>"
示例8: GetLatestCategoryAutoRedirectHTML
function GetLatestCategoryAutoRedirectHTML($catid)
{
$Output = '<div id="Kunena_post_result" align="center">';
$Output .= CKunenaLink::GetCategoryLink('showcat', $catid, _POST_SUCCESS_FORUM) . '<br />';
$Output .= '</div>';
$Output .= CKunenaLink::GetAutoRedirectHTML(KUNENA_LIVEURLREL . '&func=showcat&catid=' . $catid, 3500);
return $Output;
}
示例9: KUNENA_get_pathway
/**
* Function to print the pathway
* @param object database object
* @param object category object
* @param int the post id
* @param boolean set title
*/
function KUNENA_get_pathway(&$kunena_db, $obj_fb_cat, $bool_set_title, $obj_post = 0)
{
global $fbIcons;
$document =& JFactory::getDocument();
$fbConfig =& CKunenaConfig::getInstance();
//Get the Category's parent category name for breadcrumb
$kunena_db->setQuery("SELECT name, id FROM #__fb_categories WHERE id='" . $obj_fb_cat->getParent() . "'");
$objCatParentInfo = $kunena_db->loadObject();
check_dberror("Unable to load category.");
//get the Moderator list for display
$kunena_db->setQuery("SELECT * FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='" . $obj_fb_cat->getId() . "'");
$modslist = $kunena_db->loadObjectList();
check_dberror("Unable to load moderators.");
// echo '<div class="fb_pathway">';
// List of Forums
// show folder icon
$return = '<img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" border="0" alt="' . _GEN_FORUMLIST . '" style="vertical-align: middle;" /> ';
// link to List of Forum Categories
$return .= ' ' . CKunenaLink::GetKunenaLink(_GEN_FORUMLIST) . '<br />';
// List of Categories
if ($objCatParentInfo) {
if ($bool_set_title) {
$document->setTitle(stripslashes($objCatParentInfo->name) . ' - ' . stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title));
}
// show lines
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-end.gif" alt="|-" border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" alt="' . $objCatParentInfo->name . '" border="0" style="vertical-align: middle;" /> ';
// link to Category
$return .= ' ' . CKunenaLink::GetCategoryLink('listcat', $objCatParentInfo->id, $objCatParentInfo->name) . '<br />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-blank.gif" alt="| " border="0" style="vertical-align: middle;" />';
} else {
if ($bool_set_title) {
$document->setTitle(stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title));
}
}
// Forum
// show lines
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-end.gif" alt="|-" border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" alt="+" border="0" style="vertical-align: middle;" /> ';
// Link to forum
$return .= ' ' . CKunenaLink::GetCategoryLink('showcat', $obj_fb_cat->getId(), $obj_fb_cat->getName());
//check if this forum is locked
if ($obj_fb_cat->getLocked()) {
$return .= isset($fbIcons['forumlocked']) ? ' <img src="' . KUNENA_URLICONSPATH . $fbIcons['forumlocked'] . '" border="0" alt="' . _GEN_LOCKED_FORUM . '" title="' . _GEN_LOCKED_FORUM . '"/>' : ' <img src="' . KUNENA_URLIMAGESPATH . 'lock.gif" border="0" width="13" height="13" alt="' . _GEN_LOCKED_FORUM . '" title="' . _GEN_LOCKED_FORUM . '">';
}
// check if this forum is reviewed
if ($obj_fb_cat->getReview()) {
$return .= isset($fbIcons['forumreviewed']) ? ' <img src="' . KUNENA_URLICONSPATH . $fbIcons['forumreviewed'] . '" border="0" alt="' . _GEN_REVIEWED . '" title="' . _GEN_REVIEWED . '"/>' : ' <img src="' . KUNENA_URLIMAGESPATH . 'review.gif" border="0" width="15" height="15" alt="' . _GEN_REVIEWED . '" title="' . _GEN_REVIEWED . '">';
}
//check if this forum is moderated
if ($obj_fb_cat->getModerated()) {
$return .= isset($fbIcons['forummoderated']) ? ' <img src="' . KUNENA_URLICONSPATH . $fbIcons['forummoderated'] . '" border="0" alt="' . _GEN_MODERATED . '" title="' . _GEN_MODERATED . '"/>' : ' <img src="' . KUNENA_URLEMOTIONSPATH . 'moderate.gif" border="0" alt="' . _GEN_MODERATED . '" title="' . _GEN_MODERATED . '"/>';
$text = '';
if (count($modslist) > 0) {
foreach ($modslist as $mod) {
$text = $text . ', ' . $mod->username;
}
$return .= ' (' . _GEN_MODERATORS . ': ' . ltrim($text, ",") . ')';
}
}
if ($obj_post != 0) {
if ($bool_set_title) {
$document->setTitle($obj_post->subject . ' - ' . stripslashes($fbConfig->board_title));
}
// Topic
// show lines
$return .= '<br /> <img src="' . KUNENA_URLIMAGESPATH . 'tree-blank.gif" alt="| " border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-blank.gif" alt="| " border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-end.gif" alt="|-" border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" alt="+" border="0" style="vertical-align: middle;" /> ';
$return .= ' <b>' . $obj_post->subject . '</b>';
// Check if the Topic is locked?
if ((int) $obj_post->locked != 0) {
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'lock.gif" border="0" width="13" height="13" alt="' . _GEN_LOCKED_TOPIC . '" title="' . _GEN_LOCKED_TOPIC . '"/>';
}
}
// echo '</div>';
return $return;
}
示例10: isset
if (is_file(KUNENA_ABSCATIMAGESPATH . $forumparent->id . "_notlogin_childsmall.gif")) {
echo "<img src=\"" . KUNENA_URLCATIMAGES . $forumparent->id . "_notlogin_childsmall.gif\" border=\"0\" class='forum-cat-image' alt=\" \" />";
} else {
echo isset($fbIcons['notloginforum']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['notloginforum_childsmall'] . '" border="0" alt="' . _GEN_FORUM_NOTNEW . '" title="' . _GEN_FORUM_NOTNEW . '" />' : stripslashes($fbConfig->newchar);
}
?>
<?php
}
//
}
// end: parent read unread iconset
?>
<?php
echo CKunenaLink::GetCategoryLink('showcat', $forumparent->id, stripslashes($forumparent->name), 'follow') . ' ';
}
echo "</div>";
}
//get the Moderator list for display
$kunena_db->setQuery("SELECT * FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='{$singlerow->id}'");
$modslist = $kunena_db->loadObjectList();
check_dberror("Unable to load moderators.");
// moderator list
if (count($modslist) > 0) {
echo '<div class="' . $boardclass . 'thead-moderators fbs">' . _GEN_MODERATORS . ": ";
$mod_cnt = 0;
foreach ($modslist as $mod) {
if ($mod_cnt) {
echo ', ';
}
示例11:
</li>
<?php
if ($this->params->get('sh_firstcontentcharacter')) {
?>
<li class="klatest-preview-content"><?php
echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get('lengthcontentcharacters'));
?>
</li>
<?php
}
?>
<?php
if ($this->params->get('sh_category')) {
?>
<li class="klatest-cat"><?php
echo JText::_('MOD_KUNENALATEST_IN_CATEGORY') . ' ' . CKunenaLink::GetCategoryLink('showcat', $item->catid, $item->catname);
?>
</li>
<?php
}
?>
<?php
if ($this->params->get('sh_author')) {
?>
<li class="klatest-author"><?php
echo JText::_('MOD_KUNENALATEST_LAST_POST_BY') . ' ' . CKunenaLink::GetProfileLink($item->userid, $item->name);
?>
</li>
<?php
}
?>
示例12: intval
forum-pathway">
<?php
$catids = intval($catid);
$jr_path_menu = array();
echo '<div class="path-element-first">' . CKunenaLink::GetKunenaLink(kunena_htmlspecialchars(stripslashes($fbConfig->board_title))) . '</div>';
while ($catids > 0) {
$query = "SELECT * FROM #__fb_categories WHERE id='{$catids}' AND published='1'";
$kunena_db->setQuery($query);
$results = $kunena_db->loadObject();
if (!$results) {
break;
}
$parent_ids = $results->parent;
$fr_name = kunena_htmlspecialchars(trim(stripslashes($results->name)));
//$cids=@mysql_result( $results, 0, 'id' );
$sname = CKunenaLink::GetCategoryLink('showcat', $catids, $fr_name);
if ($catid == $catids && $sfunc != "view") {
$fr_title_name = $fr_name;
$jr_path_menu[] = $fr_name;
} else {
$jr_path_menu[] = $sname;
}
// write path
if (empty($spath)) {
$spath = $sname;
} else {
$spath = $sname . "<div class=\"path-element\">" . $spath . "</div>";
}
// next looping
$catids = $parent_ids;
}
示例13:
echo JText::_('COM_KUNENA_CREDITS_THANKS');
?>
</div>
<div class="kcredits-language">
<?php
echo JText::_('COM_KUNENA_CREDITS_LANGUAGE');
?>
<?php
echo JText::_('COM_KUNENA_CREDITS_LANGUAGE_THANKS');
?>
</div>
<div class="kcredits-more">
<?php
$catid = (int) $catid;
// Add a link to go back to the latest category we where viewing...
echo '<div>' . JText::_('COM_KUNENA_CREDITS_GO_BACK') . ' ' . CKunenaLink::GetCategoryLink('showcat', $catid, JText::_('COM_KUNENA_USER_RETURN_B'), $rel = 'nofollow') . '</div>';
?>
</div>
<!-- Version Info -->
<div class="kfooter"><?php
echo JText::_('COM_KUNENA_COPYRIGHT');
?>
© 2008 - 2011 <a href = "http://www.kunena.org" target = "_blank">Kunena</a>, <?php
echo JText::_('COM_KUNENA_LICENSE');
?>
: <a href = "http://www.gnu.org/copyleft/gpl.html" target = "_blank">GNU GPL</a></div>
<!-- /Version Info -->
</div>
</div>
</div>
<!-- Begin: Forum Jump -->
示例14: foreach
<?php
}
?>
<?php
// Display subcategories
if (!empty($this->childforums[$category->id])) {
?>
<div class="kthead-child">
<div class="kcc-table">
<?php
foreach ($this->childforums[$category->id] as $childforum) {
?>
<div class="kcc-subcat km">
<?php
echo $childforum->htmlCategoryIcon;
echo CKunenaLink::GetCategoryLink('showcat', intval($childforum->id), $this->escape($childforum->name), '', '', KunenaParser::stripBBCode($childforum->description));
echo '<span class="kchildcount ks">(' . $this->escape($childforum->numTopics) . "/" . $this->escape($childforum->numPosts) . ')</span>';
?>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
<?php
if (!empty($this->modlist[$category->id])) {
?>
<div class="kthead-moderators ks">
示例15: if
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' )) {
if ($item->locked) {
echo '<img src="'.$this->ktemplate->getImagePath('icons/lock_sm.png').'" alt="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" />';
}
}
?>
</li>
<?php if ($this->params->get ( 'sh_firstcontentcharacter' )) : ?>
<li class="klatest-preview-content"><?php echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get ( 'lengthcontentcharacters' )); ?></li>
<?php endif; ?>
<?php if ($this->params->get ( 'sh_category' )) : ?>
<li class="klatest-cat"><?php echo JText::_ ( 'MOD_KUNENALATEST_IN_CATEGORY' ).' '.CKunenaLink::GetCategoryLink ( 'showcat', $item->catid, $item->catname ); ?></li>
<?php endif; ?>
<?php if ($this->params->get ( 'sh_author' )) : ?>
<li class="klatest-author"><?php echo JText::_ ( 'MOD_KUNENALATEST_LAST_POST_BY' ) .' '. CKunenaLink::GetProfileLink ( $item->userid, $item->name ); ?></li>
<?php endif; ?>
<?php if ($this->params->get ( 'sh_time' )) : ?>
<li class="klatest-posttime"><?php $override = $this->params->get ( 'dateformat' ); echo CKunenaTimeformat::showDate($this->params->get( 'choosemodel' ) == 'latestposts' ? $item->time : $item->lasttime, $override ? $override : 'config_post_dateformat');?></li>
<?php endif; ?>
</ul>
</li>
<?php
} //end foreach
?>
</ul>
<?php if ($this->params->get ( 'sh_morelink' )): ?>
<p class="klatest-more"><?php echo CKunenaLink::GetShowLatestLink ( JText::_ ( 'MOD_KUNENALATEST_MORE_LINK' ) , $this->latestdo ); ?></p>