| @@ -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 | |
| @@ -284,9 +288,13 @@ | ||
| 284 | 288 | |
| 285 | 289 | // SECTION |
| 286 | 290 | add_action( 'elementor/frontend/section/before_render', [ $this, '_start_element' ], 10, 1 ); |
| 287 | 291 | add_action( 'elementor/frontend/section/after_render', [ $this, '_end_element' ], 10, 1 ); |
| 288 | - | |
| 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 | + | |
| 289 | 297 | // COLUMN |
| 290 | 298 | add_action( 'elementor/frontend/column/before_render', [ $this, '_start_element' ], 10, 1 ); |
| 291 | 299 | add_action( 'elementor/frontend/column/after_render', [ $this, '_end_element' ], 10, 1 ); |
| 292 | 300 | |
| @@ -318,8 +326,20 @@ | ||
| 318 | 326 | 'label' => '<span class="color-wdk icon icon-dyn-logo-wdk pull-right ml-1"></span> ' . $this->name, |
| 319 | 327 | 'tab' => 'advanced', |
| 320 | 328 | ] |
| 321 | 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 | + ); | |
| 322 | 342 | |
| 323 | 343 | foreach($this->addons as $addon) { |
| 324 | 344 | $element->add_control( |
| 325 | 345 | 'wdk_addon_hide_'.wmvc_show_data('slug', $addon, '', TRUE, TRUE), |