40 строки
2.8 KiB
PHP
40 строки
2.8 KiB
PHP
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<header class="entry-header">
|
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent link to “%s”', 'onemozilla' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
|
|
|
<?php if ( 'post' == get_post_type() ) : // No posted date for Pages ?>
|
|
<p class="entry-posted">
|
|
<time class="published" title="<?php the_time('Y-m-d\TH:i:sP'); ?>" datetime="<?php the_time('Y-m-d\TH:i:sP'); ?>">
|
|
<a class="posted-month" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('F, Y') ); ?>"><?php strftime(the_time('M')); ?></a>
|
|
<span class="posted-date"><?php the_time('j'); ?></span>
|
|
<a class="posted-year" href="<?php echo get_year_link(get_the_time('Y'), get_the_time('y')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('Y') ); ?>"><?php the_time('Y'); ?></a>
|
|
</time>
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<?php if ( get_option('onemozilla_hide_authors') != 1 ) : ?>
|
|
<address class="vcard"><cite class="author fn"><a class="url" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>" title="<?php printf( esc_attr__('See all %1$s posts by %2$s', 'onemozilla'), the_author_posts(), the_author())?>"><?php the_author() ?> <?php echo get_avatar(get_the_author_meta('user_email'), 24) ?></a></cite></address>
|
|
<?php endif; ?>
|
|
|
|
<?php $comment_count = get_comments_number($post->ID);
|
|
if ( comments_open() || pings_open() || ($comment_count > 0) ) : ?>
|
|
<p class="entry-comments"><a href="<?php comments_link() ?>" title="<?php if($comment_count > 0) { printf(_n( '1 response', '%d responses', $comment_count, 'onemozilla'), $comment_count); } else { _e('No responses yet'); } ?>"><?php if ($comment_count > 999) : comments_number('0','1','1000+'); else : comments_number('0','1','%'); endif; ?></a></p>
|
|
<?php endif; ?>
|
|
</header>
|
|
|
|
<div class="entry-summary">
|
|
<?php if (has_post_thumbnail()) : ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(68,68), array('alt' => "", 'title' => ""));?></a><?php endif; ?>
|
|
<?php the_excerpt(); ?>
|
|
</div><!-- .entry-summary -->
|
|
|
|
<?php if ( has_tag() || ( 'post' == get_post_type() ) ) : // No need for a footer if there's nothing to show ?>
|
|
<footer class="entry-meta">
|
|
<?php if (has_tag()) : ?>
|
|
<p class="meta"><b><?php _e('Tags','onemozilla'); ?>:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
|
|
<?php endif; ?>
|
|
<p class="meta"><b><?php _e('Categories','onemozilla'); ?>:</b> <?php the_category(', ') ?></p>
|
|
</footer>
|
|
<?php endif; ?>
|
|
|
|
</article><!-- #post -->
|