@@ 238-256 (lines=19) @@ | ||
235 | * @access public |
|
236 | * @return void |
|
237 | */ |
|
238 | function sensei_output_content_wrapper() { |
|
239 | ||
240 | // backwards compatibility check for old location under the wrappers directory of the active theme |
|
241 | $backwards_compatible_wrapper_location = array( |
|
242 | Sensei()->template_url . 'wrappers/wrapper-start.php', |
|
243 | 'wrappers/wrapper-start.php' |
|
244 | ); |
|
245 | ||
246 | $template = locate_template( $backwards_compatible_wrapper_location ); |
|
247 | if( !empty( $template ) ){ |
|
248 | ||
249 | Sensei_Templates::get_template( 'wrappers/wrapper-start.php' ); |
|
250 | return; |
|
251 | ||
252 | } |
|
253 | ||
254 | Sensei_Templates::get_template( 'globals/wrapper-start.php' ); |
|
255 | ||
256 | } // End sensei_output_content_wrapper() |
|
257 | ||
258 | ||
259 | /** |
|
@@ 265-284 (lines=20) @@ | ||
262 | * @access public |
|
263 | * @return void |
|
264 | */ |
|
265 | function sensei_output_content_wrapper_end() { |
|
266 | ||
267 | // backwards compatibility check for old location under the wrappers directory of the active theme |
|
268 | $backwards_compatible_wrapper_location = array( |
|
269 | Sensei()->template_url . 'wrappers/wrapper-end.php', |
|
270 | 'wrappers/wrapper-end.php' |
|
271 | ); |
|
272 | ||
273 | $backwards_compatible_template = locate_template( $backwards_compatible_wrapper_location ); |
|
274 | if( !empty( $backwards_compatible_template ) ){ |
|
275 | ||
276 | Sensei_Templates::get_template( 'wrappers/wrapper-end.php' ); |
|
277 | return; |
|
278 | ||
279 | } |
|
280 | ||
281 | ||
282 | Sensei_Templates::get_template( 'globals/wrapper-end.php' ); |
|
283 | ||
284 | } // End sensei_output_content_wrapper_end() |
|
285 | ||
286 | ||
287 | /** |