-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
55 lines (52 loc) · 2.11 KB
/
content.php
File metadata and controls
55 lines (52 loc) · 2.11 KB
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
/**
* The default template for displaying content. Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<div class="box">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<div class="featured-post">
<?php _e( 'Featured post', 'twentytwelve' ); ?>
</div>
<?php endif; ?>
<header class="entry-header">
<?php if ( is_single() && !video_on_page() ) :
mc_use_template_part('article-featured-image.php');
else : ?>
<h1 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php endif; // is_single() ?>
</header><!-- .entry-header -->
<div class="box-content">
<?php if ( is_single() ) { ?>
<em>
<span class="caption tk-nimbus-sans"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></span><br/>
<span class="authorField tk-nimbus-sans"><?php echo mc_t('Written By'); ?> <?php the_author_posts_link(); ?></span>
</em><br/><br/>
<?php } ?>
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<span class="tk-nimbus-sans"><?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></span>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-meta tk-nimbus-sans">
<?php if ( is_single() ) { the_tags( '<p>Tags: ', ', ', '</p>'); } ?>
</footer><!-- .entry-meta -->
<?php if ( is_single() ) {
include_once('social-share-this-article.php');
include_once('article-list-related.php');
comments_template( '', true ); } ?>
</div>
</article><!-- #post -->
</div>