-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (58 loc) · 1.18 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php get_header(); ?>
<div class="section">
<div class="container" role="main">
<div class="row">
<?php
function tema_content() {
?>
<div class="col-md-8">
<?php
get_template_part('carousel');
if(have_posts()):
// untuk mengaktifkan widget konten
if(is_home() and is_active_sidebar('konten')):
dynamic_sidebar('konten');
else:
while(have_posts()):
the_post();
?>
<div class="row">
<div class="col-md-4">
<?php tema_image_post(); ?>
</div>
<div class="col-md-8">
<?php get_template_part('content',get_post_format()); ?>
</div>
</div><br>
<?php
endwhile;
?>
<div class="pagination">
<?php tema_pagination(); ?>
</div>
<?php
endif;
endif;
?>
</div>
<?php
}
function tema_sidebar() {
?>
<div class="col-md-4">
<?php get_sidebar(); ?>
</div>
<?php
}
if(get_theme_mod('tema_sidebar', 0) == 'kanan') {
tema_content();
tema_sidebar();
} else {
tema_sidebar();
tema_content();
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>