当前位置: 首页>>代码示例>>PHP>>正文


PHP twentythirteen_entry_date函数代码示例

本文整理汇总了PHP中twentythirteen_entry_date函数的典型用法代码示例。如果您正苦于以下问题:PHP twentythirteen_entry_date函数的具体用法?PHP twentythirteen_entry_date怎么用?PHP twentythirteen_entry_date使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了twentythirteen_entry_date函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: twentythirteen_entry_meta

function twentythirteen_entry_meta()
{
    if (is_sticky() && is_home() && !is_paged()) {
        echo '<span class="featured-post">' . esc_html__('Sticky', 'twentythirteen') . '</span>';
    }
    if (!has_post_format('link') && in_array(get_post_type(), array('post', 'devotional'))) {
        twentythirteen_entry_date();
    }
    // Translators: used between list items, there is a space after the comma.
    $categories_list = get_the_category_list(__(', ', 'twentythirteen'));
    if ($categories_list) {
        echo '<span class="categories-links">' . $categories_list . '</span>';
    }
    // Translators: used between list items, there is a space after the comma.
    $tag_list = get_the_tag_list('', __(', ', 'twentythirteen'));
    if ($tag_list) {
        echo '<span class="tags-links">' . $tag_list . '</span>';
    }
    // Post author
    if ('post' == get_post_type()) {
        printf('<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'twentythirteen'), get_the_author())), get_the_author());
    }
}
开发者ID:macbookandrew,项目名称:gbc-townsville-qld,代码行数:23,代码来源:functions.php

示例2: edit_post_link

            <?php 
    edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>');
    ?>

            <?php 
    if (get_the_author_meta('description') && is_multi_author()) {
        ?>
                <?php 
        get_template_part('author-bio');
        ?>
            <?php 
    }
    ?>

        <?php 
} else {
    ?>
            <?php 
    twentythirteen_entry_date();
    ?>
            <?php 
    edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>');
    ?>
        <?php 
}
// is_single()
?>
    </footer>
    <!-- .entry-meta -->
</article><!-- #post -->
开发者ID:richardbota,项目名称:WordPress-Theme-Development-with-Bootstrap,代码行数:30,代码来源:content-aside.php

示例3: twentythirteen_entry_meta

 /**
  * Print HTML with meta information for current post: categories, tags, permalink, author, and date.
  *
  * Create your own twentythirteen_entry_meta() to override in a child theme.
  *
  * @since Twenty Thirteen 1.0
  */
 function twentythirteen_entry_meta()
 {
     if (is_sticky() && is_home() && !is_paged()) {
         echo '<span class="featured-post">' . __('Sticky', 'twentythirteen') . '</span>';
     }
     if (!has_post_format('link') && 'post' == get_post_type()) {
         twentythirteen_entry_date();
     }
     // Translators: used between list items, there is a space after the comma.
     // Post author
     if ('post' == get_post_type()) {
         printf('by <a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a> ', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'twentythirteen'), get_the_author())), get_the_author());
     }
     $categories_list = get_the_category_list(__(', ', 'twentythirteen'));
     if ($categories_list) {
         echo '<span class="categories-linksn">in ' . $categories_list . '</span>';
     }
     // Translators: used between list items, there is a space after the comma.
     $tag_list = get_the_tag_list('', __(', ', 'twentythirteen'));
     if ($tag_list) {
         echo '<span class="tags-links">' . $tag_list . '</span>';
     }
     printf('<i class="fa fa-comment"></i> ' . _nx('One Comment', '%1$s Comments', get_comments_number(), 'comments title', 'textdomain'), number_format_i18n(get_comments_number()));
 }
开发者ID:femgineer,项目名称:website,代码行数:31,代码来源:functions.php

示例4: the_ID

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="entry-content">
		<?php
			/* translators: %s: Name of current post */
			the_content( sprintf(
				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
				the_title( '<span class="screen-reader-text">', '</span>', false )
			) );

			wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
		?>
	</div><!-- .entry-content -->

	<footer class="entry-meta">
		<?php if ( is_single() ) : ?>
			<?php twentythirteen_entry_meta(); ?>
			<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>

			<?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
				<?php get_template_part( 'author-bio' ); ?>
			<?php endif; ?>

		<?php else : ?>
			<?php twentythirteen_entry_date(); ?>
			<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
		<?php endif; // is_single() ?>
	</footer><!-- .entry-meta -->
</article><!-- #post -->
>>>>>>> b875702c9c06ab5012e52ff4337439b03918f453
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:29,代码来源:content-aside.php

示例5: twentythirteen_entry_meta

 /**
  * Print HTML with meta information for current post: categories, tags, permalink, author, and date.
  *
  * Create your own twentythirteen_entry_meta() to override in a child theme.
  *
  * @since Twenty Thirteen 1.0
  *
  * @return void
  */
 function twentythirteen_entry_meta()
 {
     if (!has_post_format('link') && ('post' == get_post_type() || 'restitutions' == get_post_type())) {
         twentythirteen_entry_date();
     }
     // Translators: used between list items, there is a space after the comma.
     $categories_list = get_the_category_list(__('&nbsp;/&nbsp;', 'twentythirteen'));
     if ($categories_list) {
         echo '/ <span class="categories-links">' . $categories_list . '</span>';
     }
     // Translators: used between list items, there is a space after the comma.
     $tag_list = get_the_tag_list('', __(', ', 'twentythirteen'));
     if ($tag_list) {
         //echo '<span class="tags-links">' . $tag_list . '</span>';
     }
     // Post author
     // OU PAS
     /*
     if ( 'post' == get_post_type() ) {
     	printf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
     		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     		esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
     		get_the_author()
     	);
     }
     */
 }
开发者ID:besimhu,项目名称:LDF-site,代码行数:36,代码来源:functions.php


注:本文中的twentythirteen_entry_date函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。