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

PHP post_views函数代码示例

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

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



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

示例1: youpzt_thumbnail

		   <a href="<?php 
        echo $post_link;
        ?>
" class="zoom" rel="bookmark" title="<?php 
        echo $post_title;
        ?>
"><?php 
        echo youpzt_thumbnail(250, 260);
        ?>
 </a>
		  <div class="caption">    
			<p class="f12 pro-meta"><span>关注度:<?php 
        if (function_exists('the_views')) {
            the_views();
        } else {
            post_views();
        }
        ?>
</span><span class="fr pro-time f12"><em class="glyphicon fui-time"></em> <?php 
        echo get_the_time('Y-m-d');
        ?>
</span></p>
			<!--<div class="color-6"><?php 
        the_tags('<span class="pro-tags">标签:', '/', '</span>');
        ?>
</div>-->
		  </div>
		</div>
	</div>

     <?php 
开发者ID:fengdou902,项目名称:testgit,代码行数:31,代码来源:reader.php


示例2: get_the_author

"><?php 
        echo get_the_author();
        ?>
</a>&#124;</span>
 				<span class="metapl">
				 <?php 
        comments_popup_link('暂无评论 &#187;', '1 条评论 &#187;', '% 条评论 &#187;');
        ?>
</span>
				<span class="metabj">
				  <?php 
        edit_post_link('编辑', ' &#124; ', '');
        ?>
				</span>	
				阅读:<?php 
        post_views(' ', ' 次');
        ?>
			
				</p>
		</div>
	</div>

    <?php 
    }
    ?>

    <div class="navigation">
    	<?php 
    posts_nav_link('', '', '');
    ?>
    </div>
开发者ID:Lichmao,项目名称:mytheme,代码行数:31,代码来源:index.php


示例3: while

    while (have_posts()) {
        the_post();
        ?>
            <article class="post-page post" id="post-<?php 
        the_ID();
        ?>
">
                <header class="page-title">
                    <h2><?php 
        the_title();
        ?>
</h2>
                    <address class="page-edit">
                        <span class  ="entry-views"><?php 
        if (function_exists('post_views')) {
            post_views('浏览:', '次');
        }
        ?>
</span>
                        <span ><?php 
        edit_post_link(__('[编辑]', 'zws'), '<p>', '</p>');
        ?>
</span>
                    </address>
                </header>
                <div class="entry">
                    <?php 
        the_content();
        ?>
                </div>
            </article>
开发者ID:nooldey,项目名称:WordPress-theme-BooDing,代码行数:31,代码来源:page.php


示例4: the_ID

?>
<div id="wrapper">
    <div id="content">
        <article class="post post-page"  id="post-<?php 
the_ID();
?>
">
            <header class="page-title">
                <h2><?php 
the_title();
?>
</h2>
                <address class="page-edit">
                    <span class  ="entry-views"><?php 
if (function_exists('post_views')) {
    post_views('浏览', '次');
}
?>
</span>
                    <span ><?php 
edit_post_link(__('[编辑]', 'zws'), '<p>', '</p>');
?>
</span>
                </address>
            </header>
            <div class="entry">
                <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
开发者ID:nooldey,项目名称:WordPress-theme-BooDing,代码行数:31,代码来源:UrlRend.php


示例5: comments_popup_link

                <span class="comments-link"><?php 
    comments_popup_link('0', '1', '%');
    ?>
</span>
            <?php 
}
?>
            <address class="entry-meta">
                <p>
                    <span class="entry-author"><?php 
the_author_posts_link('');
?>
</span>  
                    <span class  ="entry-views"><?php 
if (function_exists('post_views')) {
    post_views('', ' views');
}
?>
</span>
                    <span class="entry-edit"><?php 
edit_post_link('编辑', '[', ']');
?>
</span>
                </p>
            </address>
            <?php 
if (is_home() || is_archive() || is_search()) {
    ?>
            <div class="entry">
                <?php 
    include 'thumbnail.php';
开发者ID:nooldey,项目名称:WordPress-theme-BooDing,代码行数:31,代码来源:post-standard.php


示例6: comments_open

										'link_before' => '<span>',
										'link_after'  => '</span>',
									) ); ?>
									
								<?php   comments_open() ?>
								</p>
							</div>
							<footer class="post-meta-single">
								<div class="meta-l">
									 <?php the_tags( '<span class="post-tag">', '', '</span>'); ?>
									 <span class="post-auther"><?php the_author_posts_link(); ?></span>
									 <span class="post-category"><?php the_category('/') ?></span>
									 <?php edit_post_link('编辑', '<span class="post-auther">', '</span>'); ?>
								 </div>
								 <div class="meta-r">
									 <span class="post"><?php post_views(' ','次点击'); ?> </span>
									 <span class="comments-num" date-cunt="<?php echo zfunc_comments_users($post->ID); ?>"><?php comments_popup_link('0人发表看法', '1人发表看法', '%人发表看法'); ?></span>
								</div>
								<div class="clearfix"></div>
							</footer>
						</div>
					</article>
					<?php
				endwhile;
				// Previous/next post navigation.
				 ?>
		    	<?php 
			else :
				// If no content, include the "No posts found" template.
				get_template_part( 'content', 'none' );
开发者ID:alongbao,项目名称:M-V2EX,代码行数:30,代码来源:single.php


示例7: the_author

        the_author();
        ?>
 于 <?php 
        the_time('m');
        ?>
