icon-hover.php
70 lines
| 1 | <?php |
| 2 | namespace Elementor; |
| 3 | |
| 4 | use \Elementor\ElementsKit_Widget_Icon_Hover_Handler as Handler; |
| 5 | use \ElementsKit_Lite\Modules\Controls\Controls_Manager as ElementsKit_Controls_Manager; |
| 6 | |
| 7 | if (! defined( 'ABSPATH' ) ) exit; |
| 8 | |
| 9 | class ElementsKit_Widget_Icon_Hover extends Widget_Base { |
| 10 | use \ElementsKit_Lite\Widgets\Widget_Notice; |
| 11 | |
| 12 | public $base; |
| 13 | |
| 14 | public function get_name() { |
| 15 | return Handler::get_name(); |
| 16 | } |
| 17 | |
| 18 | public function get_title() { |
| 19 | return Handler::get_title(); |
| 20 | } |
| 21 | |
| 22 | public function get_icon() { |
| 23 | return Handler::get_icon(); |
| 24 | } |
| 25 | |
| 26 | public function get_categories() { |
| 27 | return Handler::get_categories(); |
| 28 | } |
| 29 | |
| 30 | public function get_help_url() { |
| 31 | return ''; |
| 32 | } |
| 33 | |
| 34 | public function get_style_depends() { |
| 35 | return ['ekit-icon-hover']; |
| 36 | } |
| 37 | |
| 38 | protected function register_controls() { |
| 39 | $this->start_controls_section( |
| 40 | 'section_tab', [ |
| 41 | 'label' =>esc_html__( 'Icon Hover', 'elementskit-lite' ), |
| 42 | ] |
| 43 | ); |
| 44 | |
| 45 | |
| 46 | $this->end_controls_section(); |
| 47 | |
| 48 | $this->insert_pro_message(); |
| 49 | } |
| 50 | |
| 51 | protected function render( ) { |
| 52 | echo '<div class="ekit-wid-con" >'; |
| 53 | $this->render_raw(); |
| 54 | echo '</div>'; |
| 55 | } |
| 56 | |
| 57 | protected function render_raw( ) { |
| 58 | |
| 59 | $settings = $this->get_settings_for_display(); |
| 60 | |
| 61 | extract($settings); |
| 62 | |
| 63 | ?> |
| 64 | <span class="ekit_creative_icon_box ekit_hover_grow"> |
| 65 | <i class="fa fa-facebook"></i> |
| 66 | </span> |
| 67 | <?php |
| 68 | } |
| 69 | } |
| 70 |