Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
luxia
/
inc
/
includes
/
integrations
/
elementor
/
widgets
/
✏️
Editing: header-slider.php
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class Elementor_Widget_header_slider extends Widget_Base { public function get_name() { return 'Elementor-Widget-header-slider'; } public function get_title() { return esc_html__( 'Zc > Header Slider', 'luxia' ); } public function get_icon() { return 'eicon-slider-device'; } protected function _register_controls() { $traits = new \luxia_Elementor_Traits($this); $this->start_controls_section( 'the_header_slider_section', ['label' => esc_html__( ' header-Slider','luxia' ),] ); $this->add_control( 'header-slider-text', [ 'label' => esc_html__( 'header Slider','luxia' ), 'type' => Controls_Manager::REPEATER, 'fields' => [ [ 'name' => 'text-heading', 'label' => esc_html__( 'Heading' ,'luxia' ), 'type' => Controls_Manager::TEXT, ], [ 'name' => 'sub-text-heading', 'label' => esc_html__( 'Sub Heading' ,'luxia' ), 'type' => Controls_Manager::TEXT, ], [ 'name' => 'back-image', 'label' => esc_html__( 'Image' ,'luxia' ), 'type' => Controls_Manager::MEDIA, ], [ 'name' => 'textblog', 'label' => esc_html__( 'Text' ,'luxia' ), 'type' => Controls_Manager::TEXTAREA, ], [ 'name' => 'button-text', 'label' => esc_html__( 'Button Text1' ,'luxia' ), 'type' => Controls_Manager::TEXT, ], [ 'name' => 'button-link', 'label' => esc_html__( 'Button URL' ,'luxia' ), 'type' => Controls_Manager::URL, ], [ 'name' => 'video_button', 'label' => esc_html__( 'Video Button' ,'luxia' ), 'type' => Controls_Manager::TEXT, ], [ 'name' => 'video_link', 'label' => esc_html__( 'Video URL' ,'luxia' ), 'type' => Controls_Manager::URL, ], ], ] ); $this->end_controls_section(); } protected function render( $instance = [] ) { luxia_el()->get_section('header-slider', [ 'header-slider-text1' => $this->get_settings('header-slider-text'), 'image_animation_section' => $this->get_settings('image_animation'), 'slide_time_section' => $this->get_settings('slide_time'), ]); } protected function content_template() {} public function render_plain_content() {} } Plugin::instance()->widgets_manager->register_widget_type( new Elementor_Widget_header_slider() );
💾 Save
❌ Cancel