Version Description
- Initial release.
Download this release
Release Info
Developer | WPDevHQ |
Plugin | Page Templater For Elementor |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- elementemplater-class.php +149 -0
- elementemplator.php +32 -0
- inc/elementemplater-functions.php +84 -0
- inc/themes/actions.php +15 -0
- inc/themes/edge.php +19 -0
- inc/themes/experon.php +14 -0
- inc/themes/genesis.php +22 -0
- inc/themes/storefront.php +14 -0
- inc/themes/sydney.php +18 -0
- inc/themes/twentyfifteen.php +23 -0
- inc/themes/twentyfourteen.php +15 -0
- inc/themes/twentysixteen.php +46 -0
- inc/themes/twentythirteen.php +17 -0
- inc/themes/vantage.php +15 -0
- inc/themes/virtue.php +16 -0
- readme.txt +69 -0
- templates/builder-fullwidth-std.php +13 -0
- templates/builder-fullwidth.php +13 -0
elementemplater-class.php
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ElemenTemplater {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* A reference to an instance of this class.
|
7 |
+
*/
|
8 |
+
private static $instance;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* The array of templates that this plugin tracks.
|
12 |
+
*/
|
13 |
+
protected $templates;
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Returns an instance of this class.
|
17 |
+
*/
|
18 |
+
public static function get_instance() {
|
19 |
+
|
20 |
+
if( null == self::$instance ) {
|
21 |
+
self::$instance = new ElemenTemplater();
|
22 |
+
}
|
23 |
+
|
24 |
+
return self::$instance;
|
25 |
+
|
26 |
+
}
|
27 |
+
|
28 |
+
public function elementemplater_load_plugin_textdomain() {
|
29 |
+
load_plugin_textdomain( 'elementemplater' );
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Initializes the plugin by setting filters and administration functions.
|
34 |
+
*/
|
35 |
+
private function __construct() {
|
36 |
+
|
37 |
+
$this->templates = array();
|
38 |
+
|
39 |
+
add_action( 'init', array( $this, 'elementemplater_load_plugin_textdomain' ) );
|
40 |
+
|
41 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'elementemplater_styles' ), 999 );
|
42 |
+
|
43 |
+
// Add a filter to the attributes metabox to inject template into the cache.
|
44 |
+
add_filter(
|
45 |
+
'page_attributes_dropdown_pages_args',
|
46 |
+
array( $this, 'register_project_templates' )
|
47 |
+
);
|
48 |
+
|
49 |
+
|
50 |
+
// Add a filter to the save post to inject out template into the page cache
|
51 |
+
add_filter(
|
52 |
+
'wp_insert_post_data',
|
53 |
+
array( $this, 'register_project_templates' )
|
54 |
+
);
|
55 |
+
|
56 |
+
|
57 |
+
// Add a filter to the template include to determine if the page has our
|
58 |
+
// template assigned and return it's path
|
59 |
+
add_filter(
|
60 |
+
'template_include',
|
61 |
+
array( $this, 'view_project_template')
|
62 |
+
);
|
63 |
+
|
64 |
+
|
65 |
+
// Add your templates to this array.
|
66 |
+
$this->templates = array(
|
67 |
+
'templates/builder-fullwidth.php' => __( 'Elementor Fullwidth Blank', 'elementemplater' ),
|
68 |
+
'templates/builder-fullwidth-std.php' => __( 'Elementor Fullwidth Standard', 'elementemplater' ),
|
69 |
+
);
|
70 |
+
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Adds our template to the pages cache in order to trick WordPress
|
75 |
+
* into thinking the template file exists where it doens't really exist.
|
76 |
+
*
|
77 |
+
*/
|
78 |
+
|
79 |
+
public function register_project_templates( $atts ) {
|
80 |
+
|
81 |
+
// Create the key used for the themes cache
|
82 |
+
$cache_key = 'page_templates-' . md5( get_theme_root() . '/' . get_stylesheet() );
|
83 |
+
|
84 |
+
// Retrieve the cache list.
|
85 |
+
// If it doesn't exist, or it's empty prepare an array
|
86 |
+
$templates = wp_get_theme()->get_page_templates();
|
87 |
+
if ( empty( $templates ) ) {
|
88 |
+
$templates = array();
|
89 |
+
}
|
90 |
+
|
91 |
+
// New cache, therefore remove the old one
|
92 |
+
wp_cache_delete( $cache_key , 'themes');
|
93 |
+
|
94 |
+
// Now add our template to the list of templates by merging our templates
|
95 |
+
// with the existing templates array from the cache.
|
96 |
+
$templates = array_merge( $templates, $this->templates );
|
97 |
+
|
98 |
+
// Add the modified cache to allow WordPress to pick it up for listing
|
99 |
+
// available templates
|
100 |
+
wp_cache_add( $cache_key, $templates, 'themes', 1800 );
|
101 |
+
|
102 |
+
return $atts;
|
103 |
+
|
104 |
+
}
|
105 |
+
|
106 |
+
/**
|
107 |
+
* Checks if the template is assigned to the page
|
108 |
+
*/
|
109 |
+
public function view_project_template( $template ) {
|
110 |
+
|
111 |
+
global $post;
|
112 |
+
|
113 |
+
if (!isset($this->templates[get_post_meta(
|
114 |
+
$post->ID, '_wp_page_template', true
|
115 |
+
)] ) ) {
|
116 |
+
|
117 |
+
return $template;
|
118 |
+
|
119 |
+
}
|
120 |
+
|
121 |
+
$file = plugin_dir_path(__FILE__). get_post_meta(
|
122 |
+
$post->ID, '_wp_page_template', true
|
123 |
+
);
|
124 |
+
|
125 |
+
// Just to be safe, we check if the file exist first
|
126 |
+
if( file_exists( $file ) ) {
|
127 |
+
return $file;
|
128 |
+
}
|
129 |
+
else { echo $file; }
|
130 |
+
|
131 |
+
return $template;
|
132 |
+
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Enqueue CSS for active theme.
|
137 |
+
* @since 1.0.0
|
138 |
+
* @return void
|
139 |
+
*/
|
140 |
+
public function elementemplater_styles() {
|
141 |
+
$theme = get_option( 'template' );
|
142 |
+
$filename = plugin_dir_path( __FILE__ ) . 'inc/themes/' . $theme . '.php';
|
143 |
+
if (file_exists($filename)) {
|
144 |
+
include_once( $filename );
|
145 |
+
}
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
add_action( 'plugins_loaded', array( 'ElemenTemplater', 'get_instance' ) );
|
elementemplator.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Plugin Name: Elementor Templater: ElemenTemplator
|
4 |
+
* Plugin URI: http://www.wpdevhq.com/plugins/elementor-templator
|
5 |
+
* Description: A helper plugin for users of [Elementor Pagebuilder] (https://wordpress.org/plugins/elementor/).
|
6 |
+
* Version: 1.0.0
|
7 |
+
* Author: WPDevHQ
|
8 |
+
* Author URI: http://www.wpdevhq.com/
|
9 |
+
* Requires at least: 4.4
|
10 |
+
* Tested up to: 4.6
|
11 |
+
*/
|
12 |
+
|
13 |
+
/* Do not access this file directly */
|
14 |
+
if ( ! defined( 'WPINC' ) ) { die; }
|
15 |
+
|
16 |
+
/* Constants
|
17 |
+
------------------------------------------ */
|
18 |
+
|
19 |
+
/* Set plugin version constant. */
|
20 |
+
define( 'ET_VERSION', '1.0.0' );
|
21 |
+
|
22 |
+
/* Set constant path to the plugin directory. */
|
23 |
+
define( 'ET_PATH', trailingslashit( plugin_dir_path(__FILE__) ) );
|
24 |
+
|
25 |
+
/* Set the constant path to the plugin directory URI. */
|
26 |
+
define( 'ET_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
27 |
+
|
28 |
+
/* ElemenTemplater Class */
|
29 |
+
require_once( ET_PATH . 'elementemplater-class.php' );
|
30 |
+
|
31 |
+
/* Template Functions */
|
32 |
+
require_once( ET_PATH . 'inc/elementemplater-functions.php' );
|
inc/elementemplater-functions.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Actionschild template functions.
|
4 |
+
*
|
5 |
+
* @package actionschild
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! function_exists( 'elementor_pagebuilder' ) ) {
|
9 |
+
/*
|
10 |
+
* Setup default page template Actions
|
11 |
+
*/
|
12 |
+
function elementor_pagebuilder() {
|
13 |
+
get_header();
|
14 |
+
|
15 |
+
do_action( 'elementor_before_content_wrapper' );
|
16 |
+
|
17 |
+
while ( have_posts() ) : the_post();
|
18 |
+
do_action( 'elementor_page_elements' ); // Give your elements priorities so that they hook in the right place.
|
19 |
+
endwhile;
|
20 |
+
|
21 |
+
do_action( 'elementor_after_content_wrapper' );
|
22 |
+
|
23 |
+
get_footer();
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
if ( ! function_exists( 'elementor_blankpb' ) ) {
|
28 |
+
/*
|
29 |
+
* Setup default page template Actions
|
30 |
+
*/
|
31 |
+
function elementor_blankpb() {
|
32 |
+
elementor_blankpb_header();
|
33 |
+
|
34 |
+
do_action( 'elementor_before_content_wrapper' );
|
35 |
+
|
36 |
+
while ( have_posts() ) : the_post();
|
37 |
+
do_action( 'elementor_page_elements' ); // Give your elements priorities so that they hook in the right place.
|
38 |
+
endwhile;
|
39 |
+
|
40 |
+
do_action( 'elementor_after_content_wrapper' );
|
41 |
+
|
42 |
+
elementor_blankpb_footer();
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
+
function elementor_blankpb_header() {
|
47 |
+
|
48 |
+
/**
|
49 |
+
* The header for our theme.
|
50 |
+
*
|
51 |
+
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
52 |
+
*
|
53 |
+
* @package ET
|
54 |
+
*/
|
55 |
+
|
56 |
+
?><!DOCTYPE html>
|
57 |
+
<html <?php language_attributes(); ?> class="no-js">
|
58 |
+
<head>
|
59 |
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
60 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
61 |
+
<link rel="profile" href="http://gmpg.org/xfn/11">
|
62 |
+
<?php wp_head(); ?>
|
63 |
+
</head>
|
64 |
+
|
65 |
+
<body <?php body_class(); ?>>
|
66 |
+
<?php
|
67 |
+
do_action( 'elementor_content_body_before' );
|
68 |
+
}
|
69 |
+
|
70 |
+
function elementor_blankpb_footer() {
|
71 |
+
do_action( 'elementor_content_body_after' );
|
72 |
+
wp_footer();
|
73 |
+
?>
|
74 |
+
</body>
|
75 |
+
</html>
|
76 |
+
<?php }
|
77 |
+
|
78 |
+
if ( ! function_exists( 'elementor_page_content' ) ) {
|
79 |
+
|
80 |
+
function elementor_page_content() {
|
81 |
+
the_content();
|
82 |
+
}
|
83 |
+
}
|
84 |
+
add_action( 'elementor_page_elements', 'elementor_page_content', 10 );
|
inc/themes/actions.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Actions theme */
|
3 |
+
$style = '
|
4 |
+
.page-template-builder-fullwidth .main-content-area .main,
|
5 |
+
.page-template-builder-fullwidth-std .main-content-area .main {
|
6 |
+
margin: 0 auto;
|
7 |
+
width: 100%;
|
8 |
+
max-width: 100%;
|
9 |
+
}
|
10 |
+
';
|
11 |
+
if ( is_child_theme() || !is_admin() ) {
|
12 |
+
wp_add_inline_style( 'actions-child-style', $style );
|
13 |
+
} else {
|
14 |
+
wp_add_inline_style( 'actions-style', $style );
|
15 |
+
}
|
inc/themes/edge.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Virtue theme */
|
3 |
+
$edge = '
|
4 |
+
.page-template-builder-fullwidth-std #content {
|
5 |
+
padding: 0;
|
6 |
+
}
|
7 |
+
.page-template-builder-fullwidth-std #content .container {
|
8 |
+
max-width: 100%;
|
9 |
+
}
|
10 |
+
.page-template-builder-fullwidth-std .page-header {
|
11 |
+
display: none;
|
12 |
+
}
|
13 |
+
@media only screen and (max-width: 1023px) {
|
14 |
+
.page-template-builder-fullwidth-std #content .container {
|
15 |
+
width: 100%;
|
16 |
+
}
|
17 |
+
}
|
18 |
+
';
|
19 |
+
wp_add_inline_style( 'edge-style', $edge );
|
inc/themes/experon.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Virtue theme */
|
3 |
+
$experon = '
|
4 |
+
.page-template-builder-fullwidth-std #content {
|
5 |
+
padding: 0;
|
6 |
+
}
|
7 |
+
.page-template-builder-fullwidth-std #content-core {
|
8 |
+
max-width: 100%;
|
9 |
+
}
|
10 |
+
.page-template-builder-fullwidth-std #intro {
|
11 |
+
display: none;
|
12 |
+
}
|
13 |
+
';
|
14 |
+
wp_add_inline_style( 'thinkup-style', $experon );
|
inc/themes/genesis.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Genesis theme */
|
3 |
+
$genesis = '
|
4 |
+
.page-template-builder-fullwidth,
|
5 |
+
.page-template-builder-fullwidth-std {
|
6 |
+
max-width: 100%;
|
7 |
+
padding: 0;
|
8 |
+
margin: 0;
|
9 |
+
}
|
10 |
+
.page-template-builder-fullwidth .elementor,
|
11 |
+
.page-template-builder-fullwidth-std .site-inner {
|
12 |
+
padding-top: 0;
|
13 |
+
max-width: 100%;
|
14 |
+
overflow: hidden;
|
15 |
+
}
|
16 |
+
@media only screen and (max-width: 860px) {
|
17 |
+
.page-template-builder-fullwidth-std .site-inner {
|
18 |
+
padding: 0;
|
19 |
+
}
|
20 |
+
}
|
21 |
+
';
|
22 |
+
wp_add_inline_style( 'elementor-frontend', $genesis );
|
inc/themes/storefront.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Storefront theme */
|
3 |
+
$css = '
|
4 |
+
.page-template-builder-fullwidth-std .site-content .col-full {
|
5 |
+
max-width: 100%;
|
6 |
+
padding: 0;
|
7 |
+
margin: 0;
|
8 |
+
}
|
9 |
+
|
10 |
+
.page-template-builder-fullwidth-std .site-header {
|
11 |
+
margin-bottom: 0;
|
12 |
+
}
|
13 |
+
';
|
14 |
+
wp_add_inline_style( 'storefront-style', $css );
|
inc/themes/sydney.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Storefront theme */
|
3 |
+
$sydney = '
|
4 |
+
.page-template-builder-fullwidth-std .page-wrap,
|
5 |
+
.page-template-builder-fullwidth-std .page-wrap .content-wrapper {
|
6 |
+
padding: 0;
|
7 |
+
margin: 0;
|
8 |
+
}
|
9 |
+
.page-template-builder-fullwidth-std .page-wrap .container {
|
10 |
+
width: 100%;
|
11 |
+
overflow: hidden;
|
12 |
+
}
|
13 |
+
.page-template-builder-fullwidth-std .page .entry-header,
|
14 |
+
.page-template-builder-fullwidth-std .page .entry-footer {
|
15 |
+
display: none;
|
16 |
+
}
|
17 |
+
';
|
18 |
+
wp_add_inline_style( 'sydney-style', $sydney );
|
inc/themes/twentyfifteen.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Twenty Fifteen theme */
|
3 |
+
$style = '
|
4 |
+
body.page-template-builder-fullwidth:before {
|
5 |
+
display: none;
|
6 |
+
}
|
7 |
+
.page-template-builder-fullwidth .site,
|
8 |
+
.page-template-builder-fullwidth-std .site {
|
9 |
+
max-width: 100%;
|
10 |
+
margin: 0;
|
11 |
+
}
|
12 |
+
.page-template-builder-fullwidth .elementor {
|
13 |
+
overflow: hidden;
|
14 |
+
}
|
15 |
+
body.page-template-builder-fullwidth-std:before {
|
16 |
+
width: 29.4118%;
|
17 |
+
}
|
18 |
+
.page-template-builder-fullwidth-std .site-footer {
|
19 |
+
width: 71%;
|
20 |
+
margin-left: 29%;
|
21 |
+
}
|
22 |
+
';
|
23 |
+
wp_add_inline_style( 'twentyfifteen-style', $style );
|
inc/themes/twentyfourteen.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Twenty Fourteen theme */
|
3 |
+
$style = '
|
4 |
+
.page-template-builder-fullwidth-std .site {
|
5 |
+
max-width: 100%;
|
6 |
+
overflow: hidden;
|
7 |
+
}
|
8 |
+
.page-template-builder-fullwidth-std .site::before {
|
9 |
+
display: none;
|
10 |
+
}
|
11 |
+
.page-template-builder-fullwidth-std .site-header {
|
12 |
+
max-width: 100%;
|
13 |
+
}
|
14 |
+
';
|
15 |
+
wp_add_inline_style( 'twentyfourteen-style', $style );
|
inc/themes/twentysixteen.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Twenty Sixteen theme */
|
3 |
+
$style = '
|
4 |
+
.page-template-builder-fullwidth .elementor,
|
5 |
+
.page-template-builder-fullwidth-std .elementor {
|
6 |
+
overflow: hidden;
|
7 |
+
}
|
8 |
+
.page-template-builder-fullwidth .full-width,
|
9 |
+
.page-template-builder-fullwidth-std .full-width {
|
10 |
+
width: 100%;
|
11 |
+
}
|
12 |
+
.page-template-builder-fullwidth .site-inner,
|
13 |
+
.page-template-builder-fullwidth-std .site-inner {
|
14 |
+
max-width: 100%;
|
15 |
+
}
|
16 |
+
.page-template-builder-fullwidth .site-content,
|
17 |
+
.page-template-builder-fullwidth-std .site-content {
|
18 |
+
padding: 0;
|
19 |
+
}
|
20 |
+
.page-template-builder-fullwidth header#masthead,
|
21 |
+
.page-template-builder-fullwidth footer#colophon,
|
22 |
+
.page-template-builder-fullwidth-std header#masthead,
|
23 |
+
.page-template-builder-fullwidth-std footer#colophon {
|
24 |
+
margin: 0 auto;
|
25 |
+
max-width: 1320px;
|
26 |
+
}
|
27 |
+
.page-template-builder-fullwidth .entry-content,
|
28 |
+
.page-template-builder-fullwidth-std .entry-content {
|
29 |
+
margin-right: auto;
|
30 |
+
margin-left: auto;
|
31 |
+
}
|
32 |
+
@media screen and (min-width: 56.875em) {
|
33 |
+
.page-template-builder-fullwidth .entry-content,
|
34 |
+
.page-template-builder-fullwidth-std .entry-content {
|
35 |
+
margin-right: auto;
|
36 |
+
margin-left: auto;
|
37 |
+
}
|
38 |
+
}
|
39 |
+
@media screen and (min-width: 44.375em) {
|
40 |
+
.page-template-builder-fullwidth .entry-content,
|
41 |
+
.page-template-builder-fullwidth-std .entry-content {
|
42 |
+
margin-right: auto;;
|
43 |
+
}
|
44 |
+
}
|
45 |
+
';
|
46 |
+
wp_add_inline_style( 'twentysixteen-style', $style );
|
inc/themes/twentythirteen.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Twenty Thirteen theme */
|
3 |
+
$thirteen = '
|
4 |
+
.page-template-builder-fullwidth-std .site {
|
5 |
+
max-width: 100%;
|
6 |
+
overflow: hidden;
|
7 |
+
}
|
8 |
+
.page-template-builder-fullwidth-std .site-header {
|
9 |
+
max-width: 100%;
|
10 |
+
background-size: 3200px auto;
|
11 |
+
}
|
12 |
+
.page-template-builder-fullwidth-std .navbar {
|
13 |
+
max-width: 100%;
|
14 |
+
width: 100%;
|
15 |
+
}
|
16 |
+
';
|
17 |
+
wp_add_inline_style( 'twentythirteen-style', $thirteen );
|
inc/themes/vantage.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Vantage theme */
|
3 |
+
$vantage = '
|
4 |
+
.page-template-builder-fullwidth-std #main {
|
5 |
+
padding: 0;
|
6 |
+
max-width: 100%;
|
7 |
+
}
|
8 |
+
|
9 |
+
.page-template-builder-fullwidth-std.responsive.layout-full #main .full-container {
|
10 |
+
max-width: 100%;
|
11 |
+
margin-left: auto;
|
12 |
+
margin-right: auto;
|
13 |
+
}
|
14 |
+
';
|
15 |
+
wp_add_inline_style( 'vantage-style', $vantage );
|
inc/themes/virtue.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Support for the Virtue theme */
|
3 |
+
$virtue = '
|
4 |
+
.page-template-builder-fullwidth .headerclass,
|
5 |
+
.page-template-builder-fullwidth .footerclass {
|
6 |
+
display: none;
|
7 |
+
}
|
8 |
+
.page-template-builder-fullwidth .contentclass,
|
9 |
+
.page-template-builder-fullwidth-std .contentclass {
|
10 |
+
padding-bottom: 0;
|
11 |
+
}
|
12 |
+
.page-template-builder-fullwidth .contentclass {
|
13 |
+
padding-top: 0;
|
14 |
+
}
|
15 |
+
';
|
16 |
+
wp_add_inline_style( 'kadence_theme', $virtue );
|
readme.txt
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Elementor Page Templater ===
|
2 |
+
Contributors: WPDevHQ
|
3 |
+
Tags: elementor, pagebuilder, page builder, page builder template, page builder templates, actions, storefront, twentysixteen, genesis, template builder, builder templates
|
4 |
+
Requires at least: 4.0
|
5 |
+
Tested up to: 4.6
|
6 |
+
Stable tag: 1.0.0
|
7 |
+
License: GPLv2 or later
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
+
|
10 |
+
A helper plugin for users of Elementor Page Builder
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
This plugin does one and one thing only - adds page templates (plus css) to any theme for use with the [Elementor Page Builder](https://wordpress.org/plugins/elementor/)
|
14 |
+
|
15 |
+
Initial version only contains 2 templates
|
16 |
+
- Template 1: Full width with header and footer : Builder Fullwidth Standard
|
17 |
+
- Template 2: Full width and no header or footer : Builder Fullwidth Blank
|
18 |
+
|
19 |
+
== Supported Themes ==
|
20 |
+
The following themes are currently supported out of the box - if your desired theme is not list you may need to add some custom css.
|
21 |
+
* [Actions](https://wordpress.org/themes/actions/) - by WPDevHQ
|
22 |
+
* [Edge](https://wordpress.org/themes/edge/) - By themefreesia
|
23 |
+
* [Experon](https://wordpress.org/themes/experon/) - ThinkUpThemes
|
24 |
+
* [Genesis](http://my.studiopress.com/themes/genesis/) - By StudioPress
|
25 |
+
* [Storefront](https://wordpress.org/themes/storefront/) - by WooThemes/Automattic
|
26 |
+
* [TwentyFourteen](https://wordpress.org/themes/twentyfourteen/) - by WordPress.org
|
27 |
+
* [TwentyFifteen](https://wordpress.org/themes/twentyfifteen/) - by WordPress.org
|
28 |
+
* [TwentySixteen](https://wordpress.org/themes/twentysixteen/) - by WordPress.org
|
29 |
+
* [TwentyThirteen](https://wordpress.org/themes/twentythirteen/) - by WordPress.org
|
30 |
+
* [Vantage](https://wordpress.org/themes/vantage/) - by Greg Priday
|
31 |
+
* [Virtue](https://wordpress.org/themes/virtue/) - by Kadence Themes
|
32 |
+
|
33 |
+
If you are a theme author and would like to have your theme added to our supported list please provide details and we'll see what we can do.
|
34 |
+
|
35 |
+
If you find any issues with your particula theme not playing nice with the templates please let us know so that we can do our best
|
36 |
+
to accommodate you.
|
37 |
+
|
38 |
+
== Installation ==
|
39 |
+
* These instructions assumes you already have a WordPress site and the Elementor plugin installed and activated.
|
40 |
+
|
41 |
+
1. Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the `wp-content/plugins/` directory of your WordPress installation.
|
42 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
43 |
+
3. Go to Pages > Add New
|
44 |
+
4. Select the desired template from the Page Attributes section
|
45 |
+
4. Press the 'Edit with Elementor' button.
|
46 |
+
5. Now you can drag and drop widgets from the left panel onto the content area, as well as add new sections and columns that make up the page structure which will be render in a full width layout.
|
47 |
+
|
48 |
+
== Frequently Asked Questions ==
|
49 |
+
|
50 |
+
**With this plugin do I still need Elementor and a theme?**
|
51 |
+
|
52 |
+
Yes. This plugin acts as a helper or go between the Elementor Page builder and your current theme (including child themes) by facilitating the missing true full width templates.
|
53 |
+
|
54 |
+
**Will the templates work with any theme?**
|
55 |
+
Yes and No. The short answer is yes, you will be able to select the included templates. However, not all themes are supported in terms of the required styling and you may therefore need to add some custom css for your desired theme.
|
56 |
+
|
57 |
+
**Why a blank template?**
|
58 |
+
Ever wanted to build Landing pages, sales pages or display specific pages without the clutter and distruction of header items, sidebar widgets and footer items? Now you can.
|
59 |
+
|
60 |
+
== Screenshots ==
|
61 |
+
|
62 |
+
1. Fullwidth with Header and Footer
|
63 |
+
|
64 |
+
2. Fullwidth no Header no Footer
|
65 |
+
|
66 |
+
== Changelog ==
|
67 |
+
|
68 |
+
= 1.0.0 =
|
69 |
+
* Initial release.
|
templates/builder-fullwidth-std.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Template Name: Elementor Fullwidth Standard
|
4 |
+
*
|
5 |
+
* A template used to demonstrate how to include the template
|
6 |
+
* using this plugin.
|
7 |
+
*
|
8 |
+
* @package ET
|
9 |
+
* @since 1.0.0
|
10 |
+
* @version 1.0.0
|
11 |
+
*/
|
12 |
+
|
13 |
+
elementor_pagebuilder();
|
templates/builder-fullwidth.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Template Name: Elementor Fullwidth Blank
|
4 |
+
*
|
5 |
+
* The second template used to demonstrate how to include the template
|
6 |
+
* using this plugin.
|
7 |
+
*
|
8 |
+
* @package ET
|
9 |
+
* @since 1.0.0
|
10 |
+
* @version 1.0.0
|
11 |
+
*/
|
12 |
+
|
13 |
+
elementor_blankpb();
|