-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtemplate-fullwidth.php
97 lines (67 loc) · 1.9 KB
/
template-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
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
88
89
90
91
92
93
94
95
96
97
<?php
/**
* The template for displaying full width pages.
*
* Template Name: Full width
*
*/
get_header(); ?>
<!-- Wrapper start -->
<div class="main">
<!-- Header section start -->
<?php
$shop_isle_header_image = get_header_image();
if( !empty($shop_isle_header_image) ):
echo '<section class="page-header-module module bg-dark" data-background="'.$shop_isle_header_image.'">';
else:
echo '<section class="page-header-module module bg-dark">';
endif;
?>
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<h1 class="module-title font-alt"><?php the_title(); ?></h1>
<?php
/* Header description */
$shop_isle_shop_id = get_the_ID();
if( !empty($shop_isle_shop_id) ):
$shop_isle_page_description = get_post_meta($shop_isle_shop_id, 'shop_isle_page_description');
if( !empty($shop_isle_page_description[0]) ):
echo '<div class="module-subtitle font-serif mb-0">'.$shop_isle_page_description[0].'</div>';
endif;
endif;
?>
</div>
</div><!-- .row -->
</div>
</section>
<!-- Header section end -->
<!-- Pricing start -->
<section class="module">
<div class="container">
<div class="row">
<!-- Content column start -->
<div class="col-sm-12">
<?php
/**
* @hooked woocommerce_breadcrumb - 10
*/
do_action( 'shop_isle_content_top' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
do_action( 'shop_isle_page_before' );
?>
<?php get_template_part( 'content', 'page' ); ?>
<?php
/**
* @hooked shop_isle_display_comments - 10
*/
do_action( 'shop_isle_page_after' );
?>
<?php endwhile; // end of the loop. ?>
</div>
</div> <!-- .row -->
</div>
</section>
<!-- Pricing end -->
<?php get_footer(); ?>