本文整理汇总了PHP中twentyfourteen_posted_on函数的典型用法代码示例。如果您正苦于以下问题:PHP twentyfourteen_posted_on函数的具体用法?PHP twentyfourteen_posted_on怎么用?PHP twentyfourteen_posted_on使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twentyfourteen_posted_on函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: esc_url
}
?>
<div class="entry-meta">
<span class="post-format">
<a class="entry-format" href="<?php
echo esc_url(get_post_format_link('aside'));
?>
"><?php
echo get_post_format_string('aside');
?>
</a>
</span>
<?php
twentyfourteen_posted_on();
?>
<?php
if (!post_password_required() && (comments_open() || get_comments_number())) {
?>
<span class="comments-link"><?php
comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen'));
?>
</span>
<?php
}
?>
<?php
edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>');
示例2: esc_url
<?php
endif;
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif;
?>
<div class="entry-meta">
<span class="post-format">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a>
</span>
<?php twentyfourteen_posted_on(); ?>
<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )