-
Notifications
You must be signed in to change notification settings - Fork 46
/
sidebar.php
29 lines (23 loc) · 983 Bytes
/
sidebar.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 primary 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-content' template part 'sidebar-content-404.php' or 'sidebar-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_before_all(); //WF display hook
$hook_where = wfx_info_location();
//WF location aware display hook
$wfx_sb_hook_before = 'wfsidebar_before_'.$hook_where;
$wfx_sb_hook_before();
wfx_get_template_part('part=sidebar-content'); // Setup all location aware template parts
//WF location aware display hook
$wfx_sb_hook_after = 'wfsidebar_after_'.$hook_where;
$wfx_sb_hook_after();
wfsidebar_after_all(); //WF display hook
?>