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


PHP CKunenaLink::GetSamePageAnkerLink方法代码示例

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


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

示例1: getNumLink

 public function getNumLink($mesid, $replycnt)
 {
     if ($this->config->ordering_system == 'replyid') {
         $this->numLink = CKunenaLink::GetSamePageAnkerLink($mesid, '#' . $replycnt);
     } else {
         $this->numLink = CKunenaLink::GetSamePageAnkerLink($mesid, '#' . $mesid);
     }
     return $this->numLink;
 }
开发者ID:laiello,项目名称:senluonirvana,代码行数:9,代码来源:view.html.php

示例2: isset

        }
    } else {
        echo "<p align=\"center\">";
        echo '<br /><br />' . _SHOWCAT_NO_TOPICS;
        echo "</p>";
    }
    ?>
    <!-- bottom nav -->

    <table border = "0" cellspacing = "0" class = "jr-bottomnav" cellpadding = "0">
        <tr>
            <td class = "jr-topnav-left">
                <?php 
    //go to top
    echo '<a name="forumbottom" />';
    echo CKunenaLink::GetSamePageAnkerLink('forumtop', isset($fbIcons['toparrow']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['toparrow'] . '" border="0" alt="' . _GEN_GOTOTOP . '" title="' . _GEN_GOTOTOP . '"/>' : _GEN_GOTOTOP);
    ?>

                <?php 
    if ($is_Moderator || $forumLocked == 0 && ($kunena_my->id > 0 || $fbConfig->pubwrite)) {
        //this user is allowed to post a new topic:
        echo CKunenaLink::GetPostNewTopicLink($catid, isset($fbIcons['new_topic']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['new_topic'] . '" alt="' . _GEN_POST_NEW_TOPIC . '" title="' . _GEN_POST_NEW_TOPIC . '" border="0" />' : _GEN_POST_NEW_TOPIC);
    }
    echo '</td><td class="jr-topnav-right">';
    //pagination 2
    if (count($messages[0]) > 0) {
        echo '<div class="jr-pagenav">' . _PAGE;
        if ($page - 2 > 1) {
            echo ' ' . CKunenaLink::GetCategoryPageLink('showcat', $catid, 1, 1, $rel = 'follow', $class = 'jr-pagenav-nb');
        }
        for ($i = $page - 2 <= 0 ? 1 : $page - 2; $i <= $page + 2 && $i <= ceil($total / $threads_per_page); $i++) {
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:showcat.php

示例3: if

					</tr>
					<!-- /Bulk Actions -->
					<?php endif; ?>
					<?php endif; ?>
				</table>
		</div>
	</div>
</div>
</form>

<!-- B: List Actions Bottom -->
<table class="klist-actions-bottom" >
	<tr>
		<td class="klist-actions-goto">
			<a name="forumbottom"> </a>
			<?php echo CKunenaLink::GetSamePageAnkerLink ( 'forumtop', $this->getIcon ( 'kforumtop', JText::_('COM_KUNENA_GEN_GOTOBOTTOM') ), 'nofollow', 'kbuttongoto') ?>
		</td>
		<?php if (!empty ( $this->newTopicHtml ) || !empty ( $this->markReadHtml ) || !empty ( $this->subscribeCatHtml )) : ?>
		<td class="klist-actions-forum">
			<div class="kmessage-buttons-row"><?php echo $this->newTopicHtml .' ' . $this->markReadHtml . ' ' . $this->subscribeCatHtml; ?></div>
		</td>
		<?php endif; ?>
		<td class="klist-pages-all"><?php echo $this->getPagination (7); // odd number here (# - 2) ?></td>
	</tr>
</table>

<?php $this->displayBreadcrumb () ?>

<div class="kcontainer klist-bottom">
	<div class="kbody">
		<div class="kmoderatorslist-jump fltrt"><?php $this->displayForumJump (); ?></div>
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:default.php

示例4: defined

 * @package Kunena.Template.Blue_Eagle
 * @subpackage Topic
 *
 * @copyright (C) 2008 - 2012 Kunena Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link http://www.kunena.org
 **/
defined('_JEXEC') or die;
// Goto up / down
$locations = array('top', 'bottom');
if (!isset($this->location)) {
    $this->location = 0;
}
$goto = '<a name="forum' . $locations[$this->location] . '"></a>';
$this->location ^= 1;
$goto .= CKunenaLink::GetSamePageAnkerLink('forum' . $locations[$this->location], $this->getIcon('kforum' . $locations[$this->location], JText::_('COM_KUNENA_GEN_GOTO' . strtoupper($locations[$this->location]))), 'nofollow', 'kbuttongoto');
?>
<table class="klist-actions">
	<tr>
		<td class="klist-actions-goto">
			<?php 
echo $goto;
?>
		</td>
		<td class="klist-actions-forum">
		<?php 
if ($this->topicButtons->get('reply') || $this->topicButtons->get('subscribe') || $this->topicButtons->get('favorite')) {
    ?>
			<div class="kmessage-buttons-row">
			<?php 
    echo $this->topicButtons->get('reply');
开发者ID:laiello,项目名称:senluonirvana,代码行数:31,代码来源:default_actions.php

示例5: displayThreadActions

 function displayThreadActions($location = 0)
 {
     static $locations = array('top', 'bottom');
     $this->goto = '<a name="forum' . $locations[$location] . '"></a>';
     $location ^= 1;
     $this->goto .= CKunenaLink::GetSamePageAnkerLink('forum' . $locations[$location], CKunenaTools::showIcon('kforum' . $locations[$location], JText::_('COM_KUNENA_GEN_GOTO' . $locations[$location])), 'nofollow', 'kbuttongoto');
     CKunenaTools::loadTemplate('/view/thread.actions.php');
 }
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:8,代码来源:view.php

示例6:

}
?>

<table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
    <tbody>
        <tr class = "fb_sth">
            <th colspan = "2" class = "view-th <?php 
echo $boardclass;
?>
sectiontableheader">
        	<a name = "<?php 
echo $msg_id;
?>
"></a>
<?php 
echo CKunenaLink::GetSamePageAnkerLink($msg_id, '#' . $msg_id);
?>
            </th>
        </tr>

        <tr> <!-- -->

        <td class = "fb-msgview-right">
                <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                    <tr>
                        <td align = "left">
                            <?php 
$msg_time_since = _KUNENA_TIME_SINCE;
$msg_time_since = str_replace('%time%', time_since($fmessage->time, CKunenaTools::fbGetInternalTime()), $msg_time_since);
if ($prevCheck < $fmessage->time && !in_array($fmessage->thread, $read_topics)) {
    $msgtitle = 'msgtitle_new';
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:message.php

示例7:

		</td>
	</tr>
</table>
<!-- F: List Actions -->

<?php 
$this->displayFlat();
?>

<!-- B: List Actions Bottom -->
<table class="klist-actions-bottom" >
	<tr>
		<td class="klist-actions-goto">
			<a name="forumbottom"> </a>
			<?php 
echo CKunenaLink::GetSamePageAnkerLink('forumtop', CKunenaTools::showIcon('kforumtop', JText::_('COM_KUNENA_GEN_GOTOBOTTOM')), 'nofollow', 'kbuttongoto');
?>
		</td>
		<td class="klist-actions-forum">
			<?php 
if (isset($this->forum_new) || isset($this->forum_markread) || isset($this->thread_subscribecat)) {
    echo '<div class="kmessage-buttons-row">';
    if (isset($this->forum_new)) {
        echo $this->forum_new;
    }
    if (isset($this->forum_markread)) {
        echo ' ' . $this->forum_markread;
    }
    if (isset($this->thread_subscribecat)) {
        echo ' ' . $this->thread_subscribecat;
    }
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:showcat.php


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