-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
41 lines (24 loc) · 923 Bytes
/
sidebar.php
File metadata and controls
41 lines (24 loc) · 923 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
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package codexin
*/
?>
<?php
if( is_page() && is_page(26) && is_active_sidebar('codexin-sidebar-contact-page') ) :
dynamic_sidebar('codexin-sidebar-contact-page');
elseif ( is_page() && is_page_template('page-templates/page-contact.php') && is_active_sidebar('codexin-sidebar-contact-template') ) :
dynamic_sidebar('codexin-sidebar-contact-template');
elseif ( is_page() && is_active_sidebar('codexin-sidebar-page') ) :
dynamic_sidebar('codexin-sidebar-page');
elseif ( is_single() && is_active_sidebar('codexin-sidebar-blog') ) :
dynamic_sidebar('codexin-sidebar-blog');
elseif ( is_home() && is_active_sidebar('codexin-sidebar-blog') ) :
dynamic_sidebar('codexin-sidebar-blog');
else:
dynamic_sidebar('codexin-sidebar-general');
endif;
?>