-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome-layout.php
More file actions
41 lines (27 loc) · 874 Bytes
/
home-layout.php
File metadata and controls
41 lines (27 loc) · 874 Bytes
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
<?php
/*
Template Name: Home Layout
*/
get_header(); ?>
<?php
global $krocks_opt;
$layout = $krocks_opt['_homeblocks']['enabled'];
if ($layout): foreach ($layout as $key=>$value) {
switch($key) {
case '_featuredPost': get_template_part( 'template-parts/blocks/block', 'featuredPost' );
break;
case '_blockOne': get_template_part( 'template-parts/blocks/block', 'blockOne' );
break;
case '_blockTwo': get_template_part( 'template-parts/blocks/block', 'blockTwo' );
break;
case '_blockThree': get_template_part( 'template-parts/blocks/block', 'blockThree' );
break;
case '_blockFour': get_template_part( 'template-parts/blocks/block', 'blockFour' );
break;
case '_blockFive': get_template_part( 'template-parts/blocks/block', 'blockFive' );
break;
}
}
endif;
?>
<?php get_footer(); ?>