PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.83
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.83
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 51.1.46 All 39 releases
king-addons / includes / widgets / Wishlist_Share_Buttons / Wishlist_Share_Buttons.php

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

101 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Wishlist Share Buttons (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 for Pro wishlist share buttons widget.
19 */
20 class Wishlist_Share_Buttons 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-share-buttons';
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 Share Buttons', '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-share-buttons';
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-woo'];
60 }
61
62 /**
63 * Register controls.
64 *
65 * @return void
66 */
67 public function get_custom_help_url()
68 {
69 return 'mailto:bug@kingaddons.com?subject=Bug Report - King Addons&body=Please describe the issue';
70 }
71
72 protected function register_controls(): void
73 {
74 Core::renderProFeaturesSection(
75 $this,
76 Controls_Manager::TAB_CONTENT,
77 Controls_Manager::RAW_HTML,
78 'wishlist-share-buttons',
79 [
80 esc_html__('Share wishlist via Telegram, WhatsApp, email', 'king-addons'),
81 esc_html__('Copy link with visibility rules', 'king-addons'),
82 esc_html__('Custom label, icons, and alignment', 'king-addons'),
83 esc_html__('Button skins and hover states', 'king-addons'),
84 ]
85 );
86 }
87
88 /**
89 * Render placeholder output.
90 *
91 * @return void
92 */
93 protected function render(): void
94 {
95 echo '<div class="king-addons-pro-placeholder">' . esc_html__('Available in King Addons Pro.', 'king-addons') . '</div>';
96 }
97 }
98
99
100
101