本文整理汇总了PHP中twentyten_posted_on函数的典型用法代码示例。如果您正苦于以下问题:PHP twentyten_posted_on函数的具体用法?PHP twentyten_posted_on怎么用?PHP twentyten_posted_on使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twentyten_posted_on函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: post_class
post_class();
?>
>
<h2 class="entry-title"><a href="<?php
the_permalink();
?>
" title="<?php
printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0'));
?>
" rel="bookmark"><?php
the_title();
?>
</a></h2>
<div class="entry-meta">
<?php
twentyten_posted_on();
?>
</div><!-- .entry-meta -->
<div class="entry-content">
<?php
if (post_password_required()) {
the_content();
} else {
?>
<div class="gallery-thumb">
<?php
$images = get_children(array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999));
$total_images = count($images);
$image = array_shift($images);
$image_img_tag = wp_get_attachment_image($image->ID, 'thumbnail');
?>
示例2: twentyten_posted_on
<div class="entry-utility">
<?php twentyten_posted_on(); ?>
<span class="meta-sep">|</span>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-utility -->
</div><!-- #post-## -->
<?php /* How to display all other posts. */ ?>
<?php else : ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="entry-meta">
<?php twentyten_posted_on(); ?>
</div><!-- .entry-meta -->
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="entry-utility">
<?php if ( count( get_the_category() ) ) : ?>
示例3: wcb_entry_meta
function wcb_entry_meta()
{
twentyten_posted_on();
}