本文整理汇总了PHP中twentyeleven_posted_on函数的典型用法代码示例。如果您正苦于以下问题:PHP twentyeleven_posted_on函数的具体用法?PHP twentyeleven_posted_on怎么用?PHP twentyeleven_posted_on使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twentyeleven_posted_on函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: the_content
?>
<div class="entry-content">
<?php
the_content(__('read more <span class="meta-nav">→</span>', 'twentyeleven'));
?>
<?php
wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'twentyeleven') . '</span>', 'after' => '</div>'));
?>
</div><!-- .entry-content -->
<?php
}
?>
<footer class="entry-meta">
<?php
twentyeleven_posted_on();
?>
<?php
if (comments_open()) {
?>
<span class="sep"> | </span>
<span class="comments-link"><?php
comments_popup_link('<span class="leave-reply">' . __('Leave a reply', 'twentyeleven') . '</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven'));
?>
</span>
<?php
}
?>
<?php
edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>');
?>
示例2: the_ID
*
* @package WordPress
* @subpackage Bootstrap from Twitter
* @since Twenty Eleven 1.0
*/
?>
<!--content-single.php-->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php twentyeleven_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
if(function_exists('enhanced_link_pages')) {
enhanced_link_pages(array('blink'=>'<li>', 'alink'=>'</li>', 'before' => '<div class="pagination"><ul><li><a>' . __( 'Pages:', 'twentyeleven' ) . '</a></li>', 'after' => '</ul></div>', 'next_or_number' => 'number'));
}
elseif(get_bloginfo('version') >=2.7) {
wp_link_pages('before=<div class="pagelist">Pages:&after=</div>&link_before=&link_after=&pagelink=%');
}
else wp_link_pages('before=<div class="pagelist">Pages:&after=</div>&pagelink=%');
?>