forked from brob/fastr-wordpress-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
67 lines (60 loc) · 1.76 KB
/
content-single.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
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* @package fastr
*/
?>
<?php
if(get_field('header_image'))
{
?>
<style>
.image-header header {
background: url(<?php echo get_field('header_image'); ?>) center bottom;
}
</style>
<?php } ?>
<header class="entry-header <?php echo get_field('font_color'); ?>">
<div class="container">
<div class="entry-meta">
<?php fastr_posted_on(); ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'fastr' ) );
if ( $categories_list && fastr_categorized_blog() ) :
?>
<span class="cat-links">
<?php printf( __( 'on %1$s', 'fastr' ), $categories_list ); ?>
</span>
<?php endif; // End if categories ?>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'fastr' ) );
if ( $tags_list ) :
?>
<span class="tags-links">
<?php printf( __( 'tagged %1$s', 'fastr' ), $tags_list ); ?>
</span>
<?php endif; // End if $tags_list ?>
</div><!-- .container -->
</div><!-- .entry-meta -->
<div class="container">
<h1 class="entry-title"><?php the_title(); ?></h1>
<h3><?php echo get_field('subtitle'); ?></h3>
</div><!-- .container -->
</header><!-- .entry-header -->
<div class="container">
<div class="header-caption"><?php echo get_field('image_caption'); ?></div>
</div><!-- .container -->
<div class="container">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'fastr' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
</div><!-- .container -->