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

PHP wptouch_get_comment_count函数代码示例

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

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



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

示例1: wptouch_fdn_comments_pagination

function wptouch_fdn_comments_pagination()
{
    if (get_option('comments_per_page') < wptouch_get_comment_count()) {
        return true;
    } else {
        return false;
    }
}
开发者ID:sb-xs,项目名称:que-pour-elle,代码行数:8,代码来源:root-functions.php


示例2: elseif

			<?php 
    if (is_sticky($post_ID)) {
        echo '<div class="sticky-pushpin"></div>';
    }
    ?>
		

			<?php 
    if (wptouch_get_comment_count() && wptouch_theme_use_calendar_icons()) {
        ?>
 
				<div class="comment-bubble <?php 
        if (wptouch_get_comment_count() > 9) {
            echo 'double';
        } elseif (wptouch_get_comment_count() > 99) {
            echo 'triple';
        }
        ?>
">
					<?php 
        comments_number('0', '1', '%');
        ?>
				</div>
			<?php 
    }
    ?>
				
			<?php 
    if (wptouch_theme_use_calendar_icons()) {
        ?>
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:search.php


示例3: wptouch_the_permalink

<!-- post loop -->
<a href="<?php 
wptouch_the_permalink();
?>
" class="loop-link tappable clearfix <?php 
if (!bauhaus_should_show_thumbnail()) {
    echo 'no-thumbs';
}
?>
">

	<?php 
if (wptouch_get_comment_count() > 0 && comments_open()) {
    ?>
		<div class="comments">
			<span><?php 
    comments_number('0', '1', '%');
    ?>
</span>
		</div>
	<?php 
}
?>
	<?php 
if (bauhaus_should_show_thumbnail() && wptouch_has_post_thumbnail()) {
    ?>
		<img src="<?php 
    wptouch_the_post_thumbnail('thumbnail');
    ?>
" alt="thumbnail" class="post-thumbnail wp-post-image" />
	<?php 
开发者ID:phanhoanglong2610,项目名称:flowershop,代码行数:31,代码来源:post-loop.php


示例4: wptouch_post_classes

		
		<div class="<?php 
    wptouch_post_classes();
    ?>
 rounded-corners-8px">

		<!-- text for 'back and 'next' is hidden via CSS, and replaced with arrow images -->
			<div class="post-navigation nav-top">
				<div class="post-nav-fwd">
					<?php 
    classic_get_next_post_link();
    ?>
				</div>				
				<div class="post-nav-middle">
					<?php 
    if (wptouch_get_comment_count() > 0) {
        echo '<a href="javascript: return false" class="middle-link no-ajax">' . __("Skip to Responses", "wptouch-pro") . '</a>';
    }
    ?>
				</div>
				<div class="post-nav-back">
						<?php 
    classic_get_previous_post_link();
    ?>
				</div>
			</div>

			
			<div class="<?php 
    wptouch_content_classes();
    ?>
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:single.php


示例5: foundation_determine_images

function foundation_determine_images()
{
    global $foundation_featured_posts;
    global $foundation_featured_data;
    global $post;
    $settings = foundation_get_settings();
    $foundation_featured_posts = array();
    $foundation_featured_data = array();
    $args = foundation_featured_get_args();
    $new_posts = false;
    switch ($settings->featured_type) {
        case 'tag':
            $new_posts = new WP_Query('tag=' . $settings->featured_tag . '&posts_per_page=' . $args['max_search']);
            break;
        case 'category':
            $new_posts = new WP_Query('category_name=' . $settings->featured_category . '&posts_per_page=' . $args['max_search']);
            break;
        case 'posts':
            if (function_exists('wptouch_custom_posts_add_to_search')) {
                $post_types = wptouch_custom_posts_add_to_search(array('post', 'page'));
            } else {
                $post_types = array('post', 'page');
            }
            $post_ids = explode(',', str_replace(' ', '', $settings->featured_post_ids));
            if (is_array($post_ids) && count($post_ids)) {
                $new_posts = new WP_Query(array('post__in' => $post_ids, 'posts_per_page' => $args['max_search'], 'post_type' => $post_types, 'orderby' => 'post__in'));
            }
            break;
        case 'post_type':
            $new_posts = new WP_Query('post_type=' . $settings->featured_post_type . '&posts_per_page=' . $args['max_search']);
            break;
        case 'latest':
        default:
            break;
    }
    if (!$new_posts) {
        $new_posts = new WP_Query('posts_per_page=' . $args['max_search']);
    }
    while ($new_posts->have_posts()) {
        $new_posts->the_post();
        $image = get_the_post_thumbnail($post->ID, 'foundation-featured-image');
        if (preg_match('#src=\\"(.*)\\"#iU', $image, $matches)) {
            $image = $matches[1];
            $our_size = sprintf("%d", WPTOUCH_FEATURED_SIZE);
            if (strpos($image, $our_size) === false) {
                // It's not our image, so just use the WP medium size
                $image = get_the_post_thumbnail($post->ID, 'large');
                if (preg_match('#src=\\"(.*)\\"#iU', $image, $matches)) {
                    $image = $matches[1];
                }
            }
        }
        if ($image) {
            $results = new stdClass();
            $results->image = $matches[1];
            $results->date = get_the_date();
            $results->title = get_the_title();
            $results->link = get_permalink();
            $results->comments_number = wptouch_get_comment_count();
            $foundation_featured_data[] = $results;
            $foundation_featured_posts[] = $post->ID;
        }
        // Break out if we have enough images
        if (count($foundation_featured_data) == $args['num']) {
            break;
        }
    }
    add_filter('parse_query', 'foundation_featured_modify_query');
}
开发者ID:sb-xs,项目名称:que-pour-elle,代码行数:69,代码来源:featured.php


示例6: wptouch_the_comment_count

function wptouch_the_comment_count()
{
    echo wptouch_get_comment_count();
}
开发者ID:jamesfacts,项目名称:gissler_wp_touch,代码行数:4,代码来源:theme.php


示例7: wptouch_the_permalink




			
<a href="<?php 
wptouch_the_permalink();
?>
" class="loop-link tappable clearfix <?php 
if (!bauhaus_should_show_thumbnail()) {
    echo 'no-thumbs';
}
?>
">

	<?php 
if (wptouch_get_comment_count() > 0 && (comments_open() || wptouch_have_comments())) {
    ?>
		<div class="comments">
			<span><?php 
    wptouch_the_comment_count();
    ?>
</span>
		</div>
	<?php 
}
?>
	<?php 
if (bauhaus_should_show_thumbnail() && wptouch_has_post_thumbnail()) {
    ?>
		<img src="<?php 
    wptouch_the_post_thumbnail('thumbnail');
开发者ID:KimcoBlogSC,项目名称:Blog,代码行数:27,代码来源:post-loop.php


示例8: foundation_get_settings

<?php

$settings = foundation_get_settings();
?>
<div class='one-swipe-image' style='visibility: hidden;'>
	<a href='<?php 
echo the_permalink();
?>
' class='needsclick'>
		<div class='comments-number'><span><?php 
echo wptouch_get_comment_count();
?>
</span></div>
		<img src='<?php 
echo foundation_featured_get_image();
?>
' alt='<?php 
the_title();
?>
' / >
		<p class='featured-date'><?php 
wptouch_the_time();
?>
</p>
		<p class='featured-title'><span><?php 
the_title();
?>
</span></p>
	</a>
</div>
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:30,代码来源:featured-slider.php


示例9: wptouch_comment_bubble_size

function wptouch_comment_bubble_size()
{
    if (wptouch_get_comment_count() > 9 && wptouch_get_comment_count() < 99) {
        echo 'double';
    } else {
        if (wptouch_get_comment_count() > 99) {
            echo 'triple';
        }
    }
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:10,代码来源:theme.php


示例10: foundation_determine_images

function foundation_determine_images()
{
    global $foundation_featured_posts;
    global $foundation_featured_data;
    global $post;
    $settings = foundation_get_settings();
    $foundation_featured_posts = array();
    $foundation_featured_data = array();
    $args = foundation_featured_get_args();
    $new_posts = false;
    switch ($settings->featured_type) {
        case 'tag':
            $new_posts = new WP_Query('tag=' . $settings->featured_tag . '&posts_per_page=' . $args['max_search']);
            break;
        case 'category':
            $new_posts = new WP_Query('category_name=' . $settings->featured_category . '&posts_per_page=' . $args['max_search']);
            break;
        case 'posts':
            $post_ids = explode(',', str_replace(' ', '', $settings->featured_post_ids));
            if (is_array($post_ids) && count($post_ids)) {
                $new_posts = new WP_Query(array('post__in' => $post_ids, 'posts_per_page' => $args['max_search'], 'post_type' => 'any'));
            }
            break;
        case 'latest':
        default:
            break;
    }
    if (!$new_posts) {
        $new_posts = new WP_Query('posts_per_page=' . $args['max_search']);
    }
    while ($new_posts->have_posts()) {
        $new_posts->the_post();
        $image = get_the_post_thumbnail($post->ID, 'foundation-featured-image');
        $real_image = preg_match('#src=\\"(.*)\\"#iU', $image, $matches);
        if ($real_image) {
            $results = new stdClass();
            $results->image = $matches[1];
            $results->date = get_the_date();
            $results->title = get_the_title();
            $results->link = get_permalink();
            $results->comments_number = wptouch_get_comment_count();
            $foundation_featured_data[] = $results;
            $foundation_featured_posts[] = $post->ID;
        }
        // Break out if we have enough images
        if (count($foundation_featured_data) == $args['num']) {
            break;
        }
    }
    add_filter('parse_query', 'foundation_featured_modify_query');
}
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:51,代码来源:featured.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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