| 1 |
<?php |
| 2 |
|
| 3 |
namespace King_Addons; |
| 4 |
|
| 5 |
use Elementor\Controls_Manager; |
| 6 |
use Elementor\Widget_Base; |
| 7 |
|
| 8 |
if (!defined('ABSPATH')) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
class Test extends Widget_Base |
| 15 |
{ |
| 16 |
|
| 17 |
|
| 18 |
public function get_name(): string |
| 19 |
{ |
| 20 |
return 'king-addons-test'; |
| 21 |
} |
| 22 |
|
| 23 |
public function get_title(): string |
| 24 |
{ |
| 25 |
return esc_html__('Test', 'king-addons'); |
| 26 |
} |
| 27 |
|
| 28 |
public function get_icon(): string |
| 29 |
{ |
| 30 |
return 'king-addons-icon king-addons-test'; |
| 31 |
} |
| 32 |
|
| 33 |
public function get_script_depends(): array |
| 34 |
{ |
| 35 |
return [KING_ADDONS_ASSETS_UNIQUE_KEY . '-libfolder-libfile', KING_ADDONS_ASSETS_UNIQUE_KEY . '-test-script']; |
| 36 |
} |
| 37 |
|
| 38 |
public function get_style_depends(): array |
| 39 |
{ |
| 40 |
return [KING_ADDONS_ASSETS_UNIQUE_KEY . '-libfolder-libfile', KING_ADDONS_ASSETS_UNIQUE_KEY . '-test-style']; |
| 41 |
} |
| 42 |
|
| 43 |
public function get_categories(): array |
| 44 |
{ |
| 45 |
return ['king-addons']; |
| 46 |
} |
| 47 |
|
| 48 |
public function get_keywords(): array |
| 49 |
{ |
| 50 |
return ['test', 'king addons', 'king', 'addons', 'kingaddons', 'king-addons']; |
| 51 |
} |
| 52 |
|
| 53 |
public function get_custom_help_url() |
| 54 |
{ |
| 55 |
return 'mailto:bug@kingaddons.com?subject=Bug Report - King Addons&body=Please describe the issue'; |
| 56 |
} |
| 57 |
|
| 58 |
protected function register_controls(): void |
| 59 |
{ |
| 60 |
|
| 61 |
$this->start_controls_section( |
| 62 |
'king_addons_test_section', |
| 63 |
[ |
| 64 |
'label' => KING_ADDONS_ELEMENTOR_ICON . esc_html__('Test', 'king-addons'), |
| 65 |
'tab' => Controls_Manager::TAB_CONTENT |
| 66 |
] |
| 67 |
); |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
$this->end_controls_section(); |
| 74 |
|
| 75 |
|
| 76 |
} |
| 77 |
|
| 78 |
protected function render(): void |
| 79 |
{ |
| 80 |
$settings = $this->get_settings(); |
| 81 |
$id = $this->get_id(); |
| 82 |
|
| 83 |
|
| 84 |
} |
| 85 |
} |