-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-no-sidebar.php
67 lines (49 loc) · 1.8 KB
/
page-no-sidebar.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
67
<?php
/**
* Template Name: Full Width Page
*
* @package Bucket Lite
* @since Bucket Lite 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
get_header(); ?>
<div class="container container--main">
<div class="grid">
<?php
// let's get to know this post a little better
if ( has_post_thumbnail() ){
$image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-big' );
$image_ratio = bucket::get_image_aspect_ratio( $image );
?>
<div class="grid__item float--left one-whole article__featured-image">
<div class="image-wrap" style="padding-top: <?php echo $image_ratio; ?>%">
<img src="<?php echo $image[0] ?>" alt="<?php echo $image[0] ?>" />
</div>
</div>
<?php } ?>
<div class="grid__item main float--left one-whole">
<?php while ( have_posts() ){ the_post(); ?>
<h1 class="article__title article__title--single"><?php the_title(); ?></h1>
<?php
the_content();
$args = array(
'before' => "<ol class=\"nav pagination\"><!--",
'after' => "\n--></ol>",
'next_or_number' => 'next_and_number',
'previouspagelink' => esc_html__('Previous', 'bucket-lite'),
'nextpagelink' => esc_html__('Next', 'bucket-lite')
);
wp_link_pages( $args ); ?>
<hr class="separator separator--section">
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php } ?>
</div>
</div>
</div>
<?php get_footer();