forked from disgogo/flexmarket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (29 loc) · 1.14 KB
/
index.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
<?php get_header(); ?>
<!-- Homepage Content -->
<div id="homepage-content-wrapper">
<div class="outercontainer">
<div class="clear padding15"></div>
<div class="container">
<?php
$homepagetemplateid = esc_attr(get_option('mpt_homepage_layout_code'));
if (!empty($homepagetemplateid) && is_numeric($homepagetemplateid)) {
echo do_shortcode('[template id="'.$homepagetemplateid.'"]');
} else {
echo '<h2>No Template Inserted</h2>';
echo '<p>To insert a template into this section, first you have to create a homepage template using the page builder function. Then, copy the template id and paste it at the theme options panel.</p>';
echo '<div class="clear padding30"></div>';
}
?>
</div><!-- / container -->
</div><!-- / outercontainer -->
</div><!-- / homepage-content-wrapper -->
<!-- End Homapage Content -->
<!-- Footer Widget -->
<?php
$selected = get_option('mpt_enable_homepage_footer_widget');
if ($selected) {
get_template_part('footer', 'widget');
}
?>
<!-- End Footer Widget -->
<?php get_footer(); ?>