forked from themeblvd/jumpstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate_builder.php
61 lines (48 loc) · 1.25 KB
/
template_builder.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Template Name: Custom Layout
*
* WARNING: This template file is a core part of the
* Theme Blvd WordPress Framework. It is advised
* that any edits to the way this file displays its
* content be done with via actions, filters, and
* template parts.
*
* @author Jason Bobich <[email protected]>
* @copyright 2009-2017 Theme Blvd
* @package Jump_Start
* @subpackage Theme_Blvd
* @since Theme_Blvd 2.0.0
*/
get_header();
?>
<div id="custom-main" <?php themeblvd_main_class(); ?> role="main">
<?php themeblvd_content_top(); ?>
<?php if ( has_action( 'themeblvd_builder_content' ) ) : ?>
<?php
/**
* Fires for the content of a custom layout.
*
* @hooked themeblvd_builder_layout - 10
*
* @since Theme_Blvd 2.0.0
*
* @param string Context of custom layout.
*/
do_action( 'themeblvd_builder_content', 'main' );
?>
<?php else : ?>
<div class="alert alert-warning">
<p>
<?php
printf(
themeblvd_get_local( 'no_builder_plugin' ),
'<a href="https://wordpress.org/extend/plugins/theme-blvd-layout-builder" target="_blank">Theme Blvd Layout Builder</a>'
);
?>
</p>
</div>
<?php endif; ?>
<?php themeblvd_content_bottom(); ?>
</div><!-- #elements -->
<?php get_footer(); ?>