-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
31 lines (24 loc) · 1002 Bytes
/
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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<div class="blog-post">
<div class="entry-thumb">
<a href="<?php esc_url( the_permalink() ); ?>" title="<?php esc_attr( the_title_attribute() ); ?>"><?php the_post_thumbnail('gohost-large-thumb'); ?></a>
</div>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="title-post entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<p class="meta-post"> <?php gohost_posted_on(); gohost_edit_link();?> </p>
</header>
<div class="entry-post">
<?php if ( (get_theme_mod('full_post') == 1 && is_home() ) || (get_theme_mod('full_archives') == 1 && is_archive() ) ) : ?>
<?php the_content(); ?>
<?php else : ?>
<?php the_excerpt(); ?>
<?php endif ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'gohost' ),
'after' => '</div>',
) );
?>
</div>
</div>
</article><!-- /article -->