'raw' => __( 'The options in Style and Filters tabs are available in Premium Addons Pro.', 'premium-addons-for-elementor' ) . '' . __( 'Upgrade now!', 'premium-addons-for-elementor' ) . '',
'content_classes' => 'papro-upgrade-notice',
)
);
}
$element->start_controls_tabs( 'effects_tabs' );
$element->start_controls_tab(
'motion_effects_tab',
array(
'label' => __( 'Motion', 'premium-addons-for-elementor' ),
'condition' => array(
'premium_fe_switcher' => 'yes',
),
)
);
/**--------Translate Effect Controls---------*/
$element->add_control(
'premium_fe_translate_switcher',
array(
'label' => __( 'Translate', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Xtranslate',
array(
'label' => __( 'Translate X', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 5,
),
'unit' => 'px',
),
'range' => array(
'px' => array(
'min' => -150,
'max' => 150,
'step' => 1,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_translate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Ytranslate',
array(
'label' => __( 'Translate Y', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 5,
),
'unit' => 'px',
),
'range' => array(
'px' => array(
'min' => -150,
'max' => 150,
'step' => 1,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_translate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_trans_duration',
array(
'label' => __( 'Duration', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'default' => array(
'unit' => 'px',
'size' => 1000,
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_translate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_trans_delay',
array(
'label' => __( 'Delay', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_translate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
/**--------Rotate Effect Controls---------*/
$element->add_control(
'premium_fe_rotate_switcher',
array(
'label' => __( 'Rotate', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Xrotate',
array(
'label' => __( 'Rotate X', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 45,
),
'unit' => 'deg',
),
'range' => array(
'deg' => array(
'min' => -180,
'max' => 180,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_rotate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Yrotate',
array(
'label' => __( 'Rotate Y', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 45,
),
'unit' => 'deg',
),
'range' => array(
'deg' => array(
'min' => -180,
'max' => 180,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_rotate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Zrotate',
array(
'label' => __( 'Rotate Z', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 45,
),
'unit' => 'deg',
),
'range' => array(
'deg' => array(
'min' => -180,
'max' => 180,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_rotate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_rotate_duration',
array(
'label' => __( 'Duration', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'default' => array(
'unit' => 'px',
'size' => 1000,
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_rotate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_rotate_delay',
array(
'label' => __( 'Delay', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_rotate_switcher' => 'yes',
),
'frontend_available' => true,
)
);
/**--------Scale Effect Controls---------*/
$element->add_control(
'premium_fe_scale_switcher',
array(
'label' => __( 'Scale', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Xscale',
array(
'label' => __( 'Scale X', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 1,
'to' => 1.2,
),
'unit' => 'px',
),
'range' => array(
'px' => array(
'min' => 0,
'max' => 2,
'step' => 0.1,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_scale_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Yscale',
array(
'label' => __( 'Scale Y', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 1,
'to' => 1.2,
),
'unit' => 'px',
),
'range' => array(
'px' => array(
'min' => 0,
'max' => 2,
'step' => 0.1,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_scale_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_scale_duration',
array(
'label' => __( 'Duration', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'default' => array(
'unit' => 'px',
'size' => 1000,
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_scale_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_scale_delay',
array(
'label' => __( 'Delay', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_scale_switcher' => 'yes',
),
'frontend_available' => true,
)
);
/**--------Skew Effect Controls---------*/
$element->add_control(
'premium_fe_skew_switcher',
array(
'label' => __( 'Skew', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Xskew',
array(
'label' => __( 'Skew X', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 20,
),
'unit' => 'deg',
),
'range' => array(
'deg' => array(
'min' => -180,
'max' => 180,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_skew_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_responsive_control(
'premium_fe_Yskew',
array(
'label' => __( 'Skew Y', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => array(
'sizes' => array(
'from' => 0,
'to' => 20,
),
'unit' => 'deg',
),
'range' => array(
'deg' => array(
'min' => -180,
'max' => 180,
),
),
'labels' => array(
__( 'From', 'premium-addons-for-elementor' ),
__( 'To', 'premium-addons-for-elementor' ),
),
'scales' => 1,
'handles' => 'range',
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_skew_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_skew_duration',
array(
'label' => __( 'Duration', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'default' => array(
'unit' => 'px',
'size' => 1000,
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_skew_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_skew_delay',
array(
'label' => __( 'Delay', 'premium-addons-for-elementor' ) . ' (ms)',
'type' => Controls_Manager::SLIDER,
'range' => array(
'px' => array(
'min' => 0,
'max' => 10000,
'step' => 100,
),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_skew_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->end_controls_tab();
$element->start_controls_tab(
'css_effects_tab',
array(
'label' => __( 'Style', 'premium-addons-for-elementor' ),
'condition' => array(
'premium_fe_switcher' => 'yes',
),
)
);
/**--------CSS Properties Effect Controls---------*/
/**--------Opacity Effect Controls---------*/
$element->add_control(
'premium_fe_opacity_switcher',
array(
'label' => __( 'Opacity', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_opacity_controls', $element );
/**--------Background Color Effect Controls---------*/
$element->add_control(
'premium_fe_bg_color_switcher',
array(
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_bg_controls', $element );
$element->end_controls_tab();
$element->start_controls_tab(
'filters_effects_tab',
array(
'label' => __( 'Filters', 'premium-addons-for-elementor' ),
'condition' => array(
'premium_fe_switcher' => 'yes',
),
)
);
/**-------- CSS Filter Blur Controls---------*/
$element->add_control(
'premium_fe_blur_switcher',
array(
'label' => __( 'Blur', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_blur_controls', $element );
/**-------- CSS Filter Contrast Controls---------*/
$element->add_control(
'premium_fe_contrast_switcher',
array(
'label' => __( 'Contrast', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_contrast_controls', $element );
/**-------- CSS Filter grayscale Controls---------*/
$element->add_control(
'premium_fe_gScale_switcher',
array(
'label' => __( 'Grayscale', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_gs_controls', $element );
/**-------- CSS Filter Hue Controls---------*/
$element->add_control(
'premium_fe_hue_switcher',
array(
'label' => __( 'Hue', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_hue_controls', $element );
/**-------- CSS Filter Brightness Controls---------*/
$element->add_control(
'premium_fe_brightness_switcher',
array(
'label' => __( 'Brightness', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_brightness_controls', $element );
/**-------- CSS Filter Saturation Controls---------*/
$element->add_control(
'premium_fe_saturate_switcher',
array(
'label' => __( 'Saturation ', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
do_action( 'pa_floating_saturation_controls', $element );
$element->end_controls_tab();
$element->end_controls_tabs();
/**-------- General Settings Controls---------*/
$element->add_control(
'premium_fe_general_settings_heading',
array(
'label' => __( 'General Settings', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::HEADING,
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
)
);
$element->add_control(
'premium_fe_direction',
array(
'label' => __( 'Direction', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SELECT,
'default' => 'alternate',
'options' => array(
'normal' => __( 'Normal', 'premium-addons-for-elementor' ),
'reverse' => __( 'Reverse', 'premium-addons-for-elementor' ),
'alternate' => __( 'Alternate', 'premium-addons-for-elementor' ),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_loop',
array(
'label' => __( 'Loop', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SELECT,
'default' => 'default',
'options' => array(
'default' => __( 'Infinite', 'premium-addons-for-elementor' ),
'number' => __( 'Custom', 'premium-addons-for-elementor' ),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_loop_number',
array(
'label' => __( 'Number', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::NUMBER,
'default' => 3,
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_loop' => 'number',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_easing',
array(
'label' => __( 'Easing', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SELECT,
'default' => 'easeInOutSine',
'options' => array(
'linear' => __( 'Linear', 'premium-addons-for-elementor' ),
'easeInOutSine' => __( 'easeInOutSine', 'premium-addons-for-elementor' ),
'easeInOutExpo' => __( 'easeInOutExpo', 'premium-addons-for-elementor' ),
'easeInOutQuart' => __( 'easeInOutQuart', 'premium-addons-for-elementor' ),
'easeInOutCirc' => __( 'easeInOutCirc', 'premium-addons-for-elementor' ),
'easeInOutBack' => __( 'easeInOutBack', 'premium-addons-for-elementor' ),
'steps' => __( 'Steps', 'premium-addons-for-elementor' ),
'easeInElastic(1, .6)' => __( 'Elastic In', 'premium-addons-for-elementor' ),
'easeOutElastic(1, .6)' => __( 'Elastic Out', 'premium-addons-for-elementor' ),
'easeInOutElastic(1, .6)' => __( 'Elastic In Out', 'premium-addons-for-elementor' ),
),
'condition' => array(
'premium_fe_switcher' => 'yes',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_ease_step',
array(
'label' => __( 'Steps', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::NUMBER,
'default' => 5,
'condition' => array(
'premium_fe_switcher' => 'yes',
'premium_fe_easing' => 'steps',
),
'frontend_available' => true,
)
);
$element->add_control(
'premium_fe_disable_safari',
array(
'label' => __( 'Disable Floating Effects On Safari', 'premium-addons-for-elementor' ),
'type' => Controls_Manager::SWITCHER,
'prefix_class' => 'premium-disable-fe-',
'separator' => 'before',
'condition' => array(
'premium_fe_switcher' => 'yes',
),
)
);
$element->end_controls_section();
}
/**
* Check Script Enqueue
*
* Check if the script files should be loaded.
*
* @since 4.7.4
* @access public
*
* @param object $element for current element.
*/
public function check_script_enqueue( $element ) {
if ( self::$load_script ) {
return;
}
if ( 'yes' === $element->get_settings_for_display( 'premium_fe_switcher' ) ) {
$this->enqueue_scripts();
self::$load_script = true;
remove_action( 'elementor/frontend/widget/before_render', array( $this, 'check_script_enqueue' ) );
}
}
/**
* Creates and returns an instance of the class
*
* @since 4.2.5
* @access public
*
* @return object
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
}
Fatal error: Uncaught Error: Class 'PremiumAddons\Modules\PremiumSectionFloatingEffects\Module' not found in /var/www/html/dportilho.com.br/web/wp-content/plugins/premium-addons-for-elementor/includes/addons-integration.php:1731
Stack trace:
#0 /var/www/html/dportilho.com.br/web/wp-content/plugins/premium-addons-for-elementor/includes/addons-integration.php(111): PremiumAddons\Includes\Addons_Integration->load_pa_extensions()
#1 /var/www/html/dportilho.com.br/web/wp-content/plugins/premium-addons-for-elementor/includes/addons-integration.php(1790): PremiumAddons\Includes\Addons_Integration->__construct()
#2 /var/www/html/dportilho.com.br/web/wp-content/plugins/premium-addons-for-elementor/includes/class-pa-core.php(102): PremiumAddons\Includes\Addons_Integration::get_instance()
#3 /var/www/html/dportilho.com.br/web/wp-includes/class-wp-hook.php(324): PremiumAddons\Includes\PA_Core->pa_init('')
#4 /var/www/html/dportilho.com.br/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /var/www/html/dpo in /var/www/html/dportilho.com.br/web/wp-content/plugins/premium-addons-for-elementor/includes/addons-integration.php on line 1731