|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* LSX functions and definitions - Hooks. |
|
4
|
|
|
* |
|
5
|
|
|
* @package lsx |
|
6
|
|
|
* @subpackage hooks |
|
7
|
|
|
*/ |
|
8
|
|
|
|
|
9
|
|
|
if ( ! defined( 'ABSPATH' ) ) { |
|
10
|
|
|
exit; |
|
11
|
|
|
} |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* HTML <body> hooks |
|
15
|
|
|
* |
|
16
|
|
|
* $lsx_supports[] = 'body'; |
|
17
|
|
|
*/ |
|
18
|
|
|
|
|
19
|
|
|
function lsx_body_top() { |
|
20
|
|
|
do_action( 'lsx_body_top' ); |
|
21
|
|
|
} |
|
22
|
|
|
|
|
23
|
|
|
function lsx_body_bottom() { |
|
24
|
|
|
do_action( 'lsx_body_bottom' ); |
|
25
|
|
|
} |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* HTML <head> hooks |
|
29
|
|
|
* |
|
30
|
|
|
* $lsx_supports[] = 'head'; |
|
31
|
|
|
*/ |
|
32
|
|
|
|
|
33
|
|
|
function lsx_head_top() { |
|
34
|
|
|
do_action( 'lsx_head_top' ); |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
function lsx_head_bottom() { |
|
38
|
|
|
do_action( 'lsx_head_bottom' ); |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* Semantic <header> hooks |
|
43
|
|
|
* |
|
44
|
|
|
* $lsx_supports[] = 'header'; |
|
45
|
|
|
*/ |
|
46
|
|
|
|
|
47
|
|
|
function lsx_header_before() { |
|
48
|
|
|
do_action( 'lsx_header_before' ); |
|
49
|
|
|
} |
|
50
|
|
|
|
|
51
|
|
|
function lsx_header_after() { |
|
52
|
|
|
do_action( 'lsx_header_after' ); |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
function lsx_header_top() { |
|
56
|
|
|
do_action( 'lsx_header_top' ); |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
function lsx_header_bottom() { |
|
60
|
|
|
do_action( 'lsx_header_bottom' ); |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
function lsx_nav_before() { |
|
64
|
|
|
do_action( 'lsx_nav_before' ); |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
function lsx_nav_after() { |
|
68
|
|
|
do_action( 'lsx_nav_after' ); |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* Semantic <content> hooks |
|
73
|
|
|
* |
|
74
|
|
|
* $lsx_supports[] = 'banner'; |
|
75
|
|
|
*/ |
|
76
|
|
|
|
|
77
|
|
|
function lsx_banner_content() { |
|
78
|
|
|
do_action( 'lsx_banner_content' ); |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
function lsx_banner_inner_top() { |
|
82
|
|
|
do_action( 'lsx_banner_inner_top' ); |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
function lsx_banner_inner_bottom() { |
|
86
|
|
|
do_action( 'lsx_banner_inner_bottom' ); |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* Semantic <content> hooks |
|
91
|
|
|
* |
|
92
|
|
|
* $lsx_supports[] = 'global_header'; |
|
93
|
|
|
*/ |
|
94
|
|
|
|
|
95
|
|
|
function lsx_global_header_inner_bottom() { |
|
96
|
|
|
do_action( 'lsx_global_header_inner_bottom' ); |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* Semantic <content> hooks |
|
101
|
|
|
* |
|
102
|
|
|
* $lsx_supports[] = 'content'; |
|
103
|
|
|
*/ |
|
104
|
|
|
|
|
105
|
|
|
function lsx_content_wrap_before() { |
|
106
|
|
|
do_action( 'lsx_content_wrap_before' ); |
|
107
|
|
|
} |
|
108
|
|
|
|
|
109
|
|
|
function lsx_content_wrap_after() { |
|
110
|
|
|
do_action( 'lsx_content_wrap_after' ); |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
function lsx_content_before() { |
|
114
|
|
|
do_action( 'lsx_content_before' ); |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
function lsx_content_after() { |
|
118
|
|
|
do_action( 'lsx_content_after' ); |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
function lsx_content_top() { |
|
122
|
|
|
do_action( 'lsx_content_top' ); |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
function lsx_content_bottom() { |
|
126
|
|
|
do_action( 'lsx_content_bottom' ); |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
function lsx_content_post_tags() { |
|
130
|
|
|
do_action( 'lsx_content_post_tags' ); |
|
131
|
|
|
} |
|
132
|
|
|
|
|
133
|
|
|
function lsx_content_sharing() { |
|
134
|
|
|
do_action( 'lsx_content_sharing' ); |
|
135
|
|
|
} |
|
136
|
|
|
|
|
137
|
|
|
/** |
|
138
|
|
|
* Semantic <entry> hooks |
|
139
|
|
|
* |
|
140
|
|
|
* $lsx_supports[] = 'entry'; |
|
141
|
|
|
*/ |
|
142
|
|
|
|
|
143
|
|
|
function lsx_entry_before() { |
|
144
|
|
|
do_action( 'lsx_entry_before' ); |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
|
|
function lsx_entry_after() { |
|
148
|
|
|
do_action( 'lsx_entry_after' ); |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
function lsx_entry_top() { |
|
152
|
|
|
do_action( 'lsx_entry_top' ); |
|
153
|
|
|
} |
|
154
|
|
|
|
|
155
|
|
|
function lsx_entry_bottom() { |
|
156
|
|
|
do_action( 'lsx_entry_bottom' ); |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* Semantic <entry> hooks |
|
161
|
|
|
*/ |
|
162
|
|
|
|
|
163
|
|
|
function lsx_post_meta_top() { |
|
164
|
|
|
do_action( 'lsx_post_meta_top' ); |
|
165
|
|
|
} |
|
166
|
|
|
|
|
167
|
|
|
/** |
|
168
|
|
|
* Widget Semantic <entry> hooks |
|
169
|
|
|
* |
|
170
|
|
|
* $lsx_supports[] = 'entry'; |
|
171
|
|
|
*/ |
|
172
|
|
|
|
|
173
|
|
|
function lsx_widget_entry_before() { |
|
174
|
|
|
do_action( 'lsx_widget_entry_before' ); |
|
175
|
|
|
} |
|
176
|
|
|
|
|
177
|
|
|
function lsx_widget_entry_after() { |
|
178
|
|
|
do_action( 'lsx_widget_entry_after' ); |
|
179
|
|
|
} |
|
180
|
|
|
|
|
181
|
|
|
function lsx_widget_entry_top() { |
|
182
|
|
|
do_action( 'lsx_widget_entry_top' ); |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
function lsx_widget_entry_bottom() { |
|
186
|
|
|
do_action( 'lsx_widget_entry_bottom' ); |
|
187
|
|
|
} |
|
188
|
|
|
|
|
189
|
|
|
function lsx_widget_entry_content_top() { |
|
190
|
|
|
do_action( 'lsx_widget_entry_content_top' ); |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
function lsx_widget_entry_content_bottom() { |
|
194
|
|
|
do_action( 'lsx_widget_entry_content_bottom' ); |
|
195
|
|
|
} |
|
196
|
|
|
|
|
197
|
|
|
/** |
|
198
|
|
|
* Comments block hooks |
|
199
|
|
|
* |
|
200
|
|
|
* $lsx_supports[] = 'comments'; |
|
201
|
|
|
*/ |
|
202
|
|
|
|
|
203
|
|
|
function lsx_comments_before() { |
|
204
|
|
|
do_action( 'lsx_comments_before' ); |
|
205
|
|
|
} |
|
206
|
|
|
|
|
207
|
|
|
function lsx_comments_after() { |
|
208
|
|
|
do_action( 'lsx_comments_after' ); |
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
/** |
|
212
|
|
|
* Semantic <sidebar> hooks |
|
213
|
|
|
* |
|
214
|
|
|
* $lsx_supports[] = 'sidebar'; |
|
215
|
|
|
*/ |
|
216
|
|
|
|
|
217
|
|
|
function lsx_sidebars_before() { |
|
218
|
|
|
do_action( 'lsx_sidebars_before' ); |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
function lsx_sidebars_after() { |
|
222
|
|
|
do_action( 'lsx_sidebars_after' ); |
|
223
|
|
|
} |
|
224
|
|
|
|
|
225
|
|
|
function lsx_sidebar_top() { |
|
226
|
|
|
do_action( 'lsx_sidebar_top' ); |
|
227
|
|
|
} |
|
228
|
|
|
|
|
229
|
|
|
function lsx_sidebar_bottom() { |
|
230
|
|
|
do_action( 'lsx_sidebar_bottom' ); |
|
231
|
|
|
} |
|
232
|
|
|
|
|
233
|
|
|
/** |
|
234
|
|
|
* Semantic <footer> hooks |
|
235
|
|
|
* |
|
236
|
|
|
* $lsx_supports[] = 'footer'; |
|
237
|
|
|
*/ |
|
238
|
|
|
|
|
239
|
|
|
function lsx_footer_before() { |
|
240
|
|
|
do_action( 'lsx_footer_before' ); |
|
241
|
|
|
} |
|
242
|
|
|
|
|
243
|
|
|
function lsx_footer_after() { |
|
244
|
|
|
do_action( 'lsx_footer_after' ); |
|
245
|
|
|
} |
|
246
|
|
|
|
|
247
|
|
|
function lsx_footer_top() { |
|
248
|
|
|
do_action( 'lsx_footer_top' ); |
|
249
|
|
|
} |
|
250
|
|
|
|
|
251
|
|
|
function lsx_footer_bottom() { |
|
252
|
|
|
do_action( 'lsx_footer_bottom' ); |
|
253
|
|
|
} |
|
254
|
|
|
|