The Plus Addons for Elementor | FREE Elementor Widgets & Elementor Templates, Header Menu, Blog Post Builder, Dark Mode, Full-Page Scroll, Cross Domain Copy - Version 2.0.1

Version Description

  • Gravity Form Fields Improvements
  • Bug Fixes
Download this release

Release Info

Developer posimyththemes
Plugin Icon wp plugin The Plus Addons for Elementor | FREE Elementor Widgets & Elementor Templates, Header Menu, Blog Post Builder, Dark Mode, Full-Page Scroll, Cross Domain Copy
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

assets/js/admin/theplus-admin.js CHANGED
@@ -17,7 +17,7 @@
17
  if(performace_cont.length > 0){
18
 
19
  performace_cont.append('<div class="cmb-th"><label for="plus_smart_performance">Cache Manager</label></div>');
20
- performace_cont.append('<div class="cmb-td"><p class="cmb2-metabox-description">This is auto enabled functionality of The Plus Addons. In this functionality We use Unity method to combine all JS and CSS of page in two separate files for the best possible performance with less requests. All Cache stored at "SiteURL/wp-content/uploads/theplus-addons/".</p><a href="#" id="'+ids+'" class="tp-smart-cache-btn">Purge All Catch</a><div class="smart-performace-desc-btn">* Use above button to delete all cache our plugin have generated. It will start creating cache once some one start visiting your website.</div></div>');
21
 
22
  smart_action = "smart_perf_clear_cache";
23
  }
@@ -233,42 +233,7 @@
233
 
234
  $("#post_type_options").append('<div class="pt-plus-page-form"><div class="alert alert-warning"><strong>Important Notice :</strong><ul><li><b><a href="admin.php?page=theplus_purchase_code">Verify</a></b> your plugin and get access of all functionalities. Go to Verify section of settings to proceed further.</li></ul></div></div>');
235
  }
236
-
237
-
238
- //ajax get acf field on post id
239
- if($("#tp_preview_post_input").length){
240
- $("#tp_preview_post_input").focusout(function(){
241
-
242
- var tp_render_mode = $('[name="tp_render_mode_type"]').val();
243
- if(tp_render_mode != 'acf_repeater'){
244
- return;
245
- }
246
-
247
- var post_id = $("#tp_preview_post").val();
248
- jQuery.ajax({
249
- url: ajaxurl,
250
- dataType: 'json',
251
- data: {
252
- action: 'plus_acf_repeater_field',
253
- post_id: post_id,
254
- },
255
- success: function (res) {
256
 
257
- jQuery("#tp_acf_field_name").find('option').remove().end();
258
- if(res.data.length){
259
- jQuery.each(res.data, function(i, d) {
260
- jQuery("#tp_acf_field_name").append(jQuery("<option/>", {
261
- value: d.meta_id,
262
- text: d.text
263
- }));
264
- });
265
- }
266
- }
267
- });
268
- });
269
- }
270
-
271
-
272
  /*Welcome page FAQ*/
273
  $('.theplus-welcome-faq .theplus-faq-section .faq-title').click(function() {
274
  var $parent = $(this).closest('.theplus-faq-section');
17
  if(performace_cont.length > 0){
18
 
19
  performace_cont.append('<div class="cmb-th"><label for="plus_smart_performance">Cache Manager</label></div>');
20
+ performace_cont.append('<div class="cmb-td"><p class="cmb2-metabox-description">This is auto enabled functionality of The Plus Addons. In this functionality We use Unity method to combine all JS and CSS of page in two separate files for the best possible performance with less requests. All Cache stored at "SiteURL/wp-content/uploads/theplus-addons/".</p><a href="#" id="'+ids+'" class="tp-smart-cache-btn">Purge All Cache</a><div class="smart-performace-desc-btn">* Use above button to delete all cache our plugin have generated. It will start creating cache once some one start visiting your website.</div></div>');
21
 
22
  smart_action = "smart_perf_clear_cache";
23
  }
233
 
234
  $("#post_type_options").append('<div class="pt-plus-page-form"><div class="alert alert-warning"><strong>Important Notice :</strong><ul><li><b><a href="admin.php?page=theplus_purchase_code">Verify</a></b> your plugin and get access of all functionalities. Go to Verify section of settings to proceed further.</li></ul></div></div>');
235
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  /*Welcome page FAQ*/
238
  $('.theplus-welcome-faq .theplus-faq-section .faq-title').click(function() {
239
  var $parent = $(this).closest('.theplus-faq-section');
includes/theplus_options.php CHANGED
@@ -41,7 +41,13 @@ class L_Theplus_Elementor_Plugin_Options
41
  {
42
  // Set our title
43
  add_action( 'admin_enqueue_scripts', [ $this,'theplus_options_scripts'] );
44
- $this->title = esc_html__('ThePlus Settings', 'tpebl');
 
 
 
 
 
 
45
  require_once L_THEPLUS_INCLUDES_URL.'plus-options/cmb2-conditionals.php';
46
  // Set our CMB fields
47
  $this->fields = array(
@@ -1135,10 +1141,21 @@ class L_Theplus_Elementor_Plugin_Options
1135
  'admin_page_display'
1136
  ));
1137
  } else {
1138
- $this->options_pages[] = add_submenu_page($option_tabs[0]['id'], $this->title, $option_tab['title'], 'manage_options', $option_tab['id'], array(
1139
- $this,
1140
- 'admin_page_display'
1141
- ));
 
 
 
 
 
 
 
 
 
 
 
1142
  }
1143
  }
1144
  }
@@ -1158,6 +1175,10 @@ class L_Theplus_Elementor_Plugin_Options
1158
  $output .='<div class="'.$this->key.'">';
1159
  $output .='<div id="theplus-setting-header-wrapper">';
1160
  $output .='<div class="theplus-head-inner">';
 
 
 
 
1161
  $output .='<svg xmlns="http://www.w3.org/2000/svg" width="250" height="100" viewBox="0 0 976.33 265.397">
1162
  <g id="Group_4391" data-name="Group 4391" transform="translate(-310.19 -926.417)">
1163
  <g id="Group_4387" data-name="Group 4387">
@@ -1208,6 +1229,7 @@ class L_Theplus_Elementor_Plugin_Options
1208
  </g>
1209
  </g>
1210
  </svg>';
 
1211
 
1212
  $output .='<div class="theplus-panel-head-inner">';
1213
  $output .='<h2 class="theplus-head-setting-panel">'.esc_html__('Setting Panel','tpebl').'</h2>';
@@ -1299,14 +1321,23 @@ class L_Theplus_Elementor_Plugin_Options
1299
  </g>
1300
  </svg>';
1301
  }
1302
-
1303
- ?>
 
 
1304
  <a class="<?php echo $nav_class; ?>" href="<?php menu_page_url($tab_slug); ?>">
1305
  <span><?php echo $navicon; ?></span>
1306
  <span><?php echo esc_html($option_tab['title']); ?></span>
1307
  </a>
1308
 
1309
  <?php
 
 
 
 
 
 
 
1310
  endforeach;
1311
  $out = ob_get_clean();
1312
  $output .= $out;
@@ -1420,9 +1451,21 @@ class L_Theplus_Elementor_Plugin_Options
1420
  }
1421
  $output .='</div>';
1422
 
1423
- $output .='</div>';
1424
-
1425
  echo $output;
 
 
 
 
 
 
 
 
 
 
 
 
 
1426
  }
1427
 
1428
  /**
41
  {
42
  // Set our title
43
  add_action( 'admin_enqueue_scripts', [ $this,'theplus_options_scripts'] );
44
+ if(defined('THEPLUS_VERSION')){
45
+ $options = get_option( 'theplus_white_label' );
46
+ $this->title = (!empty($options['tp_plugin_name'])) ? $options['tp_plugin_name'] : 'ThePlus Settings';
47
+ }else{
48
+ $this->title = esc_html__('ThePlus Settings', 'tpebl');
49
+ }
50
+
51
  require_once L_THEPLUS_INCLUDES_URL.'plus-options/cmb2-conditionals.php';
52
  // Set our CMB fields
53
  $this->fields = array(
1141
  'admin_page_display'
1142
  ));
1143
  } else {
1144
+ if(isset($option_tabs) && $option_tab['id'] != "theplus_white_label" && $option_tab['id'] != "theplus_purchase_code"){
1145
+ $this->options_pages[] = add_submenu_page($option_tabs[0]['id'], $this->title, $option_tab['title'], 'manage_options', $option_tab['id'], array(
1146
+ $this,
1147
+ 'admin_page_display'
1148
+ ));
1149
+ }else{
1150
+ $label_options=get_option( 'theplus_white_label' );
1151
+ if( ((empty($label_options['tp_hidden_label']) || $label_options['tp_hidden_label']!='on') && ($option_tab['id'] == "theplus_white_label" || $option_tab['id'] == "theplus_purchase_code")) || !defined('THEPLUS_VERSION')){
1152
+ $this->options_pages[] = add_submenu_page($option_tabs[0]['id'], $this->title, $option_tab['title'], 'manage_options', $option_tab['id'], array(
1153
+ $this,
1154
+ 'admin_page_display'
1155
+ ));
1156
+ }
1157
+ }
1158
+
1159
  }
1160
  }
1161
  }
1175
  $output .='<div class="'.$this->key.'">';
1176
  $output .='<div id="theplus-setting-header-wrapper">';
1177
  $output .='<div class="theplus-head-inner">';
1178
+ $options = get_option( 'theplus_white_label' );
1179
+ if(defined('THEPLUS_VERSION') && (!empty($options['tp_plus_logo']))){
1180
+ $output .='<img src="'.$options['tp_plus_logo'].'" style="max-width:150px;"/>';
1181
+ }else{
1182
  $output .='<svg xmlns="http://www.w3.org/2000/svg" width="250" height="100" viewBox="0 0 976.33 265.397">
1183
  <g id="Group_4391" data-name="Group 4391" transform="translate(-310.19 -926.417)">
1184
  <g id="Group_4387" data-name="Group 4387">
1229
  </g>
1230
  </g>
1231
  </svg>';
1232
+ }
1233
 
1234
  $output .='<div class="theplus-panel-head-inner">';
1235
  $output .='<h2 class="theplus-head-setting-panel">'.esc_html__('Setting Panel','tpebl').'</h2>';
1321
  </g>
1322
  </svg>';
1323
  }
1324
+
1325
+ $label_options=get_option( 'theplus_white_label' );
1326
+ if( (empty($label_options['tp_hidden_label']) || $label_options['tp_hidden_label']!='on') && ($tab_slug == "theplus_white_label" || $tab_slug == "theplus_purchase_code")){
1327
+ ?>
1328
  <a class="<?php echo $nav_class; ?>" href="<?php menu_page_url($tab_slug); ?>">
1329
  <span><?php echo $navicon; ?></span>
1330
  <span><?php echo esc_html($option_tab['title']); ?></span>
1331
  </a>
1332
 
1333
  <?php
1334
+ }else if(($tab_slug != "theplus_white_label" && $tab_slug != "theplus_purchase_code") || !defined('THEPLUS_VERSION')){
1335
+ ?>
1336
+ <a class="<?php echo $nav_class; ?>" href="<?php menu_page_url($tab_slug); ?>">
1337
+ <span><?php echo $navicon; ?></span>
1338
+ <span><?php echo esc_html($option_tab['title']); ?></span>
1339
+ </a>
1340
+ <?php }
1341
  endforeach;
1342
  $out = ob_get_clean();
1343
  $output .= $out;
1451
  }
1452
  $output .='</div>';
1453
 
1454
+ $output .='</div>';
 
1455
  echo $output;
1456
+
1457
+ if(defined('THEPLUS_VERSION')){
1458
+ $current_screen = get_current_screen();
1459
+ $hidden_label = theplus_white_label_option('tp_hidden_label');
1460
+ if( !empty($hidden_label) && $hidden_label=='on' ){
1461
+ if( is_admin() && !empty($current_screen) && ($current_screen->id === "theplus-settings_page_theplus_white_label" || $current_screen->id === "theplus-settings_page_theplus_purchase_code")) {
1462
+ wp_redirect( admin_url( 'admin.php?page=theplus_options' ) );
1463
+ exit;
1464
+ }
1465
+ echo '<style>#theplus_white_label{display:none;}</style>';
1466
+ }
1467
+ }
1468
+
1469
  }
1470
 
1471
  /**
includes/welcome-page.php CHANGED
@@ -91,7 +91,7 @@ echo '<div class="theplus-panel-welcome-page">';
91
  echo '<div class="theplus-sec-subtitle">'.esc_html__('Stay tuned at this place, As we are working day & night for new Elementor widgets, features, design layouts and compatibilities with whole WordPress Ecosystem.','tpebl').'</div>';
92
  echo '<div class="theplus-sec-border"></div>';
93
  echo '<div class="theplus-changelog-list">';
94
- echo '<div class="changelog-date">OCT 05,2020 <span class="changelog-version">2.0.0</span></div>';
95
  echo '<ul class="changelog-list">';
96
  echo '<li>'.esc_html__('Revamped whole structure','tpebl').'</li>';
97
  echo '<li>'.esc_html__('New Admin Panel UI','tpebl').'</li>';
@@ -102,7 +102,24 @@ echo '<div class="theplus-panel-welcome-page">';
102
  echo '<li>'.esc_html__('Bug Fixes','tpebl').'</li>';
103
  echo '</ul>';
104
  echo '</div>';
105
- echo '<a href="https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/#developers " class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Full Change log','tpebl').'</a>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  echo '</div>';
107
  /*Welcome Change log*/
108
  /*Welcome FAQ*/
91
  echo '<div class="theplus-sec-subtitle">'.esc_html__('Stay tuned at this place, As we are working day & night for new Elementor widgets, features, design layouts and compatibilities with whole WordPress Ecosystem.','tpebl').'</div>';
92
  echo '<div class="theplus-sec-border"></div>';
93
  echo '<div class="theplus-changelog-list">';
94
+ echo '<div class="changelog-date">OCT 05,2020 <span class="changelog-version">Lite Version 2.0.0</span></div>';
95
  echo '<ul class="changelog-list">';
96
  echo '<li>'.esc_html__('Revamped whole structure','tpebl').'</li>';
97
  echo '<li>'.esc_html__('New Admin Panel UI','tpebl').'</li>';
102
  echo '<li>'.esc_html__('Bug Fixes','tpebl').'</li>';
103
  echo '</ul>';
104
  echo '</div>';
105
+ echo '<a href="https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/#developers" class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Lite Full Change log','tpebl').'</a>';
106
+
107
+
108
+ echo '<div class="theplus-sec-border" style="width:100%;height:1px;background:#DBDBDB;"></div>';
109
+ echo '<div class="theplus-changelog-list">';
110
+ echo '<div class="changelog-date">OCT 13,2020 <span class="changelog-version">Pro Version 4.1.0</span></div>';
111
+ echo '<ul class="changelog-list">';
112
+ echo '<li>'.esc_html__('Major Update : We have added dependency of The Plus Addons for Elementor Free version from this version. That means, You need to install our Free version as well to run Pro Version, Just like Elementor Page Builder. Remove Cache from Dashboard -> The Plus Settings -> Performance -> Purge all Cache.','tpebl').'</li>';
113
+ echo '<li>'.esc_html__('The Plus Addons for Elementor Free Version Dependency','tpebl').'</li>';
114
+ echo '<li>'.esc_html__('Mailchimp Widget : Group & Tag options','tpebl').'</li>';
115
+ echo '<li>'.esc_html__('Dynamic Listing : Boolean Condition for ACF repeater','tpebl').'</li>';
116
+ echo '<li>'.esc_html__('Team Member : 5 Column option for Desktop','tpebl').'</li>';
117
+ echo '<li>'.esc_html__('Product Listing : Out Of Stock Text Field','tpebl').'</li>';
118
+ echo '</ul>';
119
+ echo '</div>';
120
+ echo '<a href="https://theplusaddons.com/elementor/changelog/" class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Pro Full Change log','tpebl').'</a>';
121
+
122
+
123
  echo '</div>';
124
  /*Welcome Change log*/
125
  /*Welcome FAQ*/
modules/theplus-include-widgets.php CHANGED
@@ -44,7 +44,10 @@ if ( ! class_exists( 'L_Theplus_Widgets_Include' ) ) {
44
  if(!defined('THEPLUS_VERSION')){
45
  $this->init();
46
  l_theplus_wpml_translate();
47
- }
 
 
 
48
  }
49
  /**
50
  * Initalize integration hooks
@@ -53,8 +56,30 @@ if ( ! class_exists( 'L_Theplus_Widgets_Include' ) ) {
53
  */
54
  public function init() {
55
  add_action( 'elementor/widgets/widgets_registered', array($this, 'add_widgets' ) );
 
56
  }
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  /**
59
  * Widget Include required files
60
  *
44
  if(!defined('THEPLUS_VERSION')){
45
  $this->init();
46
  l_theplus_wpml_translate();
47
+ }
48
+ if(defined('THEPLUS_VERSION')){
49
+ add_filter( 'all_plugins',array($this,'tp_white_label_update_free') );
50
+ }
51
  }
52
  /**
53
  * Initalize integration hooks
56
  */
57
  public function init() {
58
  add_action( 'elementor/widgets/widgets_registered', array($this, 'add_widgets' ) );
59
+
60
  }
61
 
62
+ /*
63
+ * White label
64
+ * @since 3.0
65
+ */
66
+ public function tp_white_label_update_free( $all_plugins ){
67
+ $plugin_name =theplus_white_label_option('l_tp_plugin_name');
68
+ $tp_plugin_desc =theplus_white_label_option('l_tp_plugin_desc');
69
+ $tp_author_name =theplus_white_label_option('l_tp_author_name');
70
+ $tp_author_uri =theplus_white_label_option('l_tp_author_uri');
71
+ if(!empty($all_plugins[L_THEPLUS_PBNAME]) && is_array($all_plugins[L_THEPLUS_PBNAME])){
72
+ $all_plugins[L_THEPLUS_PBNAME]['Name'] = ! empty( $plugin_name ) ? $plugin_name : $all_plugins[L_THEPLUS_PBNAME]['Name'];
73
+ $all_plugins[L_THEPLUS_PBNAME]['PluginURI'] = ! empty( $tp_author_uri ) ? $tp_author_uri : $all_plugins[L_THEPLUS_PBNAME]['PluginURI'];
74
+ $all_plugins[L_THEPLUS_PBNAME]['Description'] = ! empty( $tp_plugin_desc ) ? $tp_plugin_desc : $all_plugins[L_THEPLUS_PBNAME]['Description'];
75
+ $all_plugins[L_THEPLUS_PBNAME]['Author'] = ! empty( $tp_author_name ) ? $tp_author_name : $all_plugins[L_THEPLUS_PBNAME]['Author'];
76
+ $all_plugins[L_THEPLUS_PBNAME]['AuthorURI'] = ! empty( $tp_author_uri ) ? $tp_author_uri : $all_plugins[L_THEPLUS_PBNAME]['AuthorURI'];
77
+ $all_plugins[L_THEPLUS_PBNAME]['Title'] = ! empty( $plugin_name ) ? $plugin_name : $all_plugins[L_THEPLUS_PBNAME]['Title'];
78
+ $all_plugins[L_THEPLUS_PBNAME]['AuthorName'] = ! empty( $tp_author_name ) ? $tp_author_name : $all_plugins[L_THEPLUS_PBNAME]['AuthorName'];
79
+
80
+ return $all_plugins;
81
+ }
82
+ }
83
  /**
84
  * Widget Include required files
85
  *
modules/widgets/tp_gravity_form.php CHANGED
@@ -320,6 +320,17 @@ class L_ThePlus_Gravity_Form extends Widget_Base {
320
  ],
321
  ]
322
  );
 
 
 
 
 
 
 
 
 
 
 
323
  $this->add_control(
324
  'sub_label_color',
325
  [
320
  ],
321
  ]
322
  );
323
+ $this->add_group_control(
324
+ Group_Control_Typography::get_type(),
325
+ [
326
+ 'name' => 'sub_label_desc_typography',
327
+ 'selector' => '{{WRAPPER}} .pt_plus_gravity_form .gform_wrapper .gfield_description,
328
+ {{WRAPPER}} .pt_plus_gravity_form .gform_wrapper span.gf_step_number,
329
+ {{WRAPPER}} .pt_plus_gravity_form .gform_wrapper .gsection_description,
330
+ {{WRAPPER}} .pt_plus_gravity_form .gform_wrapper span.ginput_product_price_label,
331
+ {{WRAPPER}} .pt_plus_gravity_form .gform_wrapper span.ginput_quantity_label',
332
+ ]
333
+ );
334
  $this->add_control(
335
  'sub_label_color',
336
  [
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === The Plus Addons for Elementor Page Builder Lite ===
2
- Contributors: posimyththemes, sagarpatel124, nirmalkavaiya
3
  Donate link: https://theplusaddons.com/elementor/pricing/
4
  Tags: elementor, elementor addons, elementor widgets, the plus addons for elementor, the plus widgets elementor, free elementor addons, elementor pro addons, elementor widget pack, ultimate addons for elementor, popular addons for elementor, powerful addons for elementor, best addons for elementor
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
- Stable tag: 2.0.0
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://opensource.org/licenses/GPL-3.0
@@ -222,6 +222,10 @@ We have most advanced caching architecture, Which will never bloat your site. Kn
222
 
223
 
224
  == Changelog ==
 
 
 
 
225
 
226
  = 2.0.0 =
227
  - Revamped whole structure
1
  === The Plus Addons for Elementor Page Builder Lite ===
2
+ Contributors: posimyththemes, ankitposimyth, nirmalkavaiya, sagarpatel124
3
  Donate link: https://theplusaddons.com/elementor/pricing/
4
  Tags: elementor, elementor addons, elementor widgets, the plus addons for elementor, the plus widgets elementor, free elementor addons, elementor pro addons, elementor widget pack, ultimate addons for elementor, popular addons for elementor, powerful addons for elementor, best addons for elementor
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
+ Stable tag: 2.0.1
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://opensource.org/licenses/GPL-3.0
222
 
223
 
224
  == Changelog ==
225
+
226
+ = 2.0.1 =
227
+ - Gravity Form Fields Improvements
228
+ - Bug Fixes
229
 
230
  = 2.0.0 =
231
  - Revamped whole structure
theplus_elementor_addon.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: The Plus Addons for Elementor Page Builder Lite
4
  * Plugin URI: https://theplusaddons.com/elementor/
5
  * Description: Biggest collection of Widgets & Features to supercharge your Elementor Page builder in WordPress.
6
- * Version: 2.0.0
7
  * Author: POSIMYTH
8
  * Author URI: https://theplusaddons.com/elementor/
9
  * Text Domain: tpebl
@@ -13,7 +13,7 @@
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
  }
16
- defined( 'L_THEPLUS_VERSION' ) or define( 'L_THEPLUS_VERSION', '2.0.0' );
17
  define( 'L_THEPLUS_FILE__', __FILE__ );
18
 
19
  define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
3
  * Plugin Name: The Plus Addons for Elementor Page Builder Lite
4
  * Plugin URI: https://theplusaddons.com/elementor/
5
  * Description: Biggest collection of Widgets & Features to supercharge your Elementor Page builder in WordPress.
6
+ * Version: 2.0.1
7
  * Author: POSIMYTH
8
  * Author URI: https://theplusaddons.com/elementor/
9
  * Text Domain: tpebl
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
  }
16
+ defined( 'L_THEPLUS_VERSION' ) or define( 'L_THEPLUS_VERSION', '2.0.1' );
17
  define( 'L_THEPLUS_FILE__', __FILE__ );
18
 
19
  define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
widgets_loader.php CHANGED
@@ -209,24 +209,6 @@ final class L_Theplus_Element_Load {
209
 
210
  }
211
 
212
- public function theplus_load_template( $single_template ) {
213
-
214
- global $post;
215
-
216
- if ( 'plus-mega-menu' == $post->post_type) {
217
-
218
- $elementor_2_0_canvas = ELEMENTOR_PATH . '/modules/page-templates/templates/canvas.php';
219
-
220
- if ( file_exists( $elementor_2_0_canvas ) ) {
221
- return $elementor_2_0_canvas;
222
- } else {
223
- return ELEMENTOR_PATH . '/includes/page-templates/canvas.php';
224
- }
225
- }
226
-
227
- return $single_template;
228
- }
229
-
230
  function theplus_settings_links ( $links ) {
231
  $setting_link = array(
232
  '<a href="' . admin_url( 'admin.php?page=theplus_options' ) . '">'.esc_html__("Settings","tpebl").'</a>',
@@ -250,15 +232,10 @@ final class L_Theplus_Element_Load {
250
  // Include some backend files
251
  add_action( 'admin_enqueue_scripts', [ $this,'theplus_elementor_admin_css'] );
252
  add_filter( 'plugin_action_links_' . L_THEPLUS_PBNAME ,[ $this, 'theplus_settings_links'] );
253
- add_filter( 'single_template', [ $this, 'theplus_load_template' ] );
254
 
255
 
256
- }
257
 
258
- public static function nav_item_load() {
259
- add_filter( 'wp_edit_nav_menu_walker', array( __CLASS__, 'plus_filter_walker' ), 99 );
260
- }
261
-
262
  /**
263
  * ThePlus_Load constructor.
264
  */
209
 
210
  }
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  function theplus_settings_links ( $links ) {
213
  $setting_link = array(
214
  '<a href="' . admin_url( 'admin.php?page=theplus_options' ) . '">'.esc_html__("Settings","tpebl").'</a>',
232
  // Include some backend files
233
  add_action( 'admin_enqueue_scripts', [ $this,'theplus_elementor_admin_css'] );
234
  add_filter( 'plugin_action_links_' . L_THEPLUS_PBNAME ,[ $this, 'theplus_settings_links'] );
 
235
 
236
 
237
+ }
238
 
 
 
 
 
239
  /**
240
  * ThePlus_Load constructor.
241
  */