PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | elementor-extensions/class-hider-addons.php +34 -2 1.1.0 → 1.5.9 View file →
@@ -41,8 +41,12 @@
41 41 'element' => 'section',
42 42 'action' => 'section_advanced',
43 43 ),
44 44 array(
45 + 'element' => 'container',
46 + 'action' => 'section_layout',
47 + ),
48 + array(
45 49 'element' => 'column',
46 50 'action' => 'section_advanced',
47 51 ),
48 52 );
@@ -68,9 +72,9 @@
68 72 'is_activated_slug' => 'run_sweet_energy_efficiency',
69 73 );
70 74
71 75 $this->addons [] = array(
72 - 'title' => __('Multy Currency', 'wpdirectorykit'),
76 + 'title' => __('Multi Currency', 'wpdirectorykit'),
73 77 'slug' => 'wdk_currency_conversion',
74 78 'is_activated_slug' => 'run_wdk_currency_conversion',
75 79 );
76 80
@@ -151,8 +155,20 @@
151 155 'slug' => 'wdk_save_search',
152 156 'is_activated_slug' => 'run_wdk_save_search',
153 157 );
154 158
159 + $this->addons [] = array(
160 + 'title' => __('WDK Claim / Take Ownership', 'wpdirectorykit'),
161 + 'slug' => 'wdk_listing_claim',
162 + 'is_activated_slug' => 'run_wdk_listing_claim',
163 + );
164 +
165 + $this->addons [] = array(
166 + 'title' => __('WDK PDF Download', 'wpdirectorykit'),
167 + 'slug' => 'wdk_pdf_export',
168 + 'is_activated_slug' => 'run_wdk_pdf_export',
169 + );
170 +
155 171 $this->init();
156 172 }
157 173
158 174 public function init( $param = null ) {
@@ -272,9 +288,13 @@
272 288
273 289 // SECTION
274 290 add_action( 'elementor/frontend/section/before_render', [ $this, '_start_element' ], 10, 1 );
275 291 add_action( 'elementor/frontend/section/after_render', [ $this, '_end_element' ], 10, 1 );
276 -
292 +
293 + // CONTAINER
294 + add_action( 'elementor/frontend/container/before_render', [ $this, '_start_element' ], 10, 1 );
295 + add_action( 'elementor/frontend/container/after_render', [ $this, '_end_element' ], 10, 1 );
296 +
277 297 // COLUMN
278 298 add_action( 'elementor/frontend/column/before_render', [ $this, '_start_element' ], 10, 1 );
279 299 add_action( 'elementor/frontend/column/after_render', [ $this, '_end_element' ], 10, 1 );
280 300
@@ -306,8 +326,20 @@
306 326 'label' => '<span class="color-wdk icon icon-dyn-logo-wdk pull-right ml-1"></span> ' . $this->name,
307 327 'tab' => 'advanced',
308 328 ]
309 329 );
330 +
331 +
332 + $element->add_control(
333 + 'class_hider_addons_important_note',
334 + [
335 + 'label' => '',
336 + 'type' => \Elementor\Controls_Manager::RAW_HTML,
337 + 'raw' => esc_html__('Element will be hidden when addon not installed/activated', 'wpdirectorykit'),
338 + 'content_classes' => 'wdk_elementor_hint',
339 + 'separator' => 'after',
340 + ]
341 + );
310 342
311 343 foreach($this->addons as $addon) {
312 344 $element->add_control(
313 345 'wdk_addon_hide_'.wmvc_show_data('slug', $addon, '', TRUE, TRUE),