forked from amimaro/quasarwp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
40 lines (34 loc) · 1.3 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
38
39
40
<?php
get_header();
?>
<body <?php body_class(); ?>>
<div id="q-app">
<q-layout :view="qwpDataLayoutView">
<?php get_template_part('components/quasarwp', 'layout'); ?>
<q-page-container>
<q-page class="qwp-home">
<div class="qwp-grid-3x3-container" v-if="qwpDataHomePostLayout === 'grid3x3'">
<?php
if (have_posts()) : while (have_posts()) : the_post();
?>
<?php get_template_part('components/layout/posts', 'grid3x3'); ?>
<?php
endwhile;
endif;
?>
</div>
<div class="qwp-stacked-container" v-else>
<?php
if (have_posts()) : while (have_posts()) : the_post();
?>
<?php get_template_part('components/layout/posts', 'stacked'); ?>
<?php
endwhile;
endif;
?>
</div>
</q-page>
</q-page-container>
</q-layout>
</div>
<?php get_footer(); ?>