PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
besa
/
inc
/
vendors
/
elementor
/
abstract
<?php if (!defined('ABSPATH') || function_exists('Besa_Elementor_Responsive_Base') ) { exit; // Exit if accessed directly. } use Elementor\Controls_Manager; abstract class Besa_Elementor_Responsive_Base extends Besa_Elementor_Widget_Base { public function get_name() { return 'besa-responsive'; } /** * @since 2.1.0 * @access private */ public function get_columns() { $value = apply_filters( 'besa_admin_elementor_columns', [ 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8 ] ); return $value; } protected function add_control_responsive($condition = array()) { $this->start_controls_section( 'section_responsive', [ 'label' => esc_html__( 'Responsive Settings', 'besa' ), 'type' => Controls_Manager::SECTION, 'condition' => $condition, ] ); $this->add_responsive_control( 'column', [ 'label' => esc_html__('Columns', 'besa'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 4, 'options' => $this->get_columns(), 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'desktop_default' => 4, 'tablet_default' => 3, 'mobile_default' => 2, ] ); $this->add_control( 'col_desktop', [ 'label' => esc_html__('Columns desktop', 'besa'), 'description' => esc_html__( 'Column apply when the width is between 1200px and 1600px', 'besa' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 4, 'options' => $this->get_columns(), ] ); $this->add_control( 'col_desktopsmall', [ 'label' => esc_html__('Columns desktopsmall', 'besa'), 'description' => esc_html__( 'Column apply when the width is between 992px and 1199px', 'besa' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 2, 'options' => $this->get_columns(), ] ); $this->add_control( 'col_landscape', [ 'label' => esc_html__('Columns mobile landscape', 'besa'), 'description' => esc_html__( 'Column apply when the width is between 576px and 767px', 'besa' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 2, 'options' => $this->get_columns(), ] ); $this->end_controls_section(); } protected function settings_responsive($settings) { /*Add class reponsive grid*/ $this->add_render_attribute( 'row', [ 'class' => [ 'row', 'grid' ], 'data-xlgdesktop' => $settings['column'], 'data-desktop' => $settings['col_desktop'], 'data-desktopsmall' => $settings['col_desktopsmall'], ] ); if (!empty($settings['column_tablet'])) { $this->add_render_attribute('row', 'data-tablet', $settings['column_tablet']); } $this->add_render_attribute('row', 'data-landscape', $settings['col_landscape']); if (!empty($settings['column_mobile'])) { $this->add_render_attribute('row', 'data-mobile', $settings['column_mobile']); } } }
[+]
..
[-] image.php
[edit]
[-] .abstract.php
[edit]
[-] responsive.php
[edit]
[-] base.php
[edit]
[-] carousel.php
[edit]