forked from stejmurphy/mozirelandtheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
46 lines (38 loc) · 3.16 KB
/
content.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php $options = onemozilla_get_theme_options(); ?>
<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 esc_attr(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 ( $options['hide_author'] != 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'), get_the_author_posts(), get_the_author() ); ?>"><?php esc_html(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-content">
<?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnail', array('alt' => "", 'title' => "")); } ?>
<?php the_content( __( 'Continue reading …', 'onemozilla' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="pages" role="navigation"><span>' . __( 'Pages:', 'onemozilla' ) . '</span>', 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php edit_post_link( __( 'Edit Post', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
<!-- Edited by Rok Samsa
<?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 -->