當前位置: 首頁>>代碼示例>>PHP>>正文


PHP twentyten_posted_on函數代碼示例

本文整理匯總了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');
            ?>
開發者ID:aarontgrogg,項目名稱:aarontgrogg,代碼行數:31,代碼來源:loop.php

示例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">&rarr;</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() ) ) : ?>
開發者ID:rawwebdesign,項目名稱:ms3,代碼行數:31,代碼來源:index.php

示例3: wcb_entry_meta

function wcb_entry_meta()
{
    twentyten_posted_on();
}
開發者ID:serhi,項目名稱:wordpress-sites,代碼行數:4,代碼來源:header.php


注:本文中的twentyten_posted_on函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。