forked from cohhe/shopera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
53 lines (46 loc) · 1.96 KB
/
front-page.php
File metadata and controls
53 lines (46 loc) · 1.96 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
<?php get_header();
if ( get_option( 'show_on_front' ) == 'page' ) {
include( get_page_template() );
} elseif ( get_option( 'show_on_front' ) == 'posts' && get_theme_mod('shopera_demo_content', true) == false ) {
get_template_part( 'index' );
} else { ?>
<style type="text/css">
body .container ul.products li.product { float: left; }
body.post-grid #primary { padding: 0 15px; }
.woocommerce ul.products li.product h3 { margin: 16px 0 0 0; }
.slider .featured-slider { padding-bottom: 0; }
.woocommerce ul.products li.product a { font-family: 'Roboto Condensed'; }
.container .woocommerce ul.products li.product .price ins, body.woocommerce-page ul.products li.product .price ins { background: transparent; }
.woocommerce ul.products li.product .product-image span.onsale, .woocommerce-page ul.products li.product .product-image span.onsale { color: #fff; text-align: center; font-weight: 700; }
body.post-grid .entry-content p { min-height: auto; }
</style>
<script type="text/javascript">
jQuery(window).load(function($) {
if ( jQuery('.testimonial-container').length ) {
jQuery('.testimonial-container').css({'left': '-'+jQuery('.entry-content').offset().left+'px'});
};
});
</script>
<div id="main-content" class="main-content row">
<div id="primary" class="content-area col-sm-12 col-md-12 col-lg-12">
<div id="content" class="site-content" role="main">
<article id="post-67" class="post-67 page type-page status-publish hentry" style="position: absolute; left: 0px; top: 0px;">
<div class="entry-content">
<?php
// Load woocommerce items
get_template_part( 'demo-content/woocommerce' );
// Load testimonials
get_template_part( 'demo-content/testimonial' );
// Load categories
get_template_part( 'demo-content/categories' );
// Load brands slider
get_template_part( 'demo-content/brands' );
?>
</div>
</article>
</div>
</div>
</div>
<?php
}
get_footer(); ?>