-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
87 lines (52 loc) · 1.82 KB
/
single.php
File metadata and controls
87 lines (52 loc) · 1.82 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
$barcelona_is_pw_req = post_password_required();
get_header();
barcelona_breadcrumb();
barcelona_featured_img();
?>
<div class="<?php echo esc_attr( barcelona_single_class() ); ?>">
<div class="<?php echo esc_attr( barcelona_row_class() ); ?>">
<main id="main" class="<?php echo esc_attr( barcelona_main_class() ); ?>">
<?php if ( have_posts() ): while( have_posts() ): the_post(); ?>
<article id="post-<?php echo intval( get_the_ID() ); ?>" <?php post_class(); ?>>
<?php barcelona_featured_img(); ?>
<?php if ( barcelona_get_option( 'show_content' ) == 'on' ): ?>
<section class="post-content">
<?php
the_content();
if ( ! $barcelona_is_pw_req ) {
wp_link_pages( array(
'before' => '<div class="pagination"><span class="page-numbers title">' . esc_html__( 'Pages:', 'barcelona' ) . '</span>',
'after' => '</div>',
'pagelink' => '%'
) );
}
?>
</section><!-- .post-content -->
<?php endif; ?>
<?php if ( ! $barcelona_is_pw_req ): ?>
<footer class="post-footer">
<?php if ( barcelona_get_option( 'show_tags' ) == 'on' && $barcelona_post_tags = get_the_tags() ): ?>
<div class="post-tags">
<?php the_tags( '<strong class="title">'. esc_html__( 'Tags:', 'barcelona' ) .'</strong> ' ); ?>
</div><!-- .post-tags -->
<?php endif; ?>
<?php
barcelona_post_voting();
barcelona_social_sharing();
barcelona_author_box();
barcelona_pagination( 'nextprev' );
barcelona_post_ad();
comments_template();
?>
</footer><!-- .post-footer -->
<?php endif; ?>
</article>
<?php endwhile; endif; ?>
</main>
<?php get_sidebar(); ?>
</div><!-- .row -->
<?php barcelona_related_posts(); ?>
</div><!-- .container -->
<?php
get_footer();