-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.php
37 lines (35 loc) · 1.16 KB
/
home.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
<?php get_header(); ?>
<main id="content" role="main" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
<div class="container">
<div class="row">
<div class="col-xl-8 col-lg-8 col-md-12 col-sm-12 col-xs-12">
<div class="row ias-container">
<?php if (have_posts()): ?>
<?php while (have_posts()) : the_post(); ?>
<div class="col-md-12 ias-item">
<?php if(aff_is_product()): ?>
<?php get_template_part('partials/product-preview'); ?>
<?php else: ?>
<?php get_template_part('partials/entry-preview'); ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php else: ?>
<div class="col-md-12">
<?php get_template_part('partials/not-found'); ?>
</div>
<?php endif; ?>
</div>
<div class="row">
<div class="col-md-12">
<?php get_template_part('partials/pagination'); ?>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-xs-12 <?php if(afft_is_sidebar_position_left()): ?>flex-xl-first flex-lg-first<?php endif; ?>">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>