-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcontent.php
More file actions
48 lines (36 loc) · 1.53 KB
/
Copy pathcontent.php
File metadata and controls
48 lines (36 loc) · 1.53 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
<article id="post-<?php the_ID(); ?>" <?php if ( is_single() ) : post_class(); else: post_class('well page active'); endif; ?>>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('image'); ?>
</a>
<?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?>
<p class="caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
<?php endif; ?>
<?php endif; ?>
<header class="entry-header">
<?php
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
__( 'Read More', 'material' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'material' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'material' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->