-
Notifications
You must be signed in to change notification settings - Fork 4
/
sidebar-header.php
84 lines (75 loc) · 2.53 KB
/
sidebar-header.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
<?php
/**
* Sidebar Header Template
*
* Located between the site description and the site top menu
*
* @package OpusPrimus
* @since 0.1
*
* @author Opus Primus <[email protected]>
* @copyright Copyright (c) 2013-2016, Opus Primus
*
* This file is part of Opus Primus.
*
* Opus Primus is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2, as published by the
* Free Software Foundation.
*
* You may NOT assume that you can use any other version of the GPL.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to:
*
* Free Software Foundation, Inc.
* 51 Franklin St, Fifth Floor
* Boston, MA 02110-1301 USA
*
* The license for this software can also likely be found here:
* http://www.gnu.org/licenses/gpl-2.0.html
*
* @version 1.0.1
* @date February 21, 2013
* Modified action hooks to more semantic naming convention:
* `opus_<section>_<placement>`
*/
/** Add empty hook before Sidebar-Header */
do_action( 'opus_sidebar_header_before' );
/** Only resolve public facing space if there is an active header widget area. */
if ( is_active_sidebar( 'header-middle' ) || is_active_sidebar( 'header-left' ) || is_active_sidebar( 'header-right' ) ) { ?>
<div id="header-sidebar">
<div class="header-widget-area three-columns-header">
<div class="column-middle">
<div class="column-left">
<ul id="header-sidebar-two">
<?php if ( is_active_sidebar( 'header-middle' ) ) {
dynamic_sidebar( 'header-middle' );
} ?>
</ul>
<!-- #header-sidebar-two -->
<ul id="header-sidebar-one">
<?php if ( is_active_sidebar( 'header-left' ) ) {
dynamic_sidebar( 'header-left' );
} ?>
</ul>
<!-- #header-sidebar-one -->
<ul id="header-sidebar-three">
<?php if ( is_active_sidebar( 'header-right' ) ) {
dynamic_sidebar( 'header-right' );
} ?>
</ul>
<!-- #header-sidebar-three -->
</div>
<!-- .column-left -->
</div>
<!-- .column-middle -->
</div>
<!-- .header-widget-area.three-columns-header -->
</div><!-- #header-sidebar -->
<?php }
/** Add empty hook after Sidebar-Header */
do_action( 'opus_sidebar_header_after' );