%PDF- %PDF-
Direktori : /proc/19851/cwd/wp-content/plugins/evenex-essential/modules/sticky-content/ |
Current File : //proc/19851/cwd/wp-content/plugins/evenex-essential/modules/sticky-content/extend-controls.php |
<?php namespace Elementor; class Evenex_Extend_Sticky{ public function __construct() { add_action( 'elementor/element/section/section_advanced/after_section_end', [ $this, 'register_controls' ], 6 ); add_action( 'elementor/element/common/_section_style/after_section_end', [ $this, 'register_controls' ], 6 ); } public function register_controls( Controls_Stack $element ) { $element->start_controls_section( 'section_scroll_effect', [ 'label' => esc_html__( 'Evenex Sticky', 'evenex-essential' ), 'tab' => Controls_Manager::TAB_ADVANCED, ] ); $element->add_control( 'ekit_sticky', [ 'label' => esc_html__( 'Sticky', 'evenex-essential' ), 'type' => Controls_Manager::SELECT, 'options' => [ '' => esc_html__( 'None', 'evenex-essential' ), 'top' => esc_html__( 'Top', 'evenex-essential' ), 'bottom' => esc_html__( 'Bottom', 'evenex-essential' ), 'column' => esc_html__( 'Column', 'evenex-essential' ), ], 'render_type' => 'none', 'frontend_available' => true, ] ); $element->add_control( 'ekit_sticky_until', [ 'label' => esc_html__( 'Sticky Until', 'evenex-essential' ), 'description' => esc_html__( 'Section id without starting hash, example "section1".', 'evenex-essential'), 'type' => Controls_Manager::TEXT, 'default' => '', 'condition' => [ 'ekit_sticky!' => ['', 'column'], ], 'render_type' => 'none', 'frontend_available' => true, ] ); $element->add_control( 'ekit_sticky_offset', [ 'label' => esc_html__( 'Sticky Offset', 'evenex-essential' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'unit' => 'px', 'size' => 0, ], 'required' => true, 'condition' => [ 'ekit_sticky!' => '', ], 'render_type' => 'none', 'frontend_available' => true, ] ); $element->add_control( 'ekit_sticky_color', [ 'label' => esc_html__( 'Sticky Background Color', 'evenex-essential' ), 'type' => Controls_Manager::COLOR, 'condition' => [ 'ekit_sticky!' => ['', 'column'], ], 'selectors' => [ '{{WRAPPER}}.ekit-sticky--active' => 'background-color: {{VALUE}}', ], ] ); $element->add_control( 'ekit_sticky_on', [ 'label' => esc_html__( 'Sticky On', 'evenex-essential' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'desktop_tablet_mobile' => esc_html__( 'All Devices', 'evenex-essential' ), 'desktop' => esc_html__( 'Desktop Only', 'evenex-essential' ), 'desktop_tablet' => esc_html__( 'Desktop & Tablet', 'evenex-essential' ), ], 'default' => 'desktop_tablet_mobile', 'render_type' => 'none', 'frontend_available' => true, 'condition' => [ 'ekit_sticky!' => '', ], ] ); $element->add_control( 'ekit_sticky_effect_offset', [ 'label' => esc_html__( 'Add "ekit-sticky--effects" Class Offset', 'evenex-essential' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'unit' => 'px', 'size' => 0, ], 'required' => true, 'condition' => [ 'ekit_sticky!' => '', ], 'render_type' => 'none', 'frontend_available' => true, ] ); $element->end_controls_section(); } }