-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathelementemplator.php
37 lines (29 loc) · 1.24 KB
/
elementemplator.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
<?php
/*
* Plugin Name: Page Templater For Elementor
* Plugin URI: https://wpdevhq.com/plugins/page-templater-for-elementor
* Description: A helper plugin for users of Elementor Pagebuilder. Adds 2 new templates for complete full width experience while using the page builder - support for a number of popular themes is built-in.
* Version: 1.1.3
* Author: WPDevHQ
* Author URI: https://wpdevhq.com/
* Requires at least: 4.4
* Tested up to: 4.8.1
*/
/* Do not access this file directly */
if ( ! defined( 'WPINC' ) ) { die; }
/* Constants
------------------------------------------ */
/* Set plugin version constant. */
define( 'ET_VERSION', '1.1.0' );
/* Set constant path to the plugin directory. */
define( 'ET_PATH', trailingslashit( plugin_dir_path(__FILE__) ) );
/* Set the constant path to the plugin directory URI. */
define( 'ET_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
/* ElemenTemplater Class */
require_once( ET_PATH . 'elementemplater-class.php' );
/* Custom Post Template Class */
if ( version_compare( floatval($GLOBALS['wp_version']), '4.7', '<' ) ) { // 4.6.1 and older
require_once( ET_PATH . 'custom-posttype-class.php' );
}
/* Template Functions */
require_once( ET_PATH . 'inc/elementemplater-functions.php' );