本文整理汇总了PHP中responsive_post_meta_data函数的典型用法代码示例。如果您正苦于以下问题:PHP responsive_post_meta_data函数的具体用法?PHP responsive_post_meta_data怎么用?PHP responsive_post_meta_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了responsive_post_meta_data函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: responsive_entry_top
>
<?php
responsive_entry_top();
?>
<h1 class="post-title"><?php
the_title();
?>
</h1>
<?php
if (comments_open()) {
?>
<div class="post-meta">
<?php
responsive_post_meta_data();
?>
<?php
if (comments_open()) {
?>
<span class="comments-link">
<span class="mdash">—</span>
<?php
comments_popup_link(__('No Comments ↓', 'responsive'), __('1 Comment ↓', 'responsive'), __('% Comments ↓', 'responsive'));
?>
</span>
<?php
}
?>
</div><!-- end of .post-meta -->
示例2: elseif
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: %s', 'responsive' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: %s', 'responsive' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'responsive' ); ?>
<?php endif; ?>
</h6>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__( 'Permanent Link to %s', 'responsive' ), the_title_attribute( 'echo=0' )); ?>"><?php the_title(); ?></a></h1>
<div class="post-meta">
<?php responsive_post_meta_data(); ?>
<?php if ( comments_open() ) : ?>
<span class="comments-link">
<span class="mdash">—</span>
<?php comments_popup_link(__('No Comments ↓', 'responsive'), __('1 Comment ↓', 'responsive'), __('% Comments ↓', 'responsive')); ?>
</span>
<?php endif; ?>
</div><!-- end of .post-meta -->
<div class="post-entry">
<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>
</a>
<?php endif; ?>