• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP next_comments_link函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中next_comments_link函数的典型用法代码示例。如果您正苦于以下问题:PHP next_comments_link函数的具体用法?PHP next_comments_link怎么用?PHP next_comments_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: get_comment_nav

function get_comment_nav()
{
    ?>

	<?php 
    if (get_comment_pages_count() > 1) {
        ?>
	<div class="comments-nav">
		<div class="prev">
			<?php 
        previous_comments_link(__('Prev Comments', 'rb'));
        ?>
		</div>
		<div class="next">
			<?php 
        next_comments_link(__('Next Comments', 'rb'));
        ?>
		</div>
	</div>
	<?php 
    }
    ?>

<?php 
}
开发者ID:anaved,项目名称:wordpress-tinkering,代码行数:25,代码来源:comments.php


示例2: tamatebako_comments_nav

/**
 * Comments Nav
 * @since 0.1.0
 */
function tamatebako_comments_nav()
{
    if (get_option('page_comments') && 1 < get_comment_pages_count()) {
        // Check for paged comments.
        ?>

	<div class="comments-nav">

		<?php 
        previous_comments_link('<span class="prev-comments"><span class="screen-reader-text">' . tamatebako_string('previous_comment') . '</span></span>');
        ?>

		<span class="page-numbers"><?php 
        printf('%1$s / %2$s', get_query_var('cpage') ? absint(get_query_var('cpage')) : 1, get_comment_pages_count());
        ?>
</span>

		<?php 
        next_comments_link('<span class="next-comments"><span class="screen-reader-text">' . tamatebako_string('next_comment') . '</span></span>');
        ?>

	</div><!-- .comments-nav -->

<?php 
    }
    // End check for paged comments.
}
开发者ID:WPDevHQ,项目名称:nevertheless,代码行数:31,代码来源:comment.php


示例3: thb_comments_navigation

 function thb_comments_navigation()
 {
     global $post;
     if (get_comment_pages_count() > 1 && get_option('page_comments')) {
         previous_comments_link(__('Older comments', 'thb_text_domain'));
         next_comments_link(__('Newer comments', 'thb_text_domain'));
     }
 }
开发者ID:alfredpp,项目名称:sarath-portfolio,代码行数:8,代码来源:helper.comments.php


示例4: genesis_do_comments

/**
 * Echo Genesis default comment structure.
 *
 * @since 1.1.2
 *
 * @uses genesis_get_option()
 *
 * @global stdClass $post Post object
 * @global WP_Query $wp_query
 * @return null Returns early if on a page with Genesis pages comments off, or a post and Genesis posts comments off.
 */
function genesis_do_comments()
{
    global $post, $wp_query;
    /** Bail if comments are off for this post type */
    if (is_page() && !genesis_get_option('comments_pages') || is_single() && !genesis_get_option('comments_posts')) {
        return;
    }
    if (have_comments() && !empty($wp_query->comments_by_type['comment'])) {
        ?>
		<div id="comments">
			<?php 
        echo apply_filters('genesis_title_comments', __('<h3>Comments</h3>', 'genesis'));
        ?>
			<ol class="comment-list">
				<?php 
        do_action('genesis_list_comments');
        ?>
			</ol>
			<div class="navigation">
				<div class="alignleft"><?php 
        previous_comments_link();
        ?>
</div>
				<div class="alignright"><?php 
        next_comments_link();
        ?>
</div>
			</div>
		</div><!--end #comments-->
		<?php 
    } else {
        ?>
		<div id="comments">
			<?php 
        /** Comments are open, but there are no comments */
        if ('open' == $post->comment_status) {
            echo apply_filters('genesis_no_comments_text', '');
        } else {
            /** Comments are closed */
            echo apply_filters('genesis_comments_closed_text', '');
        }
        ?>
		</div><!--end #comments-->
		<?php 
    }
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:57,代码来源:comments.php


示例5: calibrefx_do_comments

/**
 * Output comment structure.
 *
 * @uses calibrefx_get_option()
 *
 */
function calibrefx_do_comments()
{
    global $post, $wp_query;
    /** Bail if comments are off for this post type */
    if (is_page() && !calibrefx_get_option('comments_pages') || is_single() && !calibrefx_get_option('comments_posts')) {
        return;
    }
    if (have_comments() && !empty($wp_query->comments_by_type['comment'])) {
        ?>
        <div id="comments">
                <?php 
        echo apply_filters('calibrefx_title_comments', __('<h3>Comments</h3>', 'calibrefx'));
        ?>
                <ol class="comment-list">
                        <?php 
        do_action('calibrefx_list_comments');
        ?>
                </ol>
                <div class="comment-navigation">
                    <ul class="pager">
                        <li class="previous"><?php 
        previous_comments_link();
        ?>
</li>
                        <li class="next"><?php 
        next_comments_link();
        ?>
</li>
                    </ul>
                </div>
        </div><!--end #comments-->
        <?php 
    } else {
        echo '<div id="comments" class="no-comments">';
        if ('open' == $post->comment_status) {
            echo apply_filters('calibrefx_no_comments_text', '');
        } else {
            echo apply_filters('calibrefx_comments_closed_text', '');
        }
        echo '</div><!--end #comments-->';
    }
}
开发者ID:alispx,项目名称:calibrefx,代码行数:48,代码来源:comments-hook.php


示例6: scaffolder_comment_nav

/**
 * Comments nav
 */
function scaffolder_comment_nav()
{
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        ?>
        <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
            <h1 class="screen-reader-text"><?php 
        _e('Comment navigation', 'scaffold');
        ?>
</h1>
            <div class="nav-previous"><?php 
        previous_comments_link(__('&larr; Older Comments', 'scaffold'));
        ?>
</div>
            <div class="nav-next"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'scaffold'));
        ?>
