Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/public_html/wp-content/themes/puca/inc/vendors/elementor/elements/general/ |
Upload File : |
<?php if ( ! defined( 'ABSPATH' ) || function_exists('Puca_Elementor_Brands') ) { exit; // Exit if accessed directly. } use Elementor\Controls_Manager; /** * Elementor tabs widget. * * Elementor widget that displays vertical or horizontal tabs with different * pieces of content. * * @since 1.0.0 */ class Puca_Elementor_Brands extends Puca_Elementor_Carousel_Base{ /** * Get widget name. * * Retrieve tabs widget name. * * @since 1.0.0 * @access public * * @return string Widget name. */ public function get_name() { return 'tbay-brands'; } /** * Get widget title. * * Retrieve tabs widget title. * * @since 1.0.0 * @access public * * @return string Widget title. */ public function get_title() { return esc_html__( 'Puca Brands', 'puca' ); } public function get_script_depends() { return [ 'slick', 'puca-custom-slick' ]; } /** * Get widget icon. * * Retrieve tabs widget icon. * * @since 1.0.0 * @access public * * @return string Widget icon. */ public function get_icon() { return 'eicon-meta-data'; } /** * Register tabs widget controls. * * Adds different input fields to allow the user to change and customize the widget settings. * * @since 1.0.0 * @access protected */ protected function register_controls() { $this->register_controls_heading(); $this->register_remove_heading_element(); $this->start_controls_section( 'section_general', [ 'label' => esc_html__( 'General', 'puca' ), ] ); $this->add_control( 'number', [ 'label' => esc_html__('Number', 'puca'), 'description' => esc_html__( 'Get out the number of the custom post "tbay_brand"', 'puca' ), 'type' => Controls_Manager::NUMBER, 'default' => 10, ] ); $this->add_control( 'layout_type', [ 'label' => esc_html__('Layout Type', 'puca'), 'type' => Controls_Manager::SELECT, 'default' => 'grid', 'options' => [ 'grid' => esc_html__('Grid', 'puca'), 'carousel' => esc_html__('Carousel', 'puca'), ], ] ); $this->end_controls_section(); $this->add_control_responsive(); $this->add_control_carousel(['layout_type' => 'carousel']); } } $widgets_manager->register(new Puca_Elementor_Brands());