-
Notifications
You must be signed in to change notification settings - Fork 5
/
front-page.php
executable file
·105 lines (77 loc) · 2.26 KB
/
front-page.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php get_header(); ?>
<div class="page-header">
<h1>
<?php _e( 'Dashboard', 'orbis' ); ?>
<?php if ( is_user_logged_in() ) : ?>
<?php $user = wp_get_current_user(); ?>
<small>
<?php
printf(
__( 'Logged in as %1$s', 'orbis' ),
$user->display_name
);
?>
</small>
<?php endif; ?>
</h1>
</div>
<?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
the_widget( 'Orbis_List_Posts_Widget', array(
'post_type_name' => 'orbis_company',
'number' => 8,
'title' => __( 'Companies', 'orbis' )
), array(
'before_widget' => '<div class="col-md-4"><div class="panel">',
'after_widget' => '</div></div>',
'before_title' => '<header><h3 class="widget-title">',
'after_title' => '</h3></header>'
) );
?>
<?php
the_widget( 'Orbis_List_Posts_Widget', array(
'post_type_name' => 'orbis_project',
'number' => 8,
'title' => __( 'Projects', 'orbis' )
), array(
'before_widget' => '<div class="col-md-4"><div class="panel">',
'after_widget' => '</div></div>',
'before_title' => '<header><h3 class="widget-title">',
'after_title' => '</h3></header>'
) );
?>
<?php
the_widget( 'Orbis_List_Posts_Widget', array(
'post_type_name' => 'orbis_person',
'number' => 8,
'title' => __( 'Persons', 'orbis' )
), array(
'before_widget' => '<div class="col-md-4"><div class="panel">',
'after_widget' => '</div></div>',
'before_title' => '<header><h3 class="widget-title">',
'after_title' => '</h3></header>'
) );
?>
</div>
<?php endif; ?>
<?php get_footer(); ?>