本文整理汇总了PHP中twentyten_posted_in函数的典型用法代码示例。如果您正苦于以下问题:PHP twentyten_posted_in函数的具体用法?PHP twentyten_posted_in怎么用?PHP twentyten_posted_in使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twentyten_posted_in函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: printf
?>
" rel="author">
<?php
printf(__('View all posts by %s <span class="meta-nav">→</span>', 'twentyten'), get_the_author());
?>
</a>
</div><!-- #author-link -->
</div><!-- #author-description -->
</div><!-- #entry-author-info -->
<?php
}
?>
<div class="entry-utility">
<?php
twentyten_posted_in();
?>
<?php
edit_post_link(__('Edit', 'twentyten'), '<span class="edit-link">', '</span>');
?>
</div><!-- .entry-utility -->
</div><!-- #post-## -->
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php
previous_post_link('%link', '<span class="meta-nav">' . _x('←', 'Previous post link', 'twentyten') . '</span> %title');
?>
</div>
<div class="nav-next"><?php
next_post_link('%link', '%title <span class="meta-nav">' . _x('→', 'Next post link', 'twentyten') . '</span>');
?>
开发者ID:alexfecke,项目名称:cvtx,代码行数:31,代码来源:loop-single.php
示例2: if
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
<div id="entry-author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
<div id="author-link">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?>
</a>
</div><!-- #author-link -->
</div><!-- #author-description -->
</div><!-- #entry-author-info -->
<?php endif; ?>
<div class="entry-utility">
<?php twentyten_posted_in(); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-utility -->
</div><!-- #post-## -->
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
</div><!-- #nav-below -->
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
开发者ID:realfluid,项目名称:umbaugh,代码行数:31,代码来源:loop-single.php
注:本文中的twentyten_posted_in函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论