PluginProbe
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.3
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.3
4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 All 183 releases
elementskit-lite / widgets / widget-notice.php
widget-notice.php
47 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ElementsKit_Lite\Widgets;
3 defined( 'ABSPATH' ) || exit;
4
5 trait Widget_Notice{
6 /**
7 * Adding Go Premium message to all widgets
8 *
9 * @since 1.4.2
10 */
11 public function insert_pro_message()
12 {
13 if(\ElementsKit_Lite::package_type() != 'pro'){
14 $this->start_controls_section(
15 'ekit_section_pro',
16 [
17 'label' => __('Go Premium for More Features', 'elementskit-lite'),
18 ]
19 );
20
21 $this->add_control(
22 'ekit_control_get_pro',
23 [
24 'label' => __('Unlock more possibilities', 'elementskit-lite'),
25 'type' => \Elementor\Controls_Manager::CHOOSE,
26 'options' => [
27 '1' => [
28 'title' => '',
29 'icon' => 'fa fa-unlock-alt',
30 ],
31 ],
32 'default' => '1',
33 'toggle' => false,
34 'description' => '<span class="ekit-widget-pro-feature">' . sprintf(
35 /* translators: 1: opening <a> tag, 2: closing </a> tag */
36 esc_html__( 'Get the %1$s Pro version %2$s for more awesome elements and powerful modules.', 'elementskit-lite' ),
37 '<a href="' . esc_url( 'https://wpmet.com/elementskit-pricing' ) . '" target="_blank" rel="noopener noreferrer">',
38 '</a>'
39 ) . '</span>',
40 ]
41 );
42
43 $this->end_controls_section();
44 }
45 }
46 }
47