-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
executable file
·92 lines (75 loc) · 2.07 KB
/
front-page.php
File metadata and controls
executable file
·92 lines (75 loc) · 2.07 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php get_header(); ?>
<?php if ( is_active_sidebar( 'frontpage-top-widget' ) ) : ?>
<div class="row">
<?php dynamic_sidebar( 'frontpage-top-widget' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'frontpage-left-widget' ) || is_active_sidebar( 'frontpage-right-widget' ) ) : ?>
<div class="row">
<div class="col-md-6">
<?php dynamic_sidebar( 'frontpage-left-widget' ); ?>
</div>
<div class="col-md-6">
<?php dynamic_sidebar( 'frontpage-right-widget' ); ?>
</div>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'frontpage-bottom-widget' ) ) : ?>
<div class="row">
<?php dynamic_sidebar( 'frontpage-bottom-widget' ); ?>
</div>
<?php else : ?>
<div class="row">
<?php
if ( post_type_exists( 'orbis_company' ) ) {
the_widget(
'Orbis_List_Posts_Widget',
[
'post_type_name' => 'orbis_company',
'number' => 8,
'title' => __( 'Companies', 'orbis-5' ),
],
[
'before_widget' => '<div class="col-md-4"><div class="card">',
'after_widget' => '</div></div>',
'before_title' => '<div class="card-header">',
'after_title' => '</div>',
]
);
}
if ( post_type_exists( 'orbis_project' ) ) {
the_widget(
'Orbis_List_Posts_Widget',
[
'post_type_name' => 'orbis_project',
'number' => 8,
'title' => __( 'Projects', 'orbis-5' ),
],
[
'before_widget' => '<div class="col-md-4"><div class="card">',
'after_widget' => '</div></div>',
'before_title' => '<div class="card-header">',
'after_title' => '</div>',
]
);
}
if ( post_type_exists( 'orbis_person' ) ) {
the_widget(
'Orbis_List_Posts_Widget',
[
'post_type_name' => 'orbis_person',
'number' => 8,
'title' => __( 'Persons', 'orbis-5' ),
],
[
'before_widget' => '<div class="col-md-4"><div class="card">',
'after_widget' => '</div></div>',
'before_title' => '<div class="card-header">',
'after_title' => '</div>',
]
);
}
?>
</div>
<?php endif; ?>
<?php get_footer(); ?>