PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.49
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.49
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
king-addons / includes / widgets / Wishlist_Icon / Wishlist_Icon.php

Wishlist_Icon.php in King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder 51.1.49, at includes/widgets/Wishlist_Icon/Wishlist_Icon.php

96 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Wishlist Icon (Pro placeholder).
4 *
5 * @package King_Addons
6 */
7
8 namespace King_Addons;
9
10 use Elementor\Controls_Manager;
11 use Elementor\Widget_Base;
12
13 if (!defined('ABSPATH')) {
14 exit;
15 }
16
17 /**
18 * Placeholder widget promoting Pro wishlist icon.
19 */
20 class Wishlist_Icon extends Widget_Base
21 {
22 /**
23 * Widget slug.
24 *
25 * @return string Widget name.
26 */
27 public function get_name(): string
28 {
29 return 'king-addons-wishlist-icon';
30 }
31
32 /**
33 * Widget title.
34 *
35 * @return string Widget title.
36 */
37 public function get_title(): string
38 {
39 return esc_html__('Wishlist Icon', 'king-addons');
40 }
41
42 /**
43 * Widget icon.
44 *
45 * @return string Icon class.
46 */
47 public function get_icon(): string
48 {
49 return 'king-addons-icon king-addons-wishlist-icon';
50 }
51
52 /**
53 * Widget categories.
54 *
55 * @return array<int, string> Categories.
56 */
57 public function get_categories(): array
58 {
59 return ['king-addons', 'king-addons-woo-builder'];
60 }
61
62 /**
63 * Register controls.
64 *
65 * @return void
66 */
67 protected function register_controls(): void
68 {
69 Core::renderProFeaturesSection(
70 $this,
71 Controls_Manager::TAB_CONTENT,
72 Controls_Manager::RAW_HTML,
73 'wishlist-icon',
74 [
75 esc_html__('Floating wishlist icon with badge', 'king-addons'),
76 esc_html__('Mini dropdown with recent items', 'king-addons'),
77 esc_html__('Hover or click triggers', 'king-addons'),
78 esc_html__('Device and position rules', 'king-addons'),
79 ]
80 );
81 }
82
83 /**
84 * Render placeholder output.
85 *
86 * @return void
87 */
88 protected function render(): void
89 {
90 echo '<div class="king-addons-pro-placeholder">' . esc_html__('Available in King Addons Pro.', 'king-addons') . '</div>';
91 }
92 }
93
94
95
96