<?php
/**
 * Widget Name: Dynamic Devices
 * Description: layout of devices isplay content.
 * Author: Theplus
 * Author URI: https://posimyth.com
 *
 * @package ThePlus
 */

namespace TheplusAddons\Widgets;

use TheplusAddons\Widgets\Base\Plus_Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Utils;
use Elementor\Group_Control_Typography;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Background;
use Elementor\Group_Control_Box_Shadow;
use Elementor\Core\Kits\Documents\Tabs\Global_Colors;
use Elementor\Core\Kits\Documents\Tabs\Global_Typography;

use TheplusAddons\Theplus_Element_Load;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Class ThePlus_Dynamic_Devices
 */
class ThePlus_Dynamic_Devices extends Plus_Widget_Base {
	/**
	 * Get Widget Name
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	public function get_name() {
		return 'tp-dynamic-device';
	}

	/**
	 * Get Widget Title
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	public function get_title() {
		return esc_html__( 'Dynamic Device', 'theplus' );
	}

	/**
	 * Get Widget Icon
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	public function get_icon() {
		return 'theplus-i-dynamic-device tpae-editor-logo';
	}
	/**
	 * Get Widget Categories
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	public function get_categories() {
		return array( 'plus-creative' );
	}

	/**
	 * Get Widget Keywords
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	public function get_keywords() {
		return array( 'Tp Dynamic Device', 'Device Mockup', 'Responsive Screen Mockup', 'iFrame Mockup', 'Manual Scroll Device', 'Auto-Scroll Device', 'Device Slider', 'Mockup Carousel', 'Scrolling Device Preview', 'Live Website Mockup' );
	}

	/**
	 * It is use for widget add in catch or not.
	 *
	 * @since 6.1.2
	 */
	// public function is_dynamic_content(): bool {
	// return false;
	// }
	/**
	 * Register controls.
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	protected function register_controls() {

		/** Content Section Start*/
		$this->start_controls_section(
			'device_section',
			array(
				'label' => esc_html__( 'Content', 'theplus' ),
				'tab'   => Controls_Manager::TAB_CONTENT,
			)
		);
		$this->add_control(
			'tpae_preset_controller',
			array(
				'type'        => 'tpae_preset_button',
				'temp_id'     => 12270,
				'label_block' => true,
			)
		);
		$this->add_control(
			'device_mode',
			array(
				'label'   => esc_html__( 'Layout', 'theplus' ),
				'type'    => Controls_Manager::SELECT,
				'default' => 'normal',
				'options' => array(
					'normal'   => esc_html__( 'Normal', 'theplus' ),
					'carousal' => esc_html__( 'Special Carousel', 'theplus' ),
				),
			)
		);
		$this->add_control(
			'normal_label',
			array(
				'type'        => Controls_Manager::RAW_HTML,
				'raw'         => wp_kses_post(
					sprintf(
						'<p class="tp-controller-label-text"><i>%s</i></p>',
						esc_html__( 'Display a standard static device layout.', 'theplus' )
					)
				),
				'label_block' => true,
				'condition'   => array(
					'device_mode' => 'normal',
				),
			)
		);
		$this->add_control(
			'carousal_label',
			array(
				'type'        => Controls_Manager::RAW_HTML,
				'raw'         => wp_kses_post(
					sprintf(
						'<p class="tp-controller-label-text"><i>%s</i></p>',
						esc_html__( 'Display device screens inside a carousel-style layout.', 'theplus' )
					)
				),
				'label_block' => true,
				'condition'   => array(
					'device_mode' => 'carousal',
				),
			)
		);
		$this->add_control(
			'device_mockup',
			array(
				'label'     => esc_html__( 'Type', 'theplus' ),
				'type'      => Controls_Manager::CHOOSE,
				'options'   => array(
					'mobile'  => array(
						'title' => esc_html__( 'Mobile', 'theplus' ),
						'icon'  => 'eicon-device-mobile',
					),
					'tablet'  => array(
						'title' => esc_html__( 'Tablet', 'theplus' ),
						'icon'  => 'eicon-device-tablet',
					),
					'laptop'  => array(
						'title' => esc_html__( 'Laptop', 'theplus' ),
						'icon'  => 'eicon-device-laptop',
					),
					'desktop' => array(
						'title' => esc_html__( 'Desktop', 'theplus' ),
						'icon'  => 'eicon-device-desktop',
					),
					'custom'  => array(
						'title' => esc_html__( 'Custom', 'theplus' ),
						'icon'  => 'eicon-upload-circle-o',
					),
				),
				'default'   => 'laptop',
				'toggle'    => true,
				'condition' => array(
					'device_mode' => array( 'normal' ),
				),
			)
		);
		$this->add_control(
			'custom_image',
			array(
				'label'     => esc_html__( 'Custom Mockup', 'theplus' ),
				'type'      => Controls_Manager::MEDIA,
				'dynamic'   => array(
					'active' => true,
				),
				'condition' => array(
					'device_mode'   => array( 'normal' ),
					'device_mockup' => array( 'custom' ),
				),
			)
		);
		$this->add_control(
			'device_mockup_carousal',
			array(
				'label'     => esc_html__( 'Type', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'options'   => array(
					'mobile'  => esc_html__( 'Mobile', 'theplus' ),
					'laptop'  => esc_html__( 'Laptop', 'theplus' ),
					'desktop' => esc_html__( 'Desktop', 'theplus' ),
					'custom'  => esc_html__( 'Custom', 'theplus' ),
				),
				'default'   => 'mobile',
				'toggle'    => true,
				'condition' => array(
					'device_mode' => array( 'carousal' ),
				),
			)
		);
		$this->add_control(
			'type_label',
			array(
				'type'        => Controls_Manager::RAW_HTML,
				'raw'         => wp_kses_post(
					sprintf(
						'<p class="tp-controller-label-text"><i>%s</i></p>',
						esc_html__( 'Select the device type to display (for example, laptop, tablet, or mobile).', 'theplus' )
					)
				),
				'label_block' => true,
			)
		);
		$this->add_control(
			'device_mockup_carousal_image',
			array(
				'label'     => esc_html__( 'Media Image', 'theplus' ),
				'type'      => Controls_Manager::MEDIA,
				'ai'        => false,
				'default'   => array(
					'url' => \Elementor\Utils::get_placeholder_image_src(),
				),
				'dynamic'   => array(
					'active' => true,
				),
				'condition' => array(
					'device_mode'            => array( 'carousal' ),
					'device_mockup_carousal' => array( 'custom' ),
				),
			)
		);
		$this->add_control(
			'device_mobile',
			array(
				'label'     => esc_html__( 'Mobile Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'iphone-white-flat',
				'options'   => array(
					'iphone-white-flat'    => esc_html__( 'iPhone White (320px x 594px)', 'theplus' ),
					'iphone-x-black'       => esc_html__( 'iPhone X Black (320px x 672px)', 'theplus' ),
					'iphone-browser'       => esc_html__( 'iPhone Browser (320px x 470px)', 'theplus' ),
					'iphone-minimal'       => esc_html__( 'iPhone Minimal (300px x 527px)', 'theplus' ),
					'iphone-minimal-white' => esc_html__( 'iPhone Minimal White (320px x 564px)', 'theplus' ),
					's9-black'             => esc_html__( 'S9 Black (320px x 668px)', 'theplus' ),
					's9-jet-black'         => esc_html__( 'S9 Jet Black (320px x 672px)', 'theplus' ),
					's9-white'             => esc_html__( 'S9 White (320px x 668px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'   => array( 'normal' ),
					'device_mockup' => array( 'mobile' ),
				),
			)
		);
		$this->add_control(
			'device_mobile_carousal',
			array(
				'label'     => esc_html__( 'Mobile Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'iphone-white-flat-carousal',
				'options'   => array(
					'iphone-white-flat-carousal' => esc_html__( 'iPhone White (500px x 890px)', 'theplus' ),
					'iphone-x-black'             => esc_html__( 'iPhone X Black (320px x 672px)', 'theplus' ),
					'iphone-browser'             => esc_html__( 'iPhone Browser (320px x 470px)', 'theplus' ),
					'iphone-minimal'             => esc_html__( 'iPhone Minimal (300px x 527px)', 'theplus' ),
					'iphone-minimal-white'       => esc_html__( 'iPhone Minimal White (320px x 564px)', 'theplus' ),
					's9-black'                   => esc_html__( 'S9 Black (320px x 668px)', 'theplus' ),
					's9-jet-black'               => esc_html__( 'S9 Jet Black (320px x 672px)', 'theplus' ),
					's9-white'                   => esc_html__( 'S9 White (320px x 668px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'            => array( 'carousal' ),
					'device_mockup_carousal' => array( 'mobile' ),
				),
			)
		);
		$this->add_control(
			'device_tablet',
			array(
				'label'     => esc_html__( 'Tablet Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'ipad-vertical-white',
				'options'   => array(
					'ipad-vertical-white'   => esc_html__( 'Ipad Vertical White (480px x 646px)', 'theplus' ),
					'ipad-horizontal-white' => esc_html__( 'Ipad Horizontal White (470px x 348px)', 'theplus' ),
					'ipad-browser'          => esc_html__( 'Ipad Browser (550px x 625px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'   => array( 'normal' ),
					'device_mockup' => array( 'tablet' ),
				),
			)
		);
		$this->add_control(
			'device_laptop',
			array(
				'label'     => esc_html__( 'Laptop Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'laptop-macbook-black',
				'options'   => array(
					'laptop-macbook-black'         => esc_html__( 'Macbook Black (800px x 500px)', 'theplus' ),
					'laptop-macbook-minimal'       => esc_html__( 'Macbook Minimal (700px x 414px)', 'theplus' ),
					'laptop-macbook-white-minimal' => esc_html__( 'Macbook White Minimal(770px x 480px)', 'theplus' ),
					'laptop-macbook-white'         => esc_html__( 'Macbook White (800px x 525px)', 'theplus' ),
					'laptop-windows'               => esc_html__( 'Windows Laptop (800px x 471px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'   => array( 'normal' ),
					'device_mockup' => array( 'laptop' ),
				),
			)
		);
		$this->add_control(
			'device_desktop',
			array(
				'label'     => esc_html__( 'Desktop Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'desktop-imac-minimal',
				'options'   => array(
					'desktop-imac-minimal' => esc_html__( 'iMac Minimal (1000px x 565px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'   => array( 'normal' ),
					'device_mockup' => array( 'desktop' ),
				),
			)
		);
		$this->add_control(
			'device_laptop_carousal',
			array(
				'label'     => esc_html__( 'Laptop Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'laptop-macbook-black',
				'options'   => array(
					'laptop-macbook-black'         => esc_html__( 'Macbook Black (800px x 500px)', 'theplus' ),
					'laptop-macbook-minimal'       => esc_html__( 'Macbook Minimal (700px x 414px)', 'theplus' ),
					'laptop-macbook-white-minimal' => esc_html__( 'Macbook White Minimal(770px x 480px)', 'theplus' ),
					'laptop-macbook-white'         => esc_html__( 'Macbook White (800px x 525px)', 'theplus' ),
					'laptop-windows'               => esc_html__( 'Windows Laptop (800px x 471px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'            => array( 'carousal' ),
					'device_mockup_carousal' => array( 'laptop' ),
				),
			)
		);
		$this->add_control(
			'device_desktop_carousal',
			array(
				'label'     => esc_html__( 'Desktop Device', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'desktop-imac-minimal',
				'options'   => array(
					'desktop-imac-minimal' => esc_html__( 'iMac Minimal (1000px x 565px)', 'theplus' ),
				),
				'condition' => array(
					'device_mode'            => array( 'carousal' ),
					'device_mockup_carousal' => array( 'desktop' ),
				),
			)
		);
		$this->add_control(
			'content_type',
			array(
				'label'     => esc_html__( 'Content', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'image',
				'options'   => array(
					'image'    => esc_html__( 'Image', 'theplus' ),
					'template' => esc_html__( 'Template', 'theplus' ),
					'iframe'   => esc_html__( 'IFrame', 'theplus' ),
				),
				'condition' => array(
					'device_mode' => array( 'normal' ),
				),
			)
		);
		$this->add_control(
			'content_type_label',
			array(
				'type'        => Controls_Manager::RAW_HTML,
				'raw'         => wp_kses_post(
					sprintf(
						'<p class="tp-controller-label-text"><i>%s</i></p>',
						esc_html__( 'Choose the type of content shown inside the device.', 'theplus' )
					)
				),
				'label_block' => true,
				'condition'   => array(
					'device_mode' => 'normal',
				),
			)
		);
		$this->add_control(
			'iframe_link',
			array(
				'label'       => wp_kses_post(
					sprintf(
						'%s <a class="tp-docs-link" href="%s" target="_blank" rel="noopener noreferrer"><i class="eicon-help-o"></i></a>',
						esc_html__( 'IFrame URL', 'theplus' ),
						esc_url( $this->tp_doc . 'live-website-in-mockup-using-iframes-in-elementor/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget' )
					)
				),
				'type'        => Controls_Manager::URL,
				'dynamic'     => array(
					'active' => true,
				),
				'condition'   => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'iframe' ),
				),
				'placeholder' => esc_html__( 'https://www.demo-link.com', 'theplus' ),
			)
		);
		$this->add_control(
			'media_image',
			array(
				'label'     => wp_kses_post(
					sprintf(
						'%s <a class="tp-docs-link" href="%s" target="_blank" rel="noopener noreferrer"><i class="eicon-help-o"></i></a>',
						esc_html__( 'Media Image', 'theplus' ),
						esc_url( $this->tp_doc . 'create-website-portfolio-showcase-page-in-elementor/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget' )
					)
				),
				'type'      => Controls_Manager::MEDIA,
				'ai'        => false,
				'default'   => array(
					'url' => \Elementor\Utils::get_placeholder_image_src(),
				),
				'dynamic'   => array(
					'active' => true,
				),
				'condition' => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'image' ),
				),
			)
		);
		$this->add_control(
			'content_template',
			array(
				'label'       => wp_kses_post(
					sprintf(
						'%s <a class="tp-docs-link" href="%s" target="_blank" rel="noopener noreferrer"><i class="eicon-help-o"></i></a>',
						esc_html__( 'Elementor Templates', 'theplus' ),
						esc_url( $this->tp_doc . 'elementor-templates-inside-a-device-mockup/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget' )
					)
				),
				'type'        => Controls_Manager::SELECT,
				'default'     => '0',
				'options'     => theplus_get_templates(),
				'classes'     => 'tp-template-create-btn',
				'label_block' => 'true',
				'condition'   => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'template' ),
				),
			)
		);
		$this->add_control(
			'liveeditor',
			array(
				'type'            => Controls_Manager::RAW_HTML,
				'raw'             => '<a class="tp-live-editor" id="tp-live-editor-button">Edit Template</a>',
				'content_classes' => 'tp-live-editor-btn',
				'label_block'     => true,
				'condition'       => array(
					'device_mode'       => 'normal',
					'content_type'      => 'template',
					'content_template!' => '0',
				),
			)
		);
		$this->add_control(
			'create',
			array(
				'type'            => Controls_Manager::RAW_HTML,
				'raw'             => '<a class="tp-live-create" id="tp-live-create-button">Create Template</a>',
				'content_classes' => 'tp-live-create-btn',
				'label_block'     => true,
				'condition'       => array(
					'device_mode'      => 'normal',
					'content_type'     => 'template',
					'content_template' => '0',
				),
			)
		);
		$this->add_control(
			'slider_gallery',
			array(
				'label'     => wp_kses_post(
					sprintf(
						'%s <a class="tp-docs-link" href="%s" target="_blank" rel="noopener noreferrer"><i class="eicon-help-o"></i></a>',
						esc_html__( 'Select Multiple Images', 'theplus' ),
						esc_url( $this->tp_doc . 'device-slider-in-elementor-for-smartwatch-tablet-custom-device/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget' )
					)
				),
				'type'      => Controls_Manager::GALLERY,
				'default'   => array(),
				'condition' => array(
					'device_mode' => array( 'carousal' ),
				),
			)
		);
		$this->add_control(
			'device_link_popup',
			array(
				'label'     => esc_html__( 'Select Link/Popup', 'theplus' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => '',
				'options'   => array(
					''      => esc_html__( 'Select Option', 'theplus' ),
					'link'  => esc_html__( 'Link', 'theplus' ),
					'popup' => esc_html__( 'Popup', 'theplus' ),

				),
				'condition' => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'image' ),
				),
			)
		);
		$this->add_control(
			'device_link',
			array(
				'label'       => esc_html__( 'Link', 'theplus' ),
				'type'        => Controls_Manager::URL,
				'dynamic'     => array(
					'active' => true,
				),
				'separator'   => 'before',
				'placeholder' => esc_html__( 'https://www.demo-link.com', 'theplus' ),
				'default'     => array(
					'url' => '',
				),
				'condition'   => array(
					'device_mode'        => array( 'normal' ),
					'content_type'       => array( 'image' ),
					'device_link_popup!' => '',
				),
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_icon_content',
			array(
				'label'     => esc_html__( 'Icon Options', 'theplus' ),
				'tab'       => Controls_Manager::TAB_CONTENT,
				'condition' => array(
					'device_mode'   => 'normal',
					'content_type!' => 'iframe',
				),
			)
		);
		$this->add_control(
			'icon_show',
			array(
				'label'     => esc_html__( 'Show Icon', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_off' => esc_html__( 'Off', 'theplus' ),
				'label_on'  => esc_html__( 'On', 'theplus' ),
				'default'   => 'no',
			)
		);
		$this->add_control(
			'icon_image',
			array(
				'label'     => esc_html__( 'Upload Icon', 'theplus' ),
				'type'      => Controls_Manager::MEDIA,
				'ai'        => false,
				'condition' => array(
					'icon_show' => 'yes',
				),
			)
		);
		$this->end_controls_section();
		$this->start_controls_section(
			'theplus_section_needhelp',
			array(
				'label' => esc_html__( 'Need Help?', 'theplus' ),
				'tab'   => Controls_Manager::TAB_CONTENT,
			)
		);
		$this->add_control(
			'theplus_help_requests',
			array(
				'label'   => __( 'Need Help', 'theplus' ),
				'type'    => 'tpae_need_help',
				'default' => array(
					array(
						'label' => __( 'Read Docs', 'theplus' ),
						'url'   => 'https://theplusaddons.com/help/dynamic-device/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget',
					),
					array(
						'label' => __( 'Watch Video', 'theplus' ),
						'url'   => 'https://www.youtube.com/watch?v=445tdtOMgHU',
					),
				),
			)
		);
		$this->end_controls_section();
		$this->start_controls_section(
			'section_icon_styling',
			array(
				'label'     => esc_html__( 'Icon Options', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode'   => 'normal',
					'icon_show'     => 'yes',
					'content_type!' => 'iframe',
				),
			)
		);
		$this->add_control(
			'icon_continuous_animation',
			array(
				'label'     => esc_html__( 'Continuous Animation', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Yes', 'theplus' ),
				'label_off' => esc_html__( 'No', 'theplus' ),
				'default'   => '',
			)
		);
		$this->add_control(
			'icon_animation_effect',
			array(
				'label'       => esc_html__( 'Animation Effect', 'theplus' ),
				'type'        => Controls_Manager::SELECT,
				'default'     => 'pulse',
				'options'     => array(
					'pulse'      => esc_html__( 'Pulse', 'theplus' ),
					'floating'   => esc_html__( 'Floating', 'theplus' ),
					'tossing'    => esc_html__( 'Tossing', 'theplus' ),
					'rotating'   => esc_html__( 'Rotating', 'theplus' ),
					'drop_waves' => esc_html__( 'Drop Waves', 'theplus' ),
				),
				'render_type' => 'template',
				'condition'   => array(
					'icon_continuous_animation' => 'yes',
				),
			)
		);
		$this->add_control(
			'icon_animation_hover',
			array(
				'label'       => esc_html__( 'Hover Animation', 'theplus' ),
				'type'        => Controls_Manager::SWITCHER,
				'label_on'    => esc_html__( 'Yes', 'theplus' ),
				'label_off'   => esc_html__( 'No', 'theplus' ),
				'render_type' => 'template',
				'condition'   => array(
					'icon_continuous_animation' => 'yes',
				),
			)
		);
		$this->add_control(
			'icon_animation_duration',
			array(
				'label'      => esc_html__( 'Duration Time', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => 's',
				'range'      => array(
					's' => array(
						'min'  => 0.5,
						'max'  => 50,
						'step' => 0.1,
					),
				),
				'default'    => array(
					'unit' => 's',
					'size' => 2.5,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner' => 'animation-duration: {{SIZE}}{{UNIT}};-webkit-animation-duration: {{SIZE}}{{UNIT}};',
				),
				'condition'  => array(
					'icon_continuous_animation' => 'yes',
					'icon_animation_effect!'    => 'drop_waves',
				),
			)
		);
		$this->add_control(
			'icon_transform_origin',
			array(
				'label'       => esc_html__( 'Transform Origin', 'theplus' ),
				'type'        => Controls_Manager::SELECT,
				'default'     => 'center center',
				'options'     => array(
					'top left'      => esc_html__( 'Top Left', 'theplus' ),
					'top center"'   => esc_html__( 'Top Center', 'theplus' ),
					'top right'     => esc_html__( 'Top Right', 'theplus' ),
					'center left'   => esc_html__( 'Center Left', 'theplus' ),
					'center center' => esc_html__( 'Center Center', 'theplus' ),
					'center right'  => esc_html__( 'Center Right', 'theplus' ),
					'bottom left'   => esc_html__( 'Bottom Left', 'theplus' ),
					'bottom center' => esc_html__( 'Bottom Center', 'theplus' ),
					'bottom right'  => esc_html__( 'Bottom Right', 'theplus' ),
				),
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner' => '-webkit-transform-origin: {{VALUE}};-moz-transform-origin: {{VALUE}};-ms-transform-origin: {{VALUE}};-o-transform-origin: {{VALUE}};transform-origin: {{VALUE}};',
				),
				'render_type' => 'template',
				'condition'   => array(
					'icon_continuous_animation' => 'yes',
					'icon_animation_effect'     => 'rotating',
				),
			)
		);
		$this->add_control(
			'drop_waves_color',
			array(
				'label'     => esc_html__( 'Drop Wave Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner.image-drop_waves:after,{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner.hover_drop_waves:after' => 'background: {{VALUE}}',
				),
				'condition' => array(
					'icon_continuous_animation' => 'yes',
					'icon_animation_effect'     => 'drop_waves',
				),
			)
		);
		$this->add_control(
			'icon_radius',
			array(
				'label'      => esc_html__( 'Icon Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-icon img,{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner,{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner.image-drop_waves:after,{{WRAPPER}} .plus-device-wrapper .plus-device-icon .plus-device-icon-inner.hover_drop_waves:after' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'icon_size',
			array(
				'label'      => esc_html__( 'Icon Size', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'min'  => 20,
						'max'  => 500,
						'step' => 2,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 90,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-icon img' => 'max-width: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_carousal_styling',
			array(
				'label'     => esc_html__( 'Carousal Options', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode' => 'carousal',
				),
			)
		);
		$this->add_control(
			'carousal_columns',
			array(
				'label'   => esc_html__( 'Carousal Column', 'theplus' ),
				'type'    => Controls_Manager::SELECT,
				'default' => 'multiple',
				'options' => array(
					'single'   => esc_html__( 'Single Slide', 'theplus' ),
					'multiple' => esc_html__( 'Multiple', 'theplus' ),
				),
			)
		);
		$this->add_control(
			'carousal_infinite',
			array(
				'label'     => esc_html__( 'Infinite', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Enable', 'theplus' ),
				'label_off' => esc_html__( 'Disable', 'theplus' ),
				'default'   => 'yes',
			)
		);
		$this->add_control(
			'carousal_autoplay',
			array(
				'label'     => esc_html__( 'Autoplay', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Enable', 'theplus' ),
				'label_off' => esc_html__( 'Disable', 'theplus' ),
				'default'   => 'no',
			)
		);
		$this->add_control(
			'carousal_autoplay_speed',
			array(
				'label'     => esc_html__( 'Autoplay Speed', 'theplus' ),
				'type'      => Controls_Manager::SLIDER,
				'range'     => array(
					'' => array(
						'min'  => 500,
						'max'  => 10000,
						'step' => 10,
					),
				),
				'default'   => array(
					'unit' => '',
					'size' => 4000,
				),
				'condition' => array(
					'carousal_autoplay' => 'yes',
				),
			)
		);
		$this->add_control(
			'carousal_speed',
			array(
				'label'   => esc_html__( 'Slide Speed', 'theplus' ),
				'type'    => Controls_Manager::SLIDER,
				'range'   => array(
					'' => array(
						'min'  => 200,
						'max'  => 5000,
						'step' => 10,
					),
				),
				'default' => array(
					'unit' => '',
					'size' => 700,
				),
			)
		);
		$this->add_control(
			'carousal_dots',
			array(
				'label'     => esc_html__( 'Dots', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Enable', 'theplus' ),
				'label_off' => esc_html__( 'Disable', 'theplus' ),
				'default'   => 'no',
			)
		);
		$this->add_control(
			'carousal_arrows',
			array(
				'label'     => esc_html__( 'Arrows', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Enable', 'theplus' ),
				'label_off' => esc_html__( 'Disable', 'theplus' ),
				'default'   => 'no',
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_carousel_slide_styling',
			array(
				'label'     => esc_html__( 'Carousel Slide', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode' => 'carousal',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_slide_gap',
			array(
				'label'     => esc_html__( 'Slide Gap/Space', 'theplus' ),
				'type'      => Controls_Manager::SLIDER,
				'range'     => array(
					'px' => array(
						'min'  => -10,
						'max'  => 300,
						'step' => 1,
					),
				),
				'default'   => array(
					'unit' => 'px',
					'size' => 10,
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide' => 'margin-left: {{SIZE}}{{UNIT}};margin-right: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_slide_margin',
			array(
				'label'      => esc_html__( 'List Margin', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .slick-slider .slick-list' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_slide_vertical',
			array(
				'label'      => esc_html__( 'Adjust Slide Space', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => -100,
						'max'  => 100,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 15,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide' => 'margin-top: {{SIZE}}{{UNIT}};margin-bottom: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_width',
			array(
				'label'      => esc_html__( 'Carousal Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 100,
						'max'  => 1000,
						'step' => 2,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 330,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-carousal-device-mokeup,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal.column-single' => 'max-width: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide' => 'width: calc({{SIZE}}{{UNIT}} - 15px);',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_mockup_width',
			array(
				'label'      => esc_html__( 'Mockup Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 100,
						'max'  => 1000,
						'step' => 2,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-carousal-device-mokeup,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal.column-single' => 'max-width: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_mockup_height',
			array(
				'label'      => esc_html__( 'Mockup Height', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 100,
						'max'  => 1000,
						'step' => 2,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode' => array( 'carousal' ),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-carousal-device-mokeup,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal.column-single' => 'min-height: {{SIZE}}{{UNIT}};max-height: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'carousal_mockup_top_offset',
			array(
				'label'      => esc_html__( 'Mockup Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => -500,
						'max'  => 500,
						'step' => 10,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-carousal-device-mokeup' => 'top: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_control(
			'mockup_zindex',
			array(
				'label'     => esc_html__( 'Z-Index', 'theplus' ),
				'type'      => Controls_Manager::NUMBER,
				'min'       => -100,
				'max'       => 10000,
				'step'      => 10,
				'selectors' => array(
					'{{WRAPPER}} .plus-carousal-device-mokeup' => 'z-index: {{VALUE}};',
				),
			)
		);
		$this->start_controls_tabs( 'slide_shadow_style' );
		$this->start_controls_tab(
			'slide_shadow_normal',
			array(
				'label' => esc_html__( 'Normal', 'theplus' ),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'slide_box_shadow',
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide:not(.slick-center)',
			)
		);
		$this->add_control(
			'slide_opacity_normal',
			array(
				'label'     => esc_html__( 'Slide Opacity', 'theplus' ),
				'type'      => Controls_Manager::SLIDER,
				'default'   => array(
					'unit' => '',
					'size' => 1,
				),
				'range'     => array(
					'' => array(
						'max'  => 1,
						'min'  => 0.10,
						'step' => 0.01,
					),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide:not(.slick-center)' => 'opacity: {{SIZE}};',
				),
			)
		);
		$this->add_control(
			'slide_opacity_scale',
			array(
				'label'     => esc_html__( 'Slide Scale', 'theplus' ),
				'type'      => Controls_Manager::SLIDER,
				'default'   => array(
					'unit' => '',
					'size' => 1,
				),
				'range'     => array(
					'' => array(
						'max'  => 2,
						'min'  => -0.5,
						'step' => 0.01,
					),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide:not(.slick-center)' => 'transform: scale({{SIZE}});',
				),
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'slide_shadow_hover',
			array(
				'label' => esc_html__( 'Hover', 'theplus' ),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'slide_box_hover_shadow',
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide:hover:not(.slick-center)',
			)
		);
		$this->add_control(
			'slide_opacity_hover',
			array(
				'label'     => esc_html__( 'Slide Hover Opacity', 'theplus' ),
				'type'      => Controls_Manager::SLIDER,
				'default'   => array(
					'unit' => '',
					'size' => 1,
				),
				'range'     => array(
					'' => array(
						'max'  => 1,
						'min'  => 0.10,
						'step' => 0.01,
					),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-slide:hover:not(.slick-center)' => 'opacity: {{SIZE}};',
				),
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();

		$this->start_controls_section(
			'section_carousel_dots_styling',
			array(
				'label'     => esc_html__( 'Carousel Dots', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode'   => 'carousal',
					'carousal_dots' => 'yes',
				),
			)
		);
		$this->start_controls_tabs( 'tabs_carousel_dots_style' );
		$this->start_controls_tab(
			'tab_cd_normal',
			array(
				'label' => esc_html__( 'Normal', 'theplus' ),
			)
		);
		$this->add_responsive_control(
			'cd_font_size',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Size', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-dots button::before' => 'font-size: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_control(
			'cd_color',
			array(
				'label'     => esc_html__( 'Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-dots button::before' => 'color:{{VALUE}};opacity:1;',
				),
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tab_cd_active',
			array(
				'label' => esc_html__( 'Active', 'theplus' ),
			)
		);
		$this->add_responsive_control(
			'cd_font_size_ah',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Size', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-dots .slick-active button::before' => 'font-size: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_control(
			'cd_color_ah',
			array(
				'label'     => esc_html__( 'Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-dots .slick-active button::before' => 'color:{{VALUE}};opacity:1;',
				),
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->add_responsive_control(
			'cd_gap',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Gap', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 1,
						'max'  => 150,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-dots li' => 'width:{{SIZE}}{{UNIT}};height:{{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'cd_offset',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Offset', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -500,
						'max'  => 500,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-dots' => 'bottom: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_carousel_arrows_styling',
			array(
				'label'     => esc_html__( 'Carousel Arrows', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode'     => 'carousal',
					'carousal_arrows' => 'yes',
				),
			)
		);
		$this->add_responsive_control(
			'ca_offset',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Gap', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -500,
						'max'  => 500,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev' => 'left: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next' => 'right: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'ca_offset_up_down',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Offset', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -700,
						'max'  => 700,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next' => 'top: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'ca_icon_size',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Icon Size', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 1,
						'max'  => 180,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:before,
					{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:before' => 'font-size: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'ca_bg_size',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Background Size', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 1,
						'max'  => 200,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
				'selectors'   => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev,
					{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next' => 'width: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->start_controls_tabs( 'tabs_carousel_arrows_style' );
		$this->start_controls_tab(
			'tab_ca_normal',
			array(
				'label' => esc_html__( 'Normal', 'theplus' ),
			)
		);
		$this->add_control(
			'can_color',
			array(
				'label'     => esc_html__( 'Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:before,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:before' => 'color:{{VALUE}};',
				),
			)
		);
		$this->add_control(
			'can_background',
			array(
				'label'     => esc_html__( 'Background', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next' => 'background:{{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'can_border',
				'label'    => esc_html__( 'Border', 'theplus' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next',
			)
		);
		$this->add_responsive_control(
			'can_br',
			array(
				'label'      => esc_html__( 'Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'can_shadow',
				'label'    => esc_html__( 'Box Shadow', 'theplus' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tab_ca_hover',
			array(
				'label' => esc_html__( 'Hover', 'theplus' ),
			)
		);
		$this->add_control(
			'cah_color',
			array(
				'label'     => esc_html__( 'Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:hover:before,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:hover:before' => 'color:{{VALUE}};',
				),
			)
		);
		$this->add_control(
			'cah_background',
			array(
				'label'     => esc_html__( 'Background', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:hover,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:hover' => 'background:{{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'cah_border',
				'label'    => esc_html__( 'Border', 'theplus' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:hover,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:hover',
			)
		);
		$this->add_responsive_control(
			'cah_br',
			array(
				'label'      => esc_html__( 'Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:hover,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'cah_shadow',
				'label'    => esc_html__( 'Box Shadow', 'theplus' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-prev:hover,{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .slick-next:hover',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();

		$this->start_controls_section(
			'section_device_styling',
			array(
				'label' => esc_html__( 'Device Layout', 'theplus' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_responsive_control(
			'device_width',
			array(
				'type'            => Controls_Manager::SLIDER,
				'label'           => esc_html__( 'Width Adjust(%)', 'theplus' ),
				'size_units'      => array( '%' ),
				'range'           => array(
					'%' => array(
						'min'  => 10,
						'max'  => 100,
						'step' => 0.5,
					),
				),
				'devices'         => array( 'desktop', 'tablet', 'mobile' ),
				'desktop_default' => array(
					'size' => 100,
					'unit' => '%',
				),
				'tablet_default'  => array(
					'size' => 100,
					'unit' => '%',
				),
				'mobile_default'  => array(
					'size' => 100,
					'unit' => '%',
				),
				'selectors'       => array(
					'{{WRAPPER}} .plus-device-wrapper' => 'width: {{SIZE}}%;margin: 0 auto;text-align: center;display: block;',
				),
				'render_type'     => 'ui',
			)
		);
		$this->add_responsive_control(
			'device_alignment',
			array(
				'label'     => esc_html__( 'Alignment', 'theplus' ),
				'type'      => Controls_Manager::CHOOSE,
				'options'   => array(
					'left'  => array(
						'title' => esc_html__( 'Left', 'theplus' ),
						'icon'  => 'eicon-text-align-left',
					),
					'unset' => array(
						'title' => esc_html__( 'Center', 'theplus' ),
						'icon'  => 'eicon-text-align-center',
					),
					'right' => array(
						'title' => esc_html__( 'Right', 'theplus' ),
						'icon'  => 'eicon-text-align-right',
					),
				),
				'devices'   => array( 'desktop', 'tablet', 'mobile' ),
				'default'   => 'unset',
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper' => 'float: {{VALUE}}',
				),
			)
		);
		$this->add_responsive_control(
			'device_margin',
			array(
				'label'              => esc_html__( 'Margin', 'theplus' ),
				'type'               => Controls_Manager::DIMENSIONS,
				'size_units'         => array( 'px', '%', 'em' ),
				'allowed_dimensions' => 'vertical',
				'selectors'          => array(
					'{{WRAPPER}} .plus-device-wrapper' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'device_padding',
			array(
				'label'      => esc_html__( 'Padding', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_device_bg_styling',
			array(
				'label' => esc_html__( 'Device Background', 'theplus' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_control(
			'scroll_image_effect',
			array(
				'label'     => esc_html__( 'Scroll Image', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'On', 'theplus' ),
				'label_off' => esc_html__( 'Off', 'theplus' ),
				'default'   => 'no',
				'condition' => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'image' ),
				),
			)
		);
		$this->add_control(
			'scroll_image_effect_manual',
			array(
				'label'     => esc_html__( 'Manual Scroll', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'On', 'theplus' ),
				'label_off' => esc_html__( 'Off', 'theplus' ),
				'default'   => 'no',
				'condition' => array(
					'device_mode'         => array( 'normal' ),
					'content_type'        => array( 'image' ),
					'scroll_image_effect' => 'yes',
				),
			)
		);
		$this->add_control(
			'scroll_image_effect_manual_image',
			array(
				'type'       => Controls_Manager::SLIDER,
				'label'      => esc_html__( 'Width', 'theplus' ),
				'size_units' => array( '%' ),
				'range'      => array(
					'px' => array(
						'step' => 1,
						'min'  => 1,
						'max'  => 100,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual img' => 'width: {{SIZE}}%;',
				),
				'condition'  => array(
					'device_mode'                => array( 'normal' ),
					'content_type'               => array( 'image' ),
					'scroll_image_effect'        => 'yes',
					'scroll_image_effect_manual' => 'yes',
				),
			)
		);
		$this->add_responsive_control(
			'transition_duration',
			array(
				'label'     => wp_kses_post(
					sprintf(
						'%s <a class="tp-docs-link" href="%s" target="_blank" rel="noopener noreferrer"><i class="eicon-help-o"></i></a>',
						esc_html__( 'Transition Duration', 'theplus' ),
						esc_url( $this->tp_doc . 'create-website-portfolio-showcase-page-in-elementor/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget' )
					)
				),
				'type'      => Controls_Manager::SLIDER,
				'default'   => array(
					'size' => 4,
				),
				'range'     => array(
					'px' => array(
						'step' => 0.1,
						'min'  => 0.1,
						'max'  => 10,
					),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image' => 'transition: background-position {{SIZE}}s ease-in-out;-webkit-transition: background-position {{SIZE}}s ease-in-out;',
				),
				'condition' => array(
					'device_mode'         => array( 'normal' ),
					'content_type'        => array( 'image' ),
					'scroll_image_effect' => 'yes',
				),
			)
		);
		$this->add_control(
			'dd_unique_id',
			array(
				'label'       => esc_html__( 'Dynamic Device Connection ID', 'theplus' ),
				'type'        => Controls_Manager::TEXT,
				'ai'          => false,
				'default'     => '',
				'description' => wp_kses_post(
					sprintf(
						'<p class="tp-controller-label-text"><i>%s</i></p>',
						esc_html__( 'This option is to connect Multiple Dynamic Device for Same Hover Effect', 'theplus' ),
					)
				),
				'condition'   => array(
					'device_mode'                 => array( 'normal' ),
					'content_type'                => array( 'image' ),
					'scroll_image_effect'         => 'yes',
					'scroll_image_effect_manual!' => 'yes',
				),
			)
		);
		$this->add_control(
			'shadow_options',
			array(
				'label' => esc_html__( 'Box Shadow', 'theplus' ),
				'type'  => Controls_Manager::HEADING,
			)
		);
		$this->start_controls_tabs( 'shadow_style' );
		$this->start_controls_tab(
			'shadow_normal',
			array(
				'label' => esc_html__( 'Normal', 'theplus' ),
			)
		);
		$this->add_control(
			'drop_shadow',
			array(
				'label'        => __( 'Drop Shadow', 'theplus' ),
				'type'         => Controls_Manager::POPOVER_TOGGLE,
				'label_off'    => __( 'Disable', 'theplus' ),
				'label_on'     => __( 'Enable', 'theplus' ),
				'return_value' => 'yes',
				'default'      => 'no',
			)
		);
		$this->start_popover();
		$this->add_control(
			'dd_ds_x',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'X', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -250,
						'max'  => 250,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
			)
		);
		$this->add_control(
			'dd_ds_y',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Y', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -250,
						'max'  => 250,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
			)
		);
		$this->add_control(
			'dd_ds_blur',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Blur', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => 0.1,
					),
				),
				'render_type' => 'ui',
			)
		);
		$this->add_control(
			'dd_ds_color',
			array(
				'label'     => esc_html__( 'Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-shape,{{WRAPPER}} .plus-device-wrapper .plus-carousal-device-mokeup' => 'filter : drop-shadow({{dd_ds_x.SIZE}}{{dd_ds_x.UNIT}} {{dd_ds_y.SIZE}}{{dd_ds_y.UNIT}} {{dd_ds_blur.SIZE}}{{dd_ds_blur.UNIT}} {{VALUE}})',
				),
			)
		);
		$this->end_popover();
		$this->end_controls_tab();
		$this->start_controls_tab(
			'shadow_hover',
			array(
				'label' => esc_html__( 'Hover', 'theplus' ),
			)
		);
		$this->add_control(
			'drop_shadow_h',
			array(
				'label'        => __( 'Drop Shadow', 'theplus' ),
				'type'         => Controls_Manager::POPOVER_TOGGLE,
				'label_off'    => __( 'Disable', 'theplus' ),
				'label_on'     => __( 'Enable', 'theplus' ),
				'return_value' => 'yes',
				'default'      => 'no',
			)
		);
		$this->start_popover();
		$this->add_control(
			'dd_ds_x_h',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'X', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -250,
						'max'  => 250,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
			)
		);
		$this->add_control(
			'dd_ds_y_h',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Y', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => -250,
						'max'  => 250,
						'step' => 1,
					),
				),
				'render_type' => 'ui',
			)
		);
		$this->add_control(
			'dd_ds_blur_h',
			array(
				'type'        => Controls_Manager::SLIDER,
				'label'       => esc_html__( 'Blur', 'theplus' ),
				'size_units'  => array( 'px' ),
				'range'       => array(
					'px' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => 0.1,
					),
				),
				'render_type' => 'ui',
			)
		);
		$this->add_control(
			'dd_ds_color_h',
			array(
				'label'     => esc_html__( 'Color', 'theplus' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper:hover .plus-device-shape,{{WRAPPER}} .plus-device-wrapper .plus-carousal-device-mokeup:hover' => 'filter : drop-shadow({{dd_ds_x_h.SIZE}}{{dd_ds_x_h.UNIT}} {{dd_ds_y_h.SIZE}}{{dd_ds_y_h.UNIT}} {{dd_ds_blur_h.SIZE}}{{dd_ds_blur_h.UNIT}} {{VALUE}})',
				),
			)
		);
		$this->end_popover();
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();

		$this->start_controls_section(
			'section_image_slide_styling',
			array(
				'label'     => esc_html__( 'Image', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode' => array( 'carousal' ),
				),
			)
		);
		$this->add_responsive_control(
			'image_border_radius_slide',
			array(
				'label'      => esc_html__( 'Image Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .plus-device-slide img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'cimage_width',
			array(
				'label'      => esc_html__( 'Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .plus-device-slide img' => 'width: {{SIZE}}{{UNIT}} !important;',
				),
			)
		);
		$this->add_responsive_control(
			'cimage_height',
			array(
				'label'      => esc_html__( 'Height', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .plus-device-slide img' => 'height: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'cimage_offset',
			array(
				'label'      => esc_html__( 'Top Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .plus-device-slide img' => 'margin-top: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'cimage_l_offset',
			array(
				'label'      => esc_html__( 'Left Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .plus-device-slide img' => 'margin-left: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_control(
			'cmedia_transform',
			array(
				'label'        => esc_html__( 'Transform', 'theplus' ),
				'type'         => Controls_Manager::POPOVER_TOGGLE,
				'label_off'    => __( 'Default', 'theplus' ),
				'label_on'     => __( 'Custom', 'theplus' ),
				'return_value' => 'yes',
			)
		);
		$this->start_popover();
		$this->add_control(
			'ctransform_x',
			array(
				'label'      => esc_html__( 'X', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'max'  => 1000,
						'min'  => -1000,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 0,
				),
				'condition'  => array(
					'cmedia_transform' => 'yes',
				),
			)
		);
		$this->add_control(
			'ctransform_y',
			array(
				'label'      => esc_html__( 'Y', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'max'  => 1000,
						'min'  => -1000,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 0,
				),
				'condition'  => array(
					'cmedia_transform' => 'yes',
				),
			)
		);
		$this->add_control(
			'ctransform_rotate',
			array(
				'label'      => esc_html__( 'Rotate', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'max'  => 360,
						'min'  => -360,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 0,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal .plus-device-slide img' => 'transform: rotate({{ctransform_rotate.SIZE}}deg) translateY({{ctransform_y.SIZE}}{{ctransform_y.UNIT}}) translateX({{ctransform_x.SIZE}}{{ctransform_x.UNIT}});-ms-transform:rotate({{ctransform_rotate.SIZE}}deg) translateY({{ctransform_y.SIZE}}{{ctransform_y.UNIT}}) translateX({{ctransform_x.SIZE}}{{ctransform_x.UNIT}});-moz-transform:rotate({{ctransform_rotate.SIZE}}deg) translateY({{ctransform_y.SIZE}}{{ctransform_y.UNIT}}) translateX({{ctransform_x.SIZE}}{{ctransform_x.UNIT}});-webkit-transform:rotate({{ctransform_rotate.SIZE}}deg) translateY({{ctransform_y.SIZE}}{{ctransform_y.UNIT}}) translateX({{ctransform_x.SIZE}}{{ctransform_x.UNIT}});',
				),
				'condition'  => array(
					'cmedia_transform' => 'yes',
				),
			)
		);
		$this->end_popover();
		$this->add_control(
			'image_zindex_slide',
			array(
				'label'     => esc_html__( 'Z-Index', 'theplus' ),
				'type'      => Controls_Manager::NUMBER,
				'min'       => -100,
				'max'       => 10000,
				'step'      => 1,
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-carousal' => 'z-index: {{VALUE}};',
				),
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_image_styling',
			array(
				'label'     => esc_html__( 'Image', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'image' ),
				),
			)
		);
		$this->add_responsive_control(
			'image_border_radius',
			array(
				'label'      => esc_html__( 'Image Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-media img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'image_outer_border_radius',
			array(
				'label'      => esc_html__( 'Scroll Image Outer Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
				'condition'  => array(
					'scroll_image_effect' => 'yes',
				),
			)
		);
		$this->add_responsive_control(
			'image_width',
			array(
				'label'      => esc_html__( 'Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'          => array( 'normal' ),
					'device_mockup'        => array( 'custom' ),
					'scroll_image_effect!' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media img' => 'width: {{SIZE}}{{UNIT}} !important;',
				),
			)
		);
		$this->add_responsive_control(
			'image_height',
			array(
				'label'      => esc_html__( 'Height', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'          => array( 'normal' ),
					'device_mockup'        => array( 'custom' ),
					'scroll_image_effect!' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media img' => 'height: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'image_offset',
			array(
				'label'      => esc_html__( 'Top Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'          => array( 'normal' ),
					'device_mockup'        => array( 'custom' ),
					'scroll_image_effect!' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media img' => 'margin-top: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'image_l_offset',
			array(
				'label'      => esc_html__( 'Left Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'          => array( 'normal' ),
					'device_mockup'        => array( 'custom' ),
					'scroll_image_effect!' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media img' => 'margin-left: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'image_s_width',
			array(
				'label'      => esc_html__( 'Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'         => array( 'normal' ),
					'device_mockup'       => array( 'custom' ),
					'scroll_image_effect' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media.tp-img-scrl-enable' => 'width: {{SIZE}}{{UNIT}}  !important;',
				),
			)
		);
		$this->add_responsive_control(
			'image_s_height',
			array(
				'label'      => esc_html__( 'Height', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'         => array( 'normal' ),
					'device_mockup'       => array( 'custom' ),
					'scroll_image_effect' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media.tp-img-scrl-enable' => 'height: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'image_s_offset',
			array(
				'label'      => esc_html__( 'Top Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => -1000,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'         => array( 'normal' ),
					'device_mockup'       => array( 'custom' ),
					'scroll_image_effect' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media.tp-img-scrl-enable' => 'margin-top: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'image_s_l_offset',
			array(
				'label'      => esc_html__( 'Left Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => -1000,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mode'         => array( 'normal' ),
					'device_mockup'       => array( 'custom' ),
					'scroll_image_effect' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media.tp-img-scrl-enable' => 'margin-left: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_control(
			'image_zindex',
			array(
				'label'     => esc_html__( 'Z-Index', 'theplus' ),
				'type'      => Controls_Manager::NUMBER,
				'min'       => -100,
				'max'       => 10000,
				'step'      => 10,
				'condition' => array(
					'device_mode'   => array( 'normal' ),
					'device_mockup' => array( 'custom' ),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper.device-type-custom.custom-device-mockup .plus-device-inner .plus-device-media' => 'z-index: {{VALUE}};',
				),
			)
		);
		$this->add_control(
			'media_transform',
			array(
				'label'        => esc_html__( 'Transform', 'theplus' ),
				'type'         => Controls_Manager::POPOVER_TOGGLE,
				'label_off'    => __( 'Default', 'theplus' ),
				'label_on'     => __( 'Custom', 'theplus' ),
				'return_value' => 'yes',
			)
		);
		$this->start_popover();
		$this->add_control(
			'transform_x',
			array(
				'label'      => esc_html__( 'X', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'max'  => 1000,
						'min'  => -1000,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 0,
				),
				'condition'  => array(
					'media_transform' => 'yes',
				),
			)
		);
		$this->add_control(
			'transform_y',
			array(
				'label'      => esc_html__( 'Y', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'max'  => 1000,
						'min'  => -1000,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 0,
				),
				'condition'  => array(
					'media_transform' => 'yes',
				),
			)
		);
		$this->add_control(
			'transform_rotate',
			array(
				'label'      => esc_html__( 'Rotate', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'max'  => 360,
						'min'  => -360,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 0,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-media' => 'transform: rotate({{transform_rotate.SIZE}}deg) translateY({{transform_y.SIZE}}{{transform_y.UNIT}}) translateX({{transform_x.SIZE}}{{transform_x.UNIT}});-ms-transform:rotate({{transform_rotate.SIZE}}deg) translateY({{transform_y.SIZE}}{{transform_y.UNIT}}) translateX({{transform_x.SIZE}}{{transform_x.UNIT}});-moz-transform:rotate({{transform_rotate.SIZE}}deg) translateY({{transform_y.SIZE}}{{transform_y.UNIT}}) translateX({{transform_x.SIZE}}{{transform_x.UNIT}});-webkit-transform:rotate({{transform_rotate.SIZE}}deg) translateY({{transform_y.SIZE}}{{transform_y.UNIT}}) translateX({{transform_x.SIZE}}{{transform_x.UNIT}});',
				),
				'condition'  => array(
					'media_transform' => 'yes',
				),
			)
		);
		$this->end_popover();
		$this->end_controls_section();

		$this->start_controls_section(
			'section_template_styling',
			array(
				'label'     => esc_html__( 'Template', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'device_mode'  => array( 'normal' ),
					'content_type' => array( 'template' ),
				),
			)
		);
		$this->add_responsive_control(
			'template_width',
			array(
				'label'      => esc_html__( 'Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mockup'        => array( 'custom' ),
					'scroll_image_effect!' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-inner .plus-device-media' => 'width: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'template_height',
			array(
				'label'      => esc_html__( 'Height', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'condition'  => array(
					'device_mockup'        => array( 'custom' ),
					'scroll_image_effect!' => 'yes',
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-inner .plus-device-media' => 'height: {{SIZE}}{{UNIT}};overflow:hidden;',
				),
			)
		);
		$this->add_responsive_control(
			'template_offset',
			array(
				'label'      => esc_html__( 'Top Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-inner .plus-device-media' => 'margin-top: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'template_l_offset',
			array(
				'label'      => esc_html__( 'Left Offset', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 1000,
						'step' => 1,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-inner .plus-device-media' => 'margin-left: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_control(
			'template_zindex',
			array(
				'label'     => esc_html__( 'Z-Index', 'theplus' ),
				'type'      => Controls_Manager::NUMBER,
				'min'       => -100,
				'max'       => 10000,
				'step'      => 10,
				'condition' => array(
					'device_mockup' => array( 'custom' ),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-device-inner .plus-device-media' => 'z-index: {{VALUE}};',
				),
			)
		);
		$this->add_control(
			'scroll_template_effect',
			array(
				'label'     => esc_html__( 'On Hover Scroll', 'theplus' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'On', 'theplus' ),
				'label_off' => esc_html__( 'Off', 'theplus' ),
				'default'   => 'no',
			)
		);
		$this->add_responsive_control(
			'temp_transition_duration',
			array(
				'label'     => esc_html__( 'Transition Duration', 'theplus' ),
				'type'      => Controls_Manager::SLIDER,
				'default'   => array(
					'size' => 10,
				),
				'range'     => array(
					'px' => array(
						'step' => 1,
						'min'  => 1,
						'max'  => 50,
					),
				),
				'selectors' => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .elementor>.elementor-inner>.elementor-section-wrap' => '-webkit-transition:all {{SIZE}}s linear;-moz-transition:all {{SIZE}}s linear;-o-transition:all {{SIZE}}s linear;-ms-transition:all {{SIZE}}s linear;transition:all {{SIZE}}s linear;',
				),
				'condition' => array(
					'scroll_template_effect' => 'yes',
				),
			)
		);
		$this->end_controls_section();

		$this->start_controls_section(
			'section_device_scroll_styling',
			array(
				'label'     => esc_html__( 'Image Scrolling Bar', 'theplus' ),
				'tab'       => Controls_Manager::TAB_STYLE,
				'condition' => array(
					'scroll_image_effect'        => 'yes',
					'scroll_image_effect_manual' => 'yes',
					'content_type!'              => 'iframe',
				),
			)
		);
		$this->start_controls_tabs( 'tabs_scrolling_bar_style' );
		$this->start_controls_tab(
			'tab_scrolling_bar_scrollbar',
			array(
				'label' => esc_html__( 'Scrollbar', 'theplus' ),
			)
		);
		$this->add_control(
			'scroll_scrollbar_width',
			array(
				'label'      => esc_html__( 'ScrollBar Width', 'theplus' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px' ),
				'range'      => array(
					'px' => array(
						'min'  => 0,
						'max'  => 100,
						'step' => 1,
					),
				),
				'default'    => array(
					'unit' => 'px',
					'size' => 10,
				),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar' => 'width: {{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'scroll_scrollbar_background',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tab_scrolling_bar_thumb',
			array(
				'label' => esc_html__( 'Thumb', 'theplus' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'scroll_thumb_background',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar-thumb',
			)
		);
		$this->add_responsive_control(
			'scroll_thumb_border_radius',
			array(
				'label'      => esc_html__( 'Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar-thumb' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'scroll_thumb_shadow',
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar-thumb',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tab_scrolling_bar_track',
			array(
				'label' => esc_html__( 'Track', 'theplus' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'scroll_track_background',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar-track',
			)
		);
		$this->add_responsive_control(
			'scroll_track_border_radius',
			array(
				'label'      => esc_html__( 'Border Radius', 'theplus' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar-track' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'scroll_track_shadow',
				'selector' => '{{WRAPPER}} .plus-device-wrapper .plus-media-inner .creative-scroll-image.manual::-webkit-scrollbar-track',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();

		$this->start_controls_section(
			'section_plus_extra_adv',
			array(
				'label' => esc_html__( 'Plus Extras', 'theplus' ),
				'tab'   => Controls_Manager::TAB_ADVANCED,
			)
		);
		$this->end_controls_section();

		/*--On Scroll View Animation ---*/
		include L_THEPLUS_PATH . 'modules/widgets/theplus-widget-animation.php';
	}

	/**
	 * Render Dynamic Devices
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	protected function render() {
		$settings = $this->get_settings_for_display();

		$imgAlt = ! empty( $settings['media_image']['alt'] ) ? $settings['media_image']['alt'] : '';

		$device_mode  = ! empty( $settings['device_mode'] ) ? $settings['device_mode'] : 'normal';
		$content_type = ! empty( $settings['content_type'] ) ? $settings['content_type'] : 'image';
		$dd_unique_id = ! empty( $settings['dd_unique_id'] ) ? $settings['dd_unique_id'] : '';

		$device_mockup = ! empty( $settings['device_mockup'] ) ? $settings['device_mockup'] : 'laptop';
		$device_mobile = ! empty( $settings['device_mobile'] ) ? $settings['device_mobile'] : 'iphone-white-flat';
		$device_tablet = ! empty( $settings['device_tablet'] ) ? $settings['device_tablet'] : 'ipad-vertical-white';
		$device_laptop = ! empty( $settings['device_laptop'] ) ? $settings['device_laptop'] : 'laptop-macbook-black';

		$device_desktop    = ! empty( $settings['device_desktop'] ) ? $settings['device_desktop'] : 'desktop-imac-minimal';
		$device_link_popup = ! empty( $settings['device_link_popup'] ) ? $settings['device_link_popup'] : '';

		$scroll_image_effect    = ! empty( $settings['scroll_image_effect'] ) ? $settings['scroll_image_effect'] : 'no';
		$device_mockup_carousal = ! empty( $settings['device_mockup_carousal'] ) ? $settings['device_mockup_carousal'] : 'mobile';

		/*--On Scroll View Animation ---*/
		include L_THEPLUS_PATH . 'modules/widgets/theplus-widget-animation-attr.php';

		/*--Plus Extra ---*/
		$PlusExtra_Class = 'plus-flip-box-widget';
		include THEPLUS_PATH . 'modules/widgets/theplus-widgets-extra.php';

		$media_content = '';
		$layout_shape  = '';
		$device_class  = '';
		if ( 'normal' === $device_mode ) {
			if ( 'mobile' === $device_mockup ) {
				$layout_shape  = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $device_mobile ) . '.png" class="plus-device-image" alt="Plus mobile device">';
				$device_class .= esc_attr( $device_mobile );
			} elseif ( 'tablet' === $device_mockup ) {
				$layout_shape  = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $device_tablet ) . '.png" class="plus-device-image" alt="Plus tablet device">';
				$device_class .= esc_attr( $device_tablet );
			} elseif ( 'laptop' === $device_mockup ) {
				$layout_shape  = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $device_laptop ) . '.png" class="plus-device-image" alt="Plus laptop device">';
				$device_class .= esc_attr( $device_laptop );
			} elseif ( 'desktop' === $device_mockup ) {
				$layout_shape  = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $device_desktop ) . '.png" class="plus-device-image" alt="Plus desktop device">';
				$device_class .= esc_attr( $device_desktop );
			} elseif ( 'custom' === $device_mockup ) {
				$custom_image  = ! empty( $settings['custom_image']['url'] ) ? $settings['custom_image']['url'] : '';
				$layout_shape  = '<img src="' . esc_url( $custom_image ) . '" class="plus-device-image" alt="Plus custom device">';
				$device_class .= ' custom-device-mockup';
			}

			$device_url = '';

			$device_url_close = '';
			if ( ! empty( $device_link_popup ) && ! empty( $settings['device_link']['url'] ) ) {
				$this->add_render_attribute( 'device_url', 'href', esc_url( $settings['device_link']['url'] ) );
				if ( $settings['device_link']['is_external'] ) {
					$this->add_render_attribute( 'device_url', 'target', '_blank' );
				}
				if ( $settings['device_link']['nofollow'] ) {
					$this->add_render_attribute( 'device_url', 'rel', 'nofollow' );
				}
				if ( 'popup' === $device_link_popup ) {
					$this->add_render_attribute( 'device_url', 'data-lity', '' );
				}
				$device_url = '<a ' . $this->get_render_attribute_string( 'device_url' ) . ' class="plus-media-link">';

				$device_url_close = '</a>';
			}

			$icon_effect = '';
			if ( ! empty( $settings['icon_continuous_animation'] ) && 'yes' === $settings['icon_continuous_animation'] ) {
				if ( 'yes' === $settings['icon_animation_hover'] ) {
					$animation_class = 'hover_';
				} else {
					$animation_class = 'image-';
				}
				$icon_effect = $animation_class . $settings['icon_animation_effect'];
			}

			$device_icon_center = '';
			if ( ! empty( $settings['icon_show'] ) && 'yes' === $settings['icon_show'] && ! empty( $settings['icon_image']['url'] ) ) {
				$image_id = $settings['icon_image']['id'];
				$imgSrc   = tp_get_image_rander( $image_id, 'full' );

				$device_icon_center .= '<div class="plus-device-icon">';

				$device_icon_center .= '<div class="plus-device-icon-inner ' . esc_attr( $icon_effect ) . '">';

				$device_icon_center .= $imgSrc;

				$device_icon_center .= '</div>';

				$device_icon_center .= '</div>';
			}

			$scroll_image = '';
			$scroll_class = '';

			$scroll_image_content = '';
			if ( 'yes' === $scroll_image_effect ) {
				$scroll_image = 'scroll-image-wrap';

				$scroll_image_effect_manual = isset( $settings['scroll_image_effect_manual'] ) ? $settings['scroll_image_effect_manual'] : 'no';
				if ( 'yes' === $scroll_image_effect_manual && ! empty( $settings['media_image']['url'] ) && 'image' === $content_type ) {
					$scroll_image_content = '<div class="creative-scroll-image manual"><img src="' . esc_url( $settings['media_image']['url'] ) . '" alt="' . esc_attr( $imgAlt ) . '"/></div>';
				} else {
					$this->add_render_attribute( 'scroll-image', 'style', 'background-image: url(' . esc_url( $settings['media_image']['url'] ) . ');' );
					$scroll_image_content = '<div class="creative-scroll-image" ' . $this->get_render_attribute_string( 'scroll-image' ) . '></div>';
				}

				$scroll_class = ' tp-img-scrl-enable';
			}

			if ( ! empty( $layout_shape ) ) {
				$media_content = '<div class="plus-media-inner">';

				$media_content .= '<div class="plus-media-screen">';

				$media_content .= '<div class="plus-media-screen-inner ' . esc_attr( $scroll_image ) . '">';

				$content_template = ! empty( $settings['content_template'] ) ? $settings['content_template'] : '';

				if ( 'iframe' === $content_type && ! empty( $settings['iframe_link']['url'] ) ) {
					$media_content .= '<iframe width="100%" height="100%" frameborder="0" src="' . esc_url( $settings['iframe_link']['url'] ) . '"/></iframe>';
				} elseif ( 'template' === $content_type ) {

					if ( empty( $content_template ) || '0' === $content_template ) {
						$media_content .= '<div class="tab-preview-template-notice">
									<div class="preview-temp-notice-heading">' . esc_html__( 'Select Template', 'theplus' ) . '</div>
									<div class="preview-temp-notice-desc">' . esc_html__( 'Please select a template to display its content.', 'theplus' ) . '</div>
								</div>';
					} else {
						if ( has_filter( 'wpml_object_id' ) ) {
							$content_template = apply_filters( 'wpml_object_id', $content_template, get_post_type( $content_template ), true );
						}

						$template_status = get_post_status( $content_template );

						if ( 'publish' === $template_status ) {
							$media_content .= Theplus_Element_Load::elementor()->frontend->get_builder_content_for_display( $content_template, true );
						} else {
							$media_content .= '<div class="tab-preview-template-notice"><div class="preview-temp-notice-heading">' . esc_html__( 'Unauthorized Access', 'theplus' ) . '</b></div><div class="preview-temp-notice-desc"><b>' . esc_html__( 'Note :', 'theplus' ) . '</b> ' . esc_html__( 'You need to upgrade your permissions to Editor or Administrator level to update this option.', 'theplus' ) . '</div></div>';
						}
					}
				} elseif ( 'yes' === $scroll_image_effect ) {
					$media_content .= $scroll_image_content;
				} elseif ( ! empty( $settings['media_image']['url'] ) ) {
					$image_id = $settings['media_image']['id'];
					$imgSrc1  = tp_get_image_rander( $image_id, 'full', array( 'class' => 'plus-media-image' ) );

					$media_content .= $imgSrc1;
				}

				$media_content .= $device_url;

				$media_content .= $device_icon_center;

				$media_content .= $device_url_close;

				$media_content .= '</div>';

				$media_content .= '</div>';

				$media_content .= '</div>';
			}
		}

		$slide_image   = '';
		$carousal_attr = '';

		$carousal_device = '';
		if ( 'carousal' === $device_mode ) {
			if ( 'mobile' === $device_mockup_carousal ) {
				$layout_shape = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $settings['device_mobile_carousal'] ) . '.png" class="plus-device-image" alt="Device mobile">';

				$carousal_device .= esc_attr( $settings['device_mobile_carousal'] );
			}

			if ( 'laptop' === $device_mockup_carousal ) {
				$layout_shape = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $settings['device_laptop_carousal'] ) . '.png" class="plus-device-image" alt="Device mobile">';

				$carousal_device .= esc_attr( $settings['device_laptop_carousal'] );
			}

			if ( 'desktop' === $device_mockup_carousal ) {
				$layout_shape = '<img src="' . THEPLUS_ASSETS_URL . 'images/devices/' . esc_attr( $settings['device_desktop_carousal'] ) . '.png" class="plus-device-image" alt="Device mobile">';

				$carousal_device .= esc_attr( $settings['device_desktop_carousal'] );
			}

			if ( 'custom' === $device_mockup_carousal ) {
				$custom_image = ! empty( $settings['device_mockup_carousal_image']['url'] ) ? $settings['device_mockup_carousal_image']['url'] : '';
				$layout_shape = '<img src="' . esc_url( $custom_image ) . '" class="plus-device-image" alt="Plus custom device">';

				$carousal_device .= ' custom-device-mockup';
			}

			if ( ! empty( $settings['slider_gallery'] ) ) {
				foreach ( $settings['slider_gallery'] as $image ) {
					$image_id = $image['id'];
					$imgSrc2  = tp_get_image_rander( $image_id, 'full' );

					$slide_image .= '<div class="plus-device-slide">';

					$slide_image .= $imgSrc2;

					$slide_image .= '</div>';
				}
			}

			$infinite = 'yes' === $settings['carousal_infinite'] ? 'true' : 'false';
			$autoplay = 'yes' === $settings['carousal_autoplay'] ? 'true' : 'false';
			$speed    = ! empty( $settings['carousal_speed']['size'] ) ? $settings['carousal_speed']['size'] : '700';

			$autoplay_speed  = ! empty( $settings['carousal_autoplay_speed']['size'] ) ? $settings['carousal_autoplay_speed']['size'] : '4000';
			$carousal_dots   = 'yes' === $settings['carousal_dots'] ? 'true' : 'false';
			$carousal_arrows = 'yes' === $settings['carousal_arrows'] ? 'true' : 'false';

			$carousal_attr .= ' data-infinite="' . esc_attr( $infinite ) . '"';
			$carousal_attr .= ' data-autoplay="' . esc_attr( $autoplay ) . '"';
			$carousal_attr .= ' data-dots="' . esc_attr( $carousal_dots ) . '"';
			$carousal_attr .= ' data-arrows="' . esc_attr( $carousal_arrows ) . '"';
			$carousal_attr .= ' data-autoplay_speed="' . esc_attr( $autoplay_speed ) . '"';
			$carousal_attr .= ' data-speed="' . esc_attr( $speed ) . '"';
		}

		$uid = uniqid( 'device' );

		$ddclass = '';
		$ddattr  = '';
		if ( ! empty( $dd_unique_id ) && 'normal' === $device_mode && 'yes' === $scroll_image_effect ) {
			$ddclass = 'tp-dd-multi-connect ' . $dd_unique_id;
			$ddattr  = ' data-connectdd=".' . esc_attr( $dd_unique_id ) . '"';
		}

		$output  = '<div class="plus-device-wrapper device-type-' . esc_attr( $device_mockup ) . ' ' . esc_attr( $device_class ) . ' ' . esc_attr( $animated_class ) . ' ' . esc_attr( $ddclass ) . '" ' . $animation_attr . ' ' . $ddattr . '>';
		$output .= '<div class="plus-device-inner">';

		if ( 'normal' === $device_mode ) {
			$scrolljsclass = '';
			if ( ( 'yes' === $scroll_image_effect ) || ( ! empty( $settings['scroll_template_effect'] ) && 'yes' === $settings['scroll_template_effect'] ) ) {
				$scrolljsclass = ' tp-scroll-img-js';
			}

			$output .= '<div class="plus-device-content ' . esc_attr( $scrolljsclass ) . '">';
			$output .= '<div class="plus-device-shape">';
			$output .= $layout_shape;
			$output .= '</div>';
			$output .= '<div class="plus-device-media ' . esc_attr( $scroll_class ) . '">';
			$output .= $media_content;
			$output .= '</div>';
			$output .= '</div>';

		} elseif ( 'carousal' === $device_mode ) {
			$output .= '<div class="plus-carousal-device-mokeup">';
			$output .= '<div class="plus-device-content">';
			$output .= $layout_shape;
			$output .= '</div>';
			$output .= '</div>';
			$output .= '<div class="plus-device-carousal column-' . esc_attr( $settings['carousal_columns'] ) . ' ' . esc_attr( $uid ) . '" data-id="' . esc_attr( $uid ) . '" ' . $carousal_attr . '>';
			$output .= $slide_image;
			$output .= '</div>';
		}

		$output .= '</div>';

		$output .= '</div>';

		echo $before_content . $output . $after_content;
	}

	/**
	 * Render content_template
	 *
	 * @since 1.0.0
	 * @version 5.4.2
	 */
	protected function content_template() {}
}