</div>
        </nav>
    <?php 
    }
}
开发者ID:360ecommerce,项目名称:scaffolder,代码行数:24,代码来源:helpers.php


示例7: the_bootstrap_comment_nav

    /**
     * Display navigation to next/previous comments pages when applicable
     *
     * @author	Konstantin Obenland
     * @since	1.5.0 - 19.05.2012
     *
     * @return	void
     */
    function the_bootstrap_comment_nav()
    {
        if (get_comment_pages_count() > 1 and get_option('page_comments')) {
            // are there comments to navigate through
            ?>
	<nav class="comment-nav well">
		<h1 class="assistive-text"><?php 
            _e('Comment navigation', 'the-bootstrap');
            ?>
</h1>
		<div class="nav-previous alignleft"><?php 
            next_comments_link(__('&larr; Newer Comments', 'the-bootstrap'));
            ?>
</div>
		<div class="nav-next alignright"><?php 
            previous_comments_link(__('Older Comments &rarr;', 'the-bootstrap'));
            ?>
</div>
	</nav>
	<?php 
        }
        // check for comment navigation
    }
开发者ID:jimmyshen007,项目名称:webproject,代码行数:31,代码来源:template-tags.php


示例8: _e

<?php

// DISPLAY COMMENTS IF COMMENTS ARE OPENED
if (comments_open()) {
    echo '<div class="comments">', '<h2>';
    _e('Comentários', 'wikiwp');
    // alterado
    echo '</h2>';
    if (have_comments()) {
        // this is displayed if there are comments
        echo '<h3>';
        _e('Este post tem', 'wikiwp');
        echo '&nbsp;';
        comments_number(__('0 comentários', 'wikiwp'), __('um comentário', 'wikiwp'), __('% comentários', 'wikiwp'));
        echo '</h3>', '<ul class="commentlist">';
        wp_list_comments();
        echo '</ul>', '<div class="comment-nav">', '<div class="alignleft">';
        previous_comments_link();
        echo '</div>', '<div class="alignright">';
        next_comments_link();
        echo '</div>', '</div>';
    } else {
        // this is displayed if there are no comments so far
        _e('Nenhum comentário!', 'wikiwp');
    }
    // load comment form
    comment_form();
    echo '</div>';
    // end of .content
}
开发者ID:arildoosilva,项目名称:besm_restricted_area,代码行数:30,代码来源:comments.php


示例9: _e

		<?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        // are there comments to navigate through
        ?>
		<nav id="comment-nav-below" class="comment-navigation navigation" role="navigation">
			<h1 class="screen-reader-text"><?php 
        _e('Comment navigation', 'responsive-mobile');
        ?>
</h1>
			<div class="nav-previous previous"><?php 
        previous_comments_link(__('&larr; Older Comments', 'responsive-mobile'));
        ?>
</div>
			<div class="nav-next next"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'responsive-mobile'));
        ?>
</div>
		</nav><!-- #comment-nav-below -->
		<?php 
    }
    // check for comment navigation
    ?>

	<?php 
}
// have_comments()
?>

	<?php 
// If comments are closed and there are comments, let's leave a little note, shall we?
开发者ID:AhmeddSayed,项目名称:MM_Portal,代码行数:30,代码来源:comments.php


示例10: _e

		<?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        // are there comments to navigate through
        ?>
		<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
			<h1 class="assistive-text"><?php 
        _e('Comment navigation', 'abelard');
        ?>
</h1>
			<div class="nav-previous"><?php 
        previous_comments_link(__('&larr; Older Comments', 'abelard'));
        ?>
</div>
			<div class="nav-next"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'abelard'));
        ?>
</div>
		</nav>
		<?php 
    }
    // check for comment navigation
    ?>

	<?php 
}
// have_comments()
?>

	<?php 
// If comments are closed and there are comments, let's leave a little note, shall we?
开发者ID:rlridenour,项目名称:abelard,代码行数:30,代码来源:comments.php


示例11: esc_html_e

    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        // Are there comments to navigate through?
        ?>
		<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
			<h2 class="screen-reader-text"><?php 
        esc_html_e('Comment navigation', 'bizwebsky');
        ?>
</h2>
			<div class="nav-links">

				<div class="nav-previous"><?php 
        previous_comments_link(esc_html__('Older Comments', 'bizwebsky'));
        ?>
</div>
				<div class="nav-next"><?php 
        next_comments_link(esc_html__('Newer Comments', 'bizwebsky'));
        ?>
</div>

			</div><!-- .nav-links -->
		</nav><!-- #comment-nav-below -->
		<?php 
    }
    // Check for comment navigation.
    ?>

	<?php 
}
// Check for have_comments().
?>
开发者ID:haihoanglinh,项目名称:shop,代码行数:30,代码来源:comments.php


示例12: _e

	</ul>

	<?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        ?>
	<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
		<h1 class="sr-only"><?php 
        _e('Comment navigation', 'tt');
        ?>
</h1>
		<div class="nav-previous"><?php 
        previous_comments_link(__('&laquo; Older Comments', 'tt'));
        ?>
</div>
		<div class="nav-next"><?php 
        next_comments_link(__('Newer Comments &raquo;', 'tt'));
        ?>
</div>
		<div class="clearfix"></div>
	</nav>
	<?php 
    }
    // Check for comment navigation.
    ?>

	<?php 
    if (!comments_open()) {
        ?>
	<p class="no-comments"><?php 
        _e('Comments are closed.', 'tt');
        ?>
开发者ID:brodie124,项目名称:dhatch_worx,代码行数:31,代码来源:comments.php


示例13: wp_list_comments

			<?php 
    wp_list_comments('avatar_size=80');
    ?>
		</ol>

		<?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        // Are there comments to navigate through?
        ?>
		<div class="navigation">
			<div class="nav-previous"><?php 
        previous_comments_link(__('<span class="meta-nav">&larr;</span> Older Comments', 'wppb_lang'));
        ?>
</div>
			<div class="nav-next"><?php 
        next_comments_link(__('Newer Comments <span class="meta-nav">&rarr;</span>', 'wppb_lang'));
        ?>
</div>
		</div><!-- .navigation -->
		<?php 
    }
    // check for comment navigation
    ?>

	<?php 
} else {
    // or, if we don't have comments:
    /* If there are no comments and comments are closed,
     * let's leave a little note, shall we?
     */
    if (!comments_open()) {
开发者ID:pemiu01,项目名称:wppaintbrush,代码行数:31,代码来源:comments.php


示例14: _e

			<?php 
        if (get_comment_pages_count() > 1 && get_option('page_comments')) {
            // are there comments to navigate through
            ?>
			<nav id="comment-nav-below" class="navigation" role="navigation">
				<h1 class="assistive-text section-heading"><?php 
            _e('Comment navigation', 'boss');
            ?>
</h1>
				<div class="nav-previous"><?php 
            previous_comments_link(__('&larr; Older Comments', 'boss'));
            ?>
</div>
				<div class="nav-next"><?php 
            next_comments_link(__('Newer Comments &rarr;', 'boss'));
            ?>
</div>
			</nav>
			<?php 
        }
        // check for comment navigation
        ?>

			<?php 
        /* If there are no comments and comments are closed, let's leave a note.
         * But we only want the note on posts and pages that had comments in the first place.
         */
        if (!comments_open() && get_comments_number()) {
            ?>
			<p class="nocomments"><?php 
开发者ID:tvolmari,项目名称:hammydowns,代码行数:30,代码来源:comments.php


示例15: _e

	</ol>

	<?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        ?>
	<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php 
        _e('Comment navigation', 'ib-educator');
        ?>
</h1>
		<div class="nav-previous"><?php 
        previous_comments_link(__('&larr; Older Comments', 'ib-educator'));
        ?>
</div>
		<div class="nav-next"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'ib-educator'));
        ?>
</div>
	</nav>
	<?php 
    }
    ?>

	<?php 
    if (!comments_open()) {
        ?>
	<p class="no-comments"><?php 
        _e('Comments are closed.', 'ib-educator');
        ?>
</p>
	<?php 
开发者ID:jeffreycai,项目名称:ct21,代码行数:31,代码来源:comments.php


示例16: previous_comments_link

    /* are there comments to navigate through */
    ?>
        <?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        ?>
        <nav id="comment-nav-below" class="navigation" role="navigation">

            <div class="nav-previous">
                <?php 
        previous_comments_link(__('&larr; Older Comments', 'teaberry'));
        ?>
            </div>

            <div class="nav-next">
                <?php 
        next_comments_link(__('Newer Comments &rarr;', 'teaberry'));
        ?>
            </div>

        </nav>
        <?php 
    }
    ?>

        <?php 
    /* comments are closed */
    ?>
        <?php 
    if (!comments_open() && get_comments_number()) {
        ?>
        <h2 class="comments-closed-title">
开发者ID:honeymustard,项目名称:teaberry,代码行数:31,代码来源:comments.php


示例17: _e

		<?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        // are there comments to navigate through
        ?>
		<nav id="comment-nav-below" class="navigation" role="navigation">
			<h1 class="assistive-text section-heading"><?php 
        _e('Comment navigation', 'tokopress');
        ?>
</h1>
			<div class="nav-previous"><?php 
        previous_comments_link(__('&larr; Older Comments', 'tokopress'));
        ?>
</div>
			<div class="nav-next"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'tokopress'));
        ?>
</div>
		</nav>
		<?php 
    }
    // check for comment navigation
    ?>

		<?php 
    /* If there are no comments and comments are closed, let's leave a note.
     * But we only want the note on posts and pages that had comments in the first place.
     */
    if (!comments_open() && get_comments_number()) {
        ?>
			<p class="nocomments"><?php 
开发者ID:rtmzzi,项目名称:yummMacVersao,代码行数:30,代码来源:comments.php


示例18: _e

		<?php 
    // Are there comments to navigate through?
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        ?>
		<nav class="navigation comment-navigation row clr" role="navigation">
			<h4 class="assistive-text section-heading heading"><span><?php 
        _e('Comment navigation', 'att');
        ?>
</span></h4>
			<div class="nav-previous span_12 col clr-margin"><?php 
        previous_comments_link(__('&larr; Older Comments', 'att'));
        ?>
</div>
			<div class="nav-next span_12 col"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'att'));
        ?>
</div>
		</nav>
		<?php 
    }
    // Check for comment navigation
    ?>

		<?php 
    if (!comments_open() && get_comments_number()) {
        ?>
		<p class="no-comments"><?php 
        _e('Comments are closed.', 'att');
        ?>
</p>
开发者ID:Vatia13,项目名称:dancesport,代码行数:30,代码来源:comments.php


示例19: previous_comments_link

                <ul class="pager">
                    <?php 
        if (get_previous_comments_link()) {
            ?>
                        <li class="previous"><?php 
            previous_comments_link(__('&larr; Older comments', 'sage'));
            ?>
</li>
                    <?php 
        }
        ?>
                    <?php 
        if (get_next_comments_link()) {
            ?>
                        <li class="next"><?php 
            next_comments_link(__('Newer comments &rarr;', 'sage'));
            ?>
</li>
                    <?php 
        }
        ?>
                </ul>
            </nav>
        <?php 
    }
    ?>
    <?php 
}
// have_comments()
?>
开发者ID:aguynamedirvin,项目名称:fc_wp,代码行数:30,代码来源:comments.php


示例20: esc_html_e

    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        // Are there comments to navigate through?
        ?>
		<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
			<h2 class="screen-reader-text"><?php 
        esc_html_e('Comment navigation', 'bftp');
        ?>
</h2>
			<div class="nav-links">

				<div class="nav-previous"><?php 
        previous_comments_link(esc_html__('Older Comments', 'bftp'));
        ?>
</div>
				<div class="nav-next"><?php 
        next_comments_link(esc_html__('Newer Comments', 'bftp'));
        ?>
</div>

			</div><!-- .nav-links -->
		</nav><!-- #comment-nav-below -->
		<?php 
    }
    // Check for comment navigation.
}
// Check for have_comments().
// If comments are closed and there are comments, let's leave a little note, shall we?
if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) {
    ?>

		<p class="no-comments"><?php 
开发者ID:codeshah,项目名称:bftp,代码行数:31,代码来源:comments.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP next_image函数代码示例发布时间:2022-05-15
下一篇:
PHP next_album函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap