Fullwidth Templates for Any Theme & Page Builder - Version 1.0.0

Version Description

Download this release

Release Info

Developer Nikschavan
Plugin Icon 128x128 Fullwidth Templates for Any Theme & Page Builder
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

Gruntfile.js ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module.exports = function( grunt ) {
2
+
3
+ 'use strict';
4
+ var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
5
+ // Project configuration
6
+ grunt.initConfig( {
7
+
8
+ pkg: grunt.file.readJSON( 'package.json' ),
9
+
10
+ addtextdomain: {
11
+ options: {
12
+ textdomain: 'bb-header-footer',
13
+ },
14
+ target: {
15
+ files: {
16
+ src: [ '*.php', '**/*.php', '!node_modules/**', '!php-tests/**', '!bin/**' ]
17
+ }
18
+ }
19
+ },
20
+
21
+ wp_readme_to_markdown: {
22
+ your_target: {
23
+ files: {
24
+ 'README.md': 'readme.txt'
25
+ }
26
+ },
27
+ },
28
+
29
+ makepot: {
30
+ target: {
31
+ options: {
32
+ domainPath: '/languages',
33
+ mainFile: 'bb-header-footer.php',
34
+ potFilename: 'bb-header-footer.pot',
35
+ potHeaders: {
36
+ poedit: true,
37
+ 'x-poedit-keywordslist': true
38
+ },
39
+ type: 'wp-plugin',
40
+ updateTimestamp: true
41
+ }
42
+ }
43
+ },
44
+ } );
45
+
46
+ grunt.loadNpmTasks( 'grunt-wp-i18n' );
47
+ grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
48
+ grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
49
+ grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
50
+
51
+ grunt.util.linefeed = '\n';
52
+
53
+ };
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fullwidth Templates for Any Theme & Page Builder #
2
+ **Contributors:** brainstormforce, nikschavan, WPCrafter
3
+ **Tags:** full width, fullwidth, template, beaver builder, elementor, genesis, primer, full width template, remove sidebar, page builder
4
+ **Donate link:** https://www.brainstormforce.com/payment/
5
+ **Requires at least:** 4.2 or later
6
+ **Tested up to:** 4.7.2
7
+ **Stable tag:** 1.0.0
8
+ **License:** GPLv2 or later
9
+ **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ When using a Page Builder, things like page title, boxed layout usually limit your creativity. This plugin helps you go fullwidth on any* theme.
12
+
13
+ ## Description ##
14
+ **Full Width Page Templates For Your Website**
15
+
16
+ Does your theme offer full width page templates? Need freedom to design beautiful full width layouts with page builder like Beaver Builder, Elementor? Need a complete blank template without header or footer for your landing pages?
17
+
18
+ This plugin adds Fullwidth Page Templates to overcome these limitations.
19
+
20
+ ### Here is a quick video explaining how this plugin works ###
21
+
22
+ [youtube https://www.youtube.com/watch?v=LsIrXPHC0xM]
23
+
24
+ **Blank Template**
25
+
26
+ * Removes header, footer, sidebar, comments, title and leaves you with a plain canvas
27
+ * Awesome for landing pages where you need complete control over your layout
28
+
29
+ **Full Width Template**
30
+
31
+ * Removes Sidebar, page title, comments and stretches the layout to full width
32
+ * Ideal if you're using a Page Builder
33
+
34
+ **Bonus - No Sidebar Template**
35
+
36
+ * Just Removes Sidebar
37
+ * Perfect if your theme does not have No Sidebar option.
38
+ * Rest of the layout & styling will remain intact.
39
+
40
+
41
+ **Made to work with Page Builders**
42
+ When you're using a Page Builder, things like the default page title, boxed layout, extra margin and padding usually get in your way. This plugin puts you in absolute control and removes all unnecessary elements from your layout.
43
+
44
+ **Dead Simple**
45
+ It adds three simple options for your pages & posts. Just choose the one and you should be all set.
46
+
47
+ **Potable & No Lock-in**
48
+ If you're anything like us, you care what happens when you switch your themes. Generally changing theme means, you will need to edit all your pages and change templates. But if you're using a plugin like this - you won't have to worry about it.
49
+
50
+ **Supported & Actively Developed**
51
+ Need help with something? Have an issue to report? [Get in touch][1] with us on GitHub.
52
+
53
+ **Some of the popular themes**
54
+
55
+ * Genesis Framework by StudioPress
56
+ * Primer Theme by GoDaddy
57
+ * Twenty Sixteen
58
+
59
+ <blockquote>
60
+ ### Disclaimer - ###
61
+
62
+ * This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
+ * Please open up an issue on [GitHub][1] or send us a pull request for adding compatibility with your theme.
64
+ <p></p>
65
+ </blockquote>
66
+
67
+ Project by [Brainstorm Force][3].
68
+ [1]: https://github.com/brainstormforce/fullwidth-templates/
69
+ [2]: https://github.com/brainstormforce/fullwidth-templates/
70
+ [3]: https://www.brainstormforce.com/
71
+
72
+
73
+ ## Installation ##
74
+
75
+ 1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
76
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
77
+ 3. When creating or editing pages you will see options to select the fullwidth templates in the template selection dropdown, select any of the three templates and update the page.
78
+
79
+ Check Screenshots for more details.
80
+
81
+ ## Screenshots ##
82
+ ### 1. Extra Template Selection Options for Pages & Posts ###
83
+ ![Extra Template Selection Options for Pages & Posts](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-1.png)
84
+
85
+ ### 2. Default View on Primer Parent Theme ###
86
+ ![Default View on Primer Parent Theme](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-2.png)
87
+
88
+ ### 3. No Sidebar Template ###
89
+ ![No Sidebar Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-3.png)
90
+
91
+ ### 4. Fullwidth Template ###
92
+ ![Fullwidth Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-4.png)
93
+
94
+ ### 5. Blank - No Header / Footer Template ###
95
+ ![Blank - No Header / Footer Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-5.png)
96
+
assets/css/fullwidth-template-no-sidebar.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ .page-template-template-page-builder-no-sidebar .side-pull-left .main-content-inner {
2
+ width: 100%;
3
+ float: none;
4
+ }
assets/css/fullwidth-template.css ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .page-template-template-page-builder-php #content,
2
+ .page-template-template-page-builder-php .content,
3
+ .page-template-template-page-builder-php .site-inner,
4
+ .fpt-template-generatepress.page-template-template-page-builder-php #page,
5
+ .fpt-template.fpt-template-evolve > #wrapper,
6
+ .fpt-template.fpt-template-evolve .content > .row,
7
+ .fpt-template #page,
8
+ .fpt-template {
9
+ max-width: 100% !important;
10
+ width: 100% !important;
11
+ padding: 0 !important;
12
+ margin: 0 !important;
13
+ }
14
+
15
+ body.fpt-template-twentysixteen.page-template-template-page-builder-no-sidebar-php #page,
16
+ body.fpt-template-twentysixteen.page-template-template-page-builder-no-header-footer-php #page,
17
+ body.fpt-template-twentysixteen.page-template-template-page-builder-php #page {
18
+ margin: 0;
19
+ }
20
+
21
+ body.page-template-template-page-builder-no-sidebar-php:not(.custom-background-image):before,
22
+ body.page-template-template-page-builder-no-header-footer-php:not(.custom-background-image):before,
23
+ body.page-template-template-page-builder-php:not(.custom-background-image):before,
24
+ body.page-template-template-page-builder-no-sidebar-php:not(.custom-background-image):after,
25
+ body.page-template-template-page-builder-no-header-footer-php:not(.custom-background-image):after,
26
+ body.page-template-template-page-builder-php:not(.custom-background-image):after {
27
+ height: 0;
28
+ }
29
+
30
+ .fpt-template.fpt-template-Spacious #main {
31
+ padding: 0;
32
+ }
33
+
34
+ .fpt-template.fpt-template-Spacious .header-post-title-container {
35
+ display: none;
36
+ }
37
+
38
+ .fpt-template.fpt-template-Spacious #main .inner-wrap{
39
+ max-width: 100% !important;
40
+ width: 100% !important;
41
+ padding: 0 !important;
42
+ margin: 0 !important;
43
+ }
44
+
45
+ .fpt-template.fpt-template-Sparkling .container.main-content-area {
46
+ max-width: 100% !important;
47
+ width: 100% !important;
48
+ padding: 0 !important;
49
+ margin: 0 !important;
50
+ }
51
+
52
+ .fpt-template.fpt-template-Sparkling .container.main-content-area .row {
53
+ margin: 0;
54
+ }
55
+
56
+ .fpt-template.fpt-template-Sparkling .container.main-content-area .main-content-inner {
57
+ float: none;
58
+ width: 100%;
59
+ padding: 0;
60
+ }
61
+
62
+ .page-template-template-page-builder-no-sidebar .side-pull-left .main-content-inner {
63
+ width: 100%;
64
+ float: none;
65
+ }
class-fullwidth-page-templates.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ */
6
+ class Dynamic_Header_Footer {
7
+
8
+ private $templates;
9
+
10
+ function __construct() {
11
+
12
+ $this->includes();
13
+
14
+ $this->templates = array(
15
+ 'template-page-builder-no-sidebar.php' => 'FW No Sidebar',
16
+ 'template-page-builder.php' => 'FW Fullwidth',
17
+ 'template-page-builder-no-header-footer.php' => 'FW Fullwidth No Header Footer'
18
+ );
19
+
20
+ // Add a filter to the attributes metabox to inject template into the cache.
21
+ if ( version_compare( floatval( get_bloginfo( 'version' ) ), '4.7', '<' ) ) {
22
+ // 4.6 and older
23
+ add_filter(
24
+ 'page_attributes_dropdown_pages_args',
25
+ array( $this, 'fpt_register_project_templates' )
26
+ );
27
+ } else {
28
+ // Add a filter to the wp 4.7 version attributes metabox
29
+ $this->post_type_template();
30
+ }
31
+
32
+ // Add a filter to the save post to inject out template into the page cache
33
+ add_filter( 'wp_insert_post_data', array( $this, 'fpt_register_project_templates' ) );
34
+ add_filter( 'template_include', array( $this, 'fpt_view_project_template' ) );
35
+
36
+ add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) );
37
+ add_filter( 'body_class', array( $this, 'body_class' ) );
38
+ add_filter( 'wp', array( $this, 'theme_support' ) );
39
+ }
40
+
41
+ public function body_class( $body_Class ) {
42
+
43
+ $template = get_page_template_slug();
44
+
45
+ if ( false !== $template && $this->is_template_active() ) {
46
+ $body_Class[] = 'fpt-template';
47
+ }
48
+
49
+ $body_Class[] = 'fpt-template-' . get_template();
50
+
51
+ return $body_Class;
52
+ }
53
+
54
+ public function theme_support() {
55
+
56
+ if ( $this->is_template_active() ) {
57
+ add_filter( 'primer_the_page_title', '__return_false' );
58
+ }
59
+
60
+ }
61
+
62
+ public function is_template_active() {
63
+
64
+ $template = get_page_template_slug();
65
+
66
+ if ( false !== $template && array_key_exists( $template, $this->templates ) ) {
67
+ return true;
68
+ }
69
+
70
+ return false;
71
+ }
72
+
73
+ public function enqueue() {
74
+ if ( is_page_template( 'template-page-builder.php' ) ) {
75
+ wp_register_style( 'fullwidth-template', plugins_url( 'assets/css/fullwidth-template.css', __FILE__ ) );
76
+ wp_enqueue_style( 'fullwidth-template' );
77
+ }
78
+
79
+ if ( is_page_template( 'template-page-builder-no-sidebar.php' ) ) {
80
+ wp_register_style( 'fullwidth-template-no-sidebar', plugins_url( 'assets/css/fullwidth-template-no-sidebar.css', __FILE__ ) );
81
+ wp_enqueue_style( 'fullwidth-template-no-sidebar' );
82
+ }
83
+ }
84
+
85
+ private function includes() {
86
+ require_once FPT_DIR . '/templates/default/template-helpers.php';
87
+ }
88
+
89
+ private function post_type_template() {
90
+ $args = array(
91
+ 'public' => true,
92
+ '_builtin' => true
93
+ );
94
+
95
+ $post_types = get_post_types( $args, 'names', 'and' );
96
+
97
+ if ( ! empty( $post_types ) ) {
98
+
99
+ foreach ( $post_types as $post_type ) {
100
+ add_filter( 'theme_' . $post_type . '_templates', array( $this, 'add_new_template' ) );
101
+ }
102
+
103
+ }
104
+ }
105
+
106
+ /**
107
+ * Adds our template to the page dropdown for v4.7+
108
+ *
109
+ */
110
+ public function add_new_template( $posts_templates ) {
111
+ $posts_templates = array_merge( $posts_templates, $this->templates );
112
+ return $posts_templates;
113
+ }
114
+
115
+ function fpt_register_project_templates( $atts ) {
116
+
117
+ // Create the key used for the themes cache
118
+ $cache_key = 'page_templates-' . md5( get_theme_root() . '/' . get_stylesheet() );
119
+
120
+ $templates = wp_get_theme()->get_page_templates();
121
+ if ( empty( $templates ) ) {
122
+ $templates = array();
123
+ }
124
+
125
+ wp_cache_delete( $cache_key, 'themes' );
126
+
127
+ $templates = array_merge( $templates, $this->templates );
128
+ wp_cache_add( $cache_key, $templates, 'themes', 1800 );
129
+
130
+ return $atts;
131
+ }
132
+
133
+ function fpt_view_project_template( $template ) {
134
+
135
+ global $post;
136
+
137
+ // If it is nont a single post/page/post-type, don't apply the template from the plugin.
138
+ if ( ! is_singular() ) {
139
+ return $template;
140
+ }
141
+
142
+ if ( ! isset( $this->templates[ get_post_meta( $post->ID, '_wp_page_template', true ) ] ) ) {
143
+
144
+ return $template;
145
+ }
146
+
147
+ $file = FPT_DIR . '/templates/default/' . get_post_meta( $post->ID, '_wp_page_template', true );
148
+
149
+ // Just to be safe, we check if the file exist first
150
+ if ( file_exists( $file ) ) {
151
+ return $file;
152
+ } else {
153
+ echo $file;
154
+ }
155
+
156
+ return $template;
157
+ }
158
+
159
+ }
fullwidth-page-template.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: Fullwidth Page Templates
4
+ * Plugin URI: https://www.brainnstormforce.com
5
+ * Description: Create Full width landing pages with any theme.
6
+ * Author: Brainstorm Force
7
+ * Author URI: https://www.brainnstormforce.com
8
+ * Text Domain: fullwidth-page-template
9
+ * Domain Path: /languages
10
+ * Version: 1.0.0
11
+ *
12
+ * @package Fullwidth_Page_Templates
13
+ */
14
+
15
+ require_once 'class-fullwidth-page-templates.php';
16
+
17
+ define( 'FPT_VER', '1.0.0' );
18
+ define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
19
+ define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
20
+ define( 'FPT_PATH', plugin_basename( __FILE__ ) );
21
+
22
+ /**
23
+ * Load the Plugin Class.
24
+ */
25
+ function init_fullwidth_template() {
26
+ new Dynamic_Header_Footer();
27
+ }
28
+
29
+ add_action( 'plugins_loaded', 'init_fullwidth_template' );
package.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ {
3
+ "name": "bb-header-footer",
4
+ "version": "0.1.0",
5
+ "main": "Gruntfile.js",
6
+ "author": "YOUR NAME HERE",
7
+ "devDependencies": {
8
+ "grunt": "~0.4.5",
9
+ "grunt-wp-i18n": "~0.5.0",
10
+ "grunt-wp-readme-to-markdown": "~1.0.0"
11
+ }
12
+ }
readme.txt ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Fullwidth Templates for Any Theme & Page Builder ===
2
+ Contributors: brainstormforce, nikschavan, WPCrafter
3
+ Tags: full width, fullwidth, template, beaver builder, elementor, genesis, primer, full width template, remove sidebar, page builder
4
+ Donate link: https://www.brainstormforce.com/payment/
5
+ Requires at least: 4.2 or later
6
+ Tested up to: 4.7.2
7
+ Stable tag: 1.0.0
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ When using a Page Builder, things like page title, boxed layout usually limit your creativity. This plugin helps you go fullwidth on any* theme.
12
+
13
+ == Description ==
14
+ **Full Width Page Templates For Your Website**
15
+
16
+ Does your theme offer full width page templates? Need freedom to design beautiful full width layouts with page builder like Beaver Builder, Elementor? Need a complete blank template without header or footer for your landing pages?
17
+
18
+ This plugin adds Fullwidth Page Templates to overcome these limitations.
19
+
20
+ = Here is a quick video explaining how this plugin works =
21
+
22
+ [youtube https://www.youtube.com/watch?v=LsIrXPHC0xM]
23
+
24
+ **Blank Template**
25
+
26
+ * Removes header, footer, sidebar, comments, title and leaves you with a plain canvas
27
+ * Awesome for landing pages where you need complete control over your layout
28
+
29
+ **Full Width Template**
30
+
31
+ * Removes Sidebar, page title, comments and stretches the layout to full width
32
+ * Ideal if you're using a Page Builder
33
+
34
+ **Bonus - No Sidebar Template**
35
+
36
+ * Just Removes Sidebar
37
+ * Perfect if your theme does not have No Sidebar option.
38
+ * Rest of the layout & styling will remain intact.
39
+
40
+
41
+ **Made to work with Page Builders**
42
+ When you're using a Page Builder, things like the default page title, boxed layout, extra margin and padding usually get in your way. This plugin puts you in absolute control and removes all unnecessary elements from your layout.
43
+
44
+ **Dead Simple**
45
+ It adds three simple options for your pages & posts. Just choose the one and you should be all set.
46
+
47
+ **Potable & No Lock-in**
48
+ If you're anything like us, you care what happens when you switch your themes. Generally changing theme means, you will need to edit all your pages and change templates. But if you're using a plugin like this - you won't have to worry about it.
49
+
50
+ **Supported & Actively Developed**
51
+ Need help with something? Have an issue to report? [Get in touch][1] with us on GitHub.
52
+
53
+ **Some of the popular themes**
54
+
55
+ * Genesis Framework by StudioPress
56
+ * Primer Theme by GoDaddy
57
+ * Twenty Sixteen
58
+
59
+ <blockquote>
60
+ = Disclaimer - =
61
+
62
+ * This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
+ * Please open up an issue on [GitHub][1] or send us a pull request for adding compatibility with your theme.
64
+ <p></p>
65
+ </blockquote>
66
+
67
+ Project by [Brainstorm Force][3].
68
+ [1]: https://github.com/brainstormforce/fullwidth-templates/
69
+ [2]: https://github.com/brainstormforce/fullwidth-templates/
70
+ [3]: https://www.brainstormforce.com/
71
+
72
+
73
+ == Installation ==
74
+
75
+ 1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
76
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
77
+ 3. When creating or editing pages you will see options to select the fullwidth templates in the template selection dropdown, select any of the three templates and update the page.
78
+
79
+ Check Screenshots for more details.
80
+
81
+ == Screenshots ==
82
+ 1. Extra Template Selection Options for Pages & Posts
83
+ 2. Default View on Primer Parent Theme
84
+ 3. No Sidebar Template
85
+ 4. Fullwidth Template
86
+ 5. Blank - No Header / Footer Template
templates/default/template-helpers.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function no_content_get_header() {
4
+
5
+ ?>
6
+ <!DOCTYPE html>
7
+ <html <?php language_attributes(); ?> class="no-js">
8
+ <head>
9
+ <meta charset="<?php bloginfo( 'charset' ); ?>">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <link rel="profile" href="http://gmpg.org/xfn/11">
12
+ <?php wp_head(); ?>
13
+ </head>
14
+
15
+ <body <?php body_class(); ?>>
16
+ <?php
17
+ do_action( 'page_builder_content_body_before' );
18
+
19
+ }
20
+
21
+ function no_content_get_footer() {
22
+ do_action( 'page_builder_content_body_after' );
23
+ wp_footer();
24
+ ?>
25
+ </body>
26
+ </html>
27
+ <?php
28
+ }
29
+
30
+ function page_builder_page_elements() {
31
+ the_content();
32
+ }
33
+
34
+ add_action( 'page_builder_page_elements', 'page_builder_page_elements' );
templates/default/template-page-builder-no-header-footer.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Template Name: BSF Fullwidth No Header Footer */
3
+
4
+ no_content_get_header();
5
+
6
+ do_action( 'page_builder_before_content_wrapper' );
7
+
8
+ while ( have_posts() ) : the_post();
9
+ do_action( 'page_builder_page_elements' ); // Give your elements priorities so that they hook in the right place.
10
+ endwhile;
11
+
12
+ do_action( 'page_builder_after_content_wrapper' );
13
+
14
+ no_content_get_footer();
templates/default/template-page-builder-no-sidebar.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Template Name: BSF No Sidebar */
3
+
4
+ get_header();
5
+
6
+ do_action( 'page_builder_before_content_wrapper' );
7
+
8
+ while ( have_posts() ) : the_post();
9
+ do_action( 'page_builder_page_elements' ); // Give your elements priorities so that they hook in the right place.
10
+ endwhile;
11
+
12
+ do_action( 'page_builder_after_content_wrapper' );
13
+
14
+ get_footer();
templates/default/template-page-builder.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Template Name: BSF Fullwidth */
3
+
4
+ get_header();
5
+
6
+ do_action( 'page_builder_before_content_wrapper' );
7
+
8
+ while ( have_posts() ) : the_post();
9
+ do_action( 'page_builder_page_elements' ); // Give your elements priorities so that they hook in the right place.
10
+ endwhile;
11
+
12
+ do_action( 'page_builder_after_content_wrapper' );
13
+
14
+ get_footer();