-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent.php
55 lines (43 loc) · 3.24 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
47
48
49
50
51
52
53
54
55
<?php
global $theretailer_theme_options;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title gbtr_post_title_listing"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'theretailer' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header><!-- .entry-header -->
<footer class="entry-meta">
<span class="author vcard"><i class="fa fa-user"></i> <a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>" title="<?php echo esc_attr( sprintf( __( 'View all posts by %s', 'theretailer' ), get_the_author() ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></span>
<span class="date-meta"><i class="fa fa-calendar-o"></i> <a href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="<?php echo esc_attr( get_the_time() ); ?>" rel="bookmark" class="entry-date"><time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></a></span>
<?php if ( is_single() ) : ?>
<span class="categories-meta"><i class="fa fa-folder-open-o"></i> <?php echo get_the_category_list(', '); ?></span>
<?php endif; ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><i class="fa fa-comment-o"></i> <?php comments_popup_link( __( 'Leave a comment', 'theretailer' ), __( '1 Comment', 'theretailer' ), __( '% Comments', 'theretailer' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'theretailer' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
<div class="gbtr_bold_sep"></div>
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(array(620,99999)); ?>
</div>
<?php } ?>
<div class="entry-content">
<?php if (is_single()) { ?>
<?php the_content(); ?>
<?php if ( has_tag() ) : ?>
<span class="tags-meta"><i class="fa fa-tag"></i> <?php echo get_the_tag_list('',', ',''); ?></span>
<?php endif; ?>
<br /><br /><br />
<?php } else { ?>
<?php if ( ($theretailer_theme_options['show_full_post']) && ($theretailer_theme_options['show_full_post'] == 1) ) { ?>
<?php global $more; $more = 0; the_content(__( 'Continue reading »', 'theretailer' )); ?>
<?php } else { ?>
<?php global $more; $more = 0; the_excerpt(__( 'Continue reading »', 'theretailer' )); ?>
<?php echo '<a class="more-link auto" href='.get_permalink($post->ID ).'>'.__( 'Continue reading »', 'theretailer' ).'</a>'; ?>
<?php } ?>
<?php } ?>
<div class="clr"></div>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'theretailer' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->