-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-page-fullwidth.php
61 lines (54 loc) · 2.32 KB
/
template-page-fullwidth.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
<?php
/**
*
* Template name: FullWidth Page
* The template for displaying FullWidth Page.
*
* @package eleganto
*/
get_header();
?>
<?php get_template_part( 'template-part', 'topnav' ); ?>
<?php get_template_part( 'template-part', 'head' ); ?>
<?php
if ( get_theme_mod( 'breadcrumbs-check', 1 ) != 0 ) {
eleganto_breadcrumb();
}
?>
<!-- start content container -->
<div class="row container rsrc-content">
<article class="col-md-12 rsrc-main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="single-thumbnail"><?php the_post_thumbnail( 'eleganto-single' ); ?></div>
<div class="clear">
</div>
<?php endif; ?>
<div <?php post_class( 'rsrc-post-content' ); ?>>
<header>
<h1 class="entry-title page-header">
<?php the_title(); ?>
</h1>
<time class="posted-on published" datetime="<?php the_time( 'Y-m-d' ); ?>"></time>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php wp_link_pages(); ?>
<?php if ( get_theme_mod( 'post-nav-check', 1 ) == 1 ) : ?>
<div class="post-navigation row">
<div class="post-previous col-md-6"><?php previous_post_link( '%link', '<span class="meta-nav">' . __( 'Previous:', 'eleganto' ) . '</span> %title' ); ?></div>
<div class="post-next col-md-6"><?php next_post_link( '%link', '<span class="meta-nav">' . __( 'Next:', 'eleganto' ) . '</span> %title' ); ?></div>
</div>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php endwhile; ?>
<?php else: ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</article>
</div>
<!-- end content container -->
<?php get_template_part( 'template-part', 'footernav' ); ?>
<?php get_footer(); ?>