Page Templater For Elementor - Version 1.0.8

Version Description

  • Fixed issue with template loading for WordPress 4.7 due to functional changes to accomodate the new template for post types.
  • Added support for the Enlightenmen theme.
  • Fixed: Appearance of site boder caused by .site {margin:21px} in TwentySixteen theme after updating to Elementor 0.11.1 Topic: 8450675
  • Wrapped custom post type function with a conditional check on WP version due to the upcoming post type template support - support to be deprecated!
Download this release

Release Info

Developer WPDevHQ
Plugin Icon wp plugin Page Templater For Elementor
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

elementemplater-class.php CHANGED
@@ -18,7 +18,7 @@ class ElemenTemplater {
18
  public static function get_instance() {
19
 
20
  if( null == self::$instance ) {
21
- self::$instance = new ElemenTemplater();
22
  }
23
 
24
  return self::$instance;
@@ -43,10 +43,16 @@ class ElemenTemplater {
43
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 9999 );
44
 
45
  // Add a filter to the attributes metabox to inject template into the cache.
46
- add_filter(
47
- 'page_attributes_dropdown_pages_args',
48
- array( $this, 'register_project_templates' )
49
- );
 
 
 
 
 
 
50
 
51
  // Add a filter to the save post to inject out template into the page cache
52
  add_filter(
@@ -63,11 +69,20 @@ class ElemenTemplater {
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
  * Adds our template to the pages cache in order to trick WordPress
18
  public static function get_instance() {
19
 
20
  if( null == self::$instance ) {
21
+ self::$instance = new ElemenTemplater();
22
  }
23
 
24
  return self::$instance;
43
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 9999 );
44
 
45
  // Add a filter to the attributes metabox to inject template into the cache.
46
+ if ( version_compare( floatval($GLOBALS['wp_version']), '4.7', '<' ) ) { // 4.6.1 and older
47
+ add_filter(
48
+ 'page_attributes_dropdown_pages_args',
49
+ array( $this, 'register_project_templates' )
50
+ );
51
+ } else { // Add a filter to the wp 4.7 version attributes metabox
52
+ add_filter(
53
+ 'theme_page_templates', array( $this, 'add_new_template' )
54
+ );
55
+ }
56
 
57
  // Add a filter to the save post to inject out template into the page cache
58
  add_filter(
69
  );
70
 
71
  // Add your templates to this array.
72
+ $this->templates = array(
73
  'templates/builder-fullwidth.php' => __( 'Elementor Fullwidth Blank', 'elementemplater' ),
74
  'templates/builder-fullwidth-std.php' => __( 'Elementor Fullwidth Standard', 'elementemplater' ),
75
  );
76
  }
77
+
78
+ /**
79
+ * Adds our template to the page dropdown for v4.7+
80
+ *
81
+ */
82
+ public function add_new_template( $posts_templates ) {
83
+ $posts_templates = array_merge( $posts_templates, $this->templates );
84
+ return $posts_templates;
85
+ }
86
 
87
  /**
88
  * Adds our template to the pages cache in order to trick WordPress
elementemplator.php CHANGED
@@ -3,11 +3,11 @@
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.
6
- * Version: 1.0.7
7
  * Author: WPDevHQ
8
  * Author URI: http://www.wpdevhq.com/
9
  * Requires at least: 4.4
10
- * Tested up to: 4.6.1
11
  */
12
 
13
  /* Do not access this file directly */
@@ -29,7 +29,9 @@ define( 'ET_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
29
  require_once( ET_PATH . 'elementemplater-class.php' );
30
 
31
  /* Custom Post Template Class */
32
- require_once( ET_PATH . 'custom-posttype-class.php' );
 
 
33
 
34
  /* Template Functions */
35
  require_once( ET_PATH . 'inc/elementemplater-functions.php' );
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.
6
+ * Version: 1.0.8
7
  * Author: WPDevHQ
8
  * Author URI: http://www.wpdevhq.com/
9
  * Requires at least: 4.4
10
+ * Tested up to: 4.7-beta-4
11
  */
12
 
13
  /* Do not access this file directly */
29
  require_once( ET_PATH . 'elementemplater-class.php' );
30
 
31
  /* Custom Post Template Class */
32
+ if ( version_compare( floatval($GLOBALS['wp_version']), '4.7', '<' ) ) { // 4.6.1 and older
33
+ require_once( ET_PATH . 'custom-posttype-class.php' );
34
+ }
35
 
36
  /* Template Functions */
37
  require_once( ET_PATH . 'inc/elementemplater-functions.php' );
inc/themes/enlightenment.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Support for the Actions theme */
3
+ $style = '
4
+ .elementor-body .site {
5
+ overflow-x: visible;
6
+ }
7
+ .elementor-body .navbar-fixed-top {
8
+ z-index: 1;
9
+ }
10
+ ';
11
+ wp_add_inline_style( 'elementor-frontend', $style );
inc/themes/twentysixteen.php CHANGED
@@ -5,6 +5,9 @@
5
  body.page-template-builder-fullwidth-std.elementor-page {
6
  background: transparent;
7
  }
 
 
 
8
  .page-template-builder-fullwidth .elementor-page,
9
  .page-template-builder-fullwidth-std .elementor-page {
10
  overflow: hidden;
5
  body.page-template-builder-fullwidth-std.elementor-page {
6
  background: transparent;
7
  }
8
+ .page-template-builder-fullwidth-std .site {
9
+ margin: 0;
10
+ }
11
  .page-template-builder-fullwidth .elementor-page,
12
  .page-template-builder-fullwidth-std .elementor-page {
13
  overflow: hidden;
readme.txt CHANGED
@@ -2,8 +2,8 @@
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.4
5
- Tested up to: 4.6.1
6
- Stable tag: 1.0.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -34,7 +34,8 @@ The following themes are currently supported out of the box - if your desired th
34
  * [TwentySixteen](https://wordpress.org/themes/twentysixteen/) - by WordPress.org
35
  * [TwentyThirteen](https://wordpress.org/themes/twentythirteen/) - by WordPress.org
36
  * [Vantage](https://wordpress.org/themes/vantage/) - by Greg Priday
37
- * [Virtue](https://wordpress.org/themes/virtue/) - by Kadence Themes
 
38
 
39
  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.
40
 
@@ -87,6 +88,12 @@ Please visit the settings page located at Dasboard >> Settings >> Post Type Temp
87
  2. Fullwidth no Header no Footer
88
 
89
  == Changelog ==
 
 
 
 
 
 
90
  = 1.0.7 =
91
  * Further CSS enhancement for TwentySixteen - resolve the issue with top/bottom baground showing through on both templates
92
 
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.4
5
+ Tested up to: 4.7-beta-4
6
+ Stable tag: 1.0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
34
  * [TwentySixteen](https://wordpress.org/themes/twentysixteen/) - by WordPress.org
35
  * [TwentyThirteen](https://wordpress.org/themes/twentythirteen/) - by WordPress.org
36
  * [Vantage](https://wordpress.org/themes/vantage/) - by Greg Priday
37
+ * [Virtue](https://wordpress.org/themes/virtue/) - by Kadence Themes
38
+ * [Enlightenmen](https://wordpress.org/themes/enlightenment/) - by Daniel Tara
39
 
40
  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.
41
 
88
  2. Fullwidth no Header no Footer
89
 
90
  == Changelog ==
91
+ = 1.0.8 =
92
+ * Fixed issue with template loading for WordPress 4.7 due to functional changes to accomodate the new template for post types.
93
+ * Added support for the Enlightenmen theme.
94
+ * Fixed: Appearance of site boder caused by .site {margin:21px} in TwentySixteen theme after updating to Elementor 0.11.1 [Topic: 8450675](https://wordpress.org/support/topic/elementor-fullwidth-standard-padding-errer/)
95
+ * Wrapped custom post type function with a conditional check on WP version due to the upcoming post type template support - support to be deprecated!
96
+
97
  = 1.0.7 =
98
  * Further CSS enhancement for TwentySixteen - resolve the issue with top/bottom baground showing through on both templates
99
 
templates/builder-fullwidth-std.php CHANGED
@@ -1,6 +1,7 @@
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.
1
  <?php
2
  /**
3
  * Template Name: Elementor Fullwidth Standard
4
+ * Template Post Type: page
5
  *
6
  * A template used to demonstrate how to include the template
7
  * using this plugin.
templates/builder-fullwidth.php CHANGED
@@ -1,6 +1,7 @@
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.
1
  <?php
2
  /**
3
  * Template Name: Elementor Fullwidth Blank
4
+ * Template Post Type: page
5
  *
6
  * The second template used to demonstrate how to include the template
7
  * using this plugin.
templates/sample-post-templates/fullwidth-single.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  /**
3
  * Post Template Name: Post Fullwidth Blank
 
4
  *
5
  * The second template used to demonstrate how to include the template
6
  * using this plugin.
1
  <?php
2
  /**
3
  * Post Template Name: Post Fullwidth Blank
4
+ * Template Post Type: post
5
  *
6
  * The second template used to demonstrate how to include the template
7
  * using this plugin.
templates/sample-post-templates/fullwidth-std-single.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  /**
3
  * Post Template Name: Post Fullwidth Standard
 
4
  *
5
  * A template used to demonstrate how to include the template
6
  * using this plugin.
1
  <?php
2
  /**
3
  * Post Template Name: Post Fullwidth Standard
4
+ * Template Post Type: post
5
  *
6
  * A template used to demonstrate how to include the template
7
  * using this plugin.