-<?php 
        the_time('d');
        ?>
 发布在 <?php 
        the_category(', ');
        ?>
 分类下 <?php 
        printf(_e('超过', 'Gztro'));
        ?>
 <?php 
        post_views(' ');
        ?>
 次围观 <?php 
        comments_popup_link('暂无评论', '1条评论', '%条评论');
        ?>
 &nbsp; <?php 
        edit_post_link('编辑本文', '', '');
        ?>
</span>
</div>	
<?php 
    }
}
?>
<div class="pagenavi"><?php 
pagenavi();
开发者ID:surmon-china,项目名称:Wordpress_Theme_Think,代码行数:31,代码来源:index.php


示例8: comments_popup_link

?>
</h1>
			<?php 
if (comments_open()) {
    ?>
				<div class="comments-link" style="margin: 10px 0px;">
					<i class="fa fa-comments"></i><?php 
    comments_popup_link('<span class="leave-reply">' . __('暂无评论', 'hmjblog') . '</span>', __('1条评论', 'hmjblog'), __('%条评论', 'hmjblog'));
    ?>
 <i class="fa fa-eye"></i><?php 
    post_views('', '次浏览');
    ?>
				</div>
			<?php 
}
?>
			<?php 
if (!comments_open()) {
    ?>
				<div class="comments-link" style="margin: 10px 0px;">
					<i class="fa fa-comments"></i><span class="leave-reply">评论关闭</span> <i class="fa fa-eye"></i><?php 
    post_views('', '次浏览');
    ?>
				</div>
			<?php 
}
?>
		</header>
		<div class="entry-content">
			<?php 
the_content();
开发者ID:ericzuobin,项目名称:sahinn-blog,代码行数:31,代码来源:template-page.php


示例9: the_author

							<span class="group">
								<i class="iconfont iconfont-exceprt">&#xe605</i>
								<?php 
        the_author();
        ?>
							</span>
							<span class="group">
								<i class="iconfont iconfont-exceprt">&#xe608</i>
								<?php 
        the_time('Y-m-d');
        ?>
							</span>
							<span class="group">
								<i class="iconfont iconfont-exceprt">&#xe607</i>
								<?php 
        echo post_views();
        ?>
浏览
							</span>
							<span class="group">
								<i class="iconfont iconfont-exceprt">&#xe606</i>
								<?php 
        comments_popup_link('0 条评论', '1 条评论', '% 条评论', '', '评论已关闭');
        ?>
							</span>
					</div>
					<div class="note">
						<?php 
        the_excerpt();
        ?>
					</div>
开发者ID:pemiu01,项目名称:WordPress_Theme_2m,代码行数:31,代码来源:archive.php


示例10: the_author

        the_author();
        ?>
</span>
				<span class="date"><?php 
        _e('时间:', 'html5blank');
        the_time('Y-m-d');
        ?>
</span>
				<span class="category"><?php 
        _e('分类: ', 'html5blank');
        the_category(', ');
        // Separated by commas
        ?>
</span>
				<span class="views"><?php 
        post_views('阅读:', '');
        ?>
</span>
			</div>
			<!-- post details -->
			<div class="entry-article">
				<?php 
        the_content();
        // Dynamic Content
        ?>
			

				<?php 
        the_tags(__('标签: ', 'html5blank'), ', ', '<br>');
        // Separated by commas with a line break at the end
        ?>
开发者ID:Fengtalk,项目名称:Bytecats,代码行数:31,代码来源:single.php


示例11: the_author_posts_link

								</p>
							</div>
							<footer class="post-meta-single">
								<div class="meta-l">
									 <span class="post-auther"><?php 
        the_author_posts_link();
        ?>
</span>
									 <span class="post-category"><?php 
        the_category('/');
        ?>
</span>
								 </div>
								 <div class="meta-r">
									 <span class="post"><?php 
        post_views(' ', '次点击');
        ?>
 </span>
									 <span class="comments-num"><?php 
        comments_popup_link('0人发表看法', '1人发表看法', '%人发表看法');
        ?>
</span>
								</div>
								<div class="clearfix"></div>
							</footer>
						</div>
					</article>
					<?php 
    }
    // Previous/next post navigation.
    ?>
开发者ID:alongbao,项目名称:M-V2EX,代码行数:31,代码来源:page.php


示例12: array

<ul>
        <?php 
$args = array('posts_per_page' => 8, 'meta_key' => 'views', 'orderby' => 'meta_value_num', 'date_query' => array(array('after' => '2 month ago')));
$postslist = get_posts($args);
foreach ($postslist as $post) {
    setup_postdata($post);
    ?>
            <li><i class="righticon"></i>
                <a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    echo mb_strimwidth(get_the_title(), 0, 50, '...');
    ?>
"><?php 
    echo mb_strimwidth(get_the_title(), 0, 26, '...');
    ?>
</a>
                <span class="grey-span"> - <?php 
    if (function_exists('post_views')) {
        post_views($post->ID);
    }
    //如果安装的是插件就换成插件的调用方法
    ?>
</span>
            </li>
        <?php 
}
wp_reset_postdata();
?>
</ul>
开发者ID:nooldey,项目名称:WordPress-theme-BooDing,代码行数:31,代码来源:topviews.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP postbox_classes函数代码示例发布时间:2022-05-15
下一篇:
PHP post_url函数代码示例发布时间: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