Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace CmsmastersElementor\Modules\TemplateSections\Widgets;
- use Elementor\Controls_Manager;
- use Elementor\Repeater;
- use Elementor\Group_Control_Typography;
- use Elementor\Group_Control_Border;
- use Elementor\Group_Control_Box_Shadow;
- use Elementor\Core\Responsive\Responsive;
- use Elementor\Scheme_Color;
- use Elementor\Scheme_Typography;
- use CmsmastersElementor\Base\Base_Widget;
- use CmsmastersElementor\Controls_Manager as CmsmastersControls;
- use CmsmastersElementor\Modules\Slider\Slider as SliderModule;
- if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
- }
- /**
- * Elementor tabs widget.
- *
- * Elementor widget that displays vertical or horizontal tabs with different
- * pieces of content.
- *
- * @since 1.0.0
- */
- class Slider_New extends Base_Widget {
- /**
- * Get widget name.
- *
- * Retrieve tabs widget name.
- *
- * @since 1.0.0
- * @access public
- *
- * @return string Widget name.
- */
- public function get_name() {
- return 'cmsmasters-slider-new';
- }
- /**
- * Get widget title.
- *
- * Retrieve tabs widget title.
- *
- * @since 1.0.0
- * @access public
- *
- * @return string Widget title.
- */
- public function get_title() {
- return __( 'CMSMasters Slider New', 'cmsmasters-elementor' );
- }
- /**
- * Get widget icon.
- *
- * Retrieve tabs widget icon.
- *
- * @since 1.0.0
- * @access public
- *
- * @return string Widget icon.
- */
- public function get_icon() {
- return 'eicon-slider-push';
- }
- /**
- * Get widget keywords.
- *
- * Retrieve the list of keywords the widget belongs to.
- *
- * @since 1.0.0
- * @access public
- *
- *
- * @return array Widget keywords.
- */
- public function get_keywords() {
- return array( 'cmsmasters', 'slider' );
- }
- /**
- * Get widget categories.
- *
- * Retrieve the widget categories.
- *
- * @since 1.0.0
- * @access public
- *
- * @return array Widget categories.
- */
- public function get_categories() {
- return array(
- 'cmsmasters-header',
- );
- }
- protected function _register_controls() {
- // SliderModule::add_controls_content_per_view( $this );
- // SliderModule::register_section_content( $this );
- // SliderModule::register_sections_style( $this );
- }
- /**
- * Render menu widget output on the frontend.
- *
- * Written in PHP and used to generate the final HTML.
- *
- * @since 1.0.0
- */
- protected function render() {
- SliderModule::render( $this, function() {
- } );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement