-
Notifications
You must be signed in to change notification settings - Fork 46
/
sidebar-secondary.php
29 lines (23 loc) · 1.02 KB
/
sidebar-secondary.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
<?php
/**
* Wonderflux secondary sidebar template
*
* Customise this in your child theme by:
* - Using the Wonderflux hooks in this file - there are file specific and general ones
* - Using the 'sidebar-secondary-content' template part 'sidebar-secondary-content-404.php' or 'sidebar-secondary-content.php' (fallback if location specific file not available)
* - Copying this file to your child theme and amending - it will automatically be used instead of this file
* - IMPORTANT - if you do this, ensure you keep all Wonderflux hooks intact!
*
* @package Wonderflux
*/
wfsidebar_2_before_all(); //WF display hook
$hook_where = wfx_info_location();
//WF location aware display hook
$wfx_sb_2_hook_before = 'wfsidebar_2_before_'.$hook_where;
$wfx_sb_2_hook_before();
wfx_get_template_part('part=sidebar-secondary-content'); // Setup all location aware template parts
//WF location aware display hook
$wfx_sb_2_hook_after = 'wfsidebar_2_after_'.$hook_where;
$wfx_sb_2_hook_after();
wfsidebar_2_after_all(); //WF display hook
?>