| 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 |
public function get_custom_help_url() |
| 63 |
{ |
| 64 |
return 'mailto:bug@kingaddons.com?subject=Bug Report - King Addons&body=Please describe the issue'; |
| 65 |
} |
| 66 |
|
| 67 |
/** |
| 68 |
* Register controls. |
| 69 |
* |
| 70 |
* @return void |
| 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-icon', |
| 79 |
[ |
| 80 |
esc_html__('Floating wishlist icon with badge', 'king-addons'), |
| 81 |
esc_html__('Mini dropdown with recent items', 'king-addons'), |
| 82 |
esc_html__('Hover or click triggers', 'king-addons'), |
| 83 |
esc_html__('Device and position rules', '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 |
|