' . esc_html__( 'No Result Found!', 'divi-plus' ) . '
'; $output .= '' . esc_html__( 'The carousel you requested could not be found. Try changing your module settings or add some new cards.', 'divi-plus' ) . '
'; $output .= '* @link https://www.elicus.com/ * @copyright 2023 Elicus Technologies Private Limited * @version 1.9.15 */ class DIPL_ImageCardCarousel extends ET_Builder_Module { public $slug = 'dipl_image_card_carousel'; public $child_slug = 'dipl_image_card_carousel_item'; public $vb_support = 'on'; protected $module_credits = array( 'module_uri' => 'https://diviextended.com/product/divi-plus/', 'author' => 'Elicus', 'author_uri' => 'https://elicus.com/', ); public function init() { $this->name = esc_html__( 'DP Image Card Carousel', 'divi-plus' ); $this->child_item_text = esc_html__( 'Image Card', 'divi-plus' ); $this->main_css_element = '%%order_class%%'; } public function get_settings_modal_toggles() { return array( 'general' => array( 'toggles' => array( 'elements' => array( 'title' => esc_html__( 'Elements', 'divi-plus' ), ), 'main_content' => array( 'title' => esc_html__( 'Slider', 'divi-plus' ), ), ), ), 'advanced' => array( 'toggles' => array( 'image' => array( 'title' => esc_html__( 'Image', 'divi-plus' ), ), 'text' => array( 'title' => esc_html__( 'Text', 'divi-plus' ), ), 'text_settings' => array( 'title' => esc_html__( 'Title & Content', 'divi-plus' ), 'sub_toggles' => array( 'title' => array( 'name' => 'Title', ), 'content' => array( 'name' => 'Content', ), ), 'tabbed_subtoggles' => true, ), 'icon' => array( 'title' => esc_html__( 'Icon', 'divi-plus' ), ), 'button' => array( 'title' => esc_html__( 'Button', 'divi-plus' ), ), 'slider_styles' => array( 'title' => esc_html__( 'Slider', 'divi-plus' ), ), 'lightbox' => array( 'title' => esc_html__( 'Lightbox', 'divi-plus' ), ), ), ), ); } public function get_advanced_fields_config() { return array( 'fonts' => array( 'title' => array( 'label' => esc_html__( 'Title', 'divi-plus' ), 'font_size' => array( 'default_on_front' => '16px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default_on_front' => '1.2em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default_on_front' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'header_level' => array( 'default' => 'h4', ), 'css' => array( 'main' => '%%order_class%% .dipl_image_card_title', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'text_settings', 'sub_toggle' => 'title', ), 'content' => array( 'label' => esc_html__( 'Content', 'divi-plus' ), 'font_size' => array( 'default_on_front' => '14px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default_on_front' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default_on_front' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%% .dipl_image_card_content', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'text_settings', 'sub_toggle' => 'content', ), ), 'borders' => array( 'image' => array( 'label_prefix' => esc_html__( 'Image', 'divi-plus' ), 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .dipl_image_card_image', 'border_styles' => '%%order_class%% .dipl_image_card_image', ), 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'image', ), 'default' => array( 'css' => array( 'main' => array( 'border_radii' => $this->main_css_element, 'border_styles' => $this->main_css_element, ), ), ), ), 'box_shadow' => array( 'default' => array( 'css' => array( 'main' => $this->main_css_element, 'important' => 'all', ), ), ), 'background' => array( 'css' => array( 'main' => $this->main_css_element, ), ), 'slider_margin_padding' => array( 'slider_container' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => "{$this->main_css_element} .swiper-container", 'important' => 'all', ), ), ), 'arrows' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => "{$this->main_css_element} .swiper-button-next::after, {$this->main_css_element} .swiper-button-prev::after", 'important' => 'all', ), ), ), ), 'margin_padding' => array( 'css' => array( 'main' => $this->main_css_element, 'important' => 'all', ), ), 'text' => array( 'css' => array( 'main' => '%%order_class%%', ), 'options' => array( 'text_orientation' => array( 'default' => 'left', 'default_on_front' => 'left', ), ), ), 'filters' => false, 'link_options' => false, ); } public function get_fields() { $et_accent_color = et_builder_accent_color(); return array( 'hide_title' => array( 'label' => esc_html__( 'Hide Title', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'No', 'divi-plus' ), 'on' => esc_html__( 'Yes', 'divi-plus' ) ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can choose whether title should hide or not.', 'divi-plus' ), ), 'enable_lightbox' => array( 'label' => esc_html__( 'Enable Lightbox', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Enable to open the image in lightbox when clicked.', 'divi-plus' ), ), 'lightbox_effect' => array( 'label' => esc_html__( 'Lighbox Effect', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'none' => esc_html__( 'None', 'divi-plus' ), 'zoom' => esc_html__( 'Zoom', 'divi-plus' ), 'fade' => esc_html__( 'Fade', 'divi-plus' ), ), 'show_if' => array( 'enable_lightbox' => 'on', ), 'default' => 'none', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can choose opening effect of lightbox.', 'divi-plus' ), ), 'lightbox_transition_duration' => array( 'label' => esc_html__( 'Transition Duration', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '100', 'max' => '2000', 'step' => '100', ), 'show_if' => array( 'enable_lightbox' => 'on', 'lightbox_effect' => array( 'zoom', 'fade' ), ), 'unitless' => true, 'default_on_front' => '300', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select the transition duration in miliseconds.', 'divi-plus' ), ), 'enable_navigation' => array( 'label' => esc_html__( 'Enable Navigation', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'show_if' => array( 'enable_lightbox' => 'on', ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Whether or not to enable navigation in lightbox.', 'divi-plus' ), ), 'lightbox_title_and_caption_style' => array( 'label' => esc_html__( 'Title & Caption Style', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'image_overlay' => esc_html__( 'Image Overlay', 'divi-plus' ), 'below_image' => esc_html__( 'Below Image', 'divi-plus' ), ), 'default' => 'image_overlay', 'show_if' => array( 'enable_lightbox' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select the display style of title and caption in lightbox.', 'divi-plus' ), ), 'slide_effect' => array( 'label' => esc_html__( 'Carousel Effect', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'slide' => esc_html__( 'Slide', 'divi-plus' ), 'cube' => esc_html__( 'Cube', 'divi-plus' ), 'coverflow' => esc_html__( 'Coverflow', 'divi-plus' ), 'flip' => esc_html__( 'Flip', 'divi-plus' ), 'fade' => esc_html__( 'Fade', 'divi-plus' ), ), 'default' => 'slide', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose the slide animation effect.', 'divi-plus' ), ), 'cards_per_slide' => array( 'label' => esc_html__( 'Number of Cards Per View', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( '1' => esc_html__( '1', 'divi-plus' ), '2' => esc_html__( '2', 'divi-plus' ), '3' => esc_html__( '3', 'divi-plus' ), '4' => esc_html__( '4', 'divi-plus' ), '5' => esc_html__( '5', 'divi-plus' ), '6' => esc_html__( '6', 'divi-plus' ), '7' => esc_html__( '7', 'divi-plus' ), '8' => esc_html__( '8', 'divi-plus' ), '9' => esc_html__( '9', 'divi-plus' ), '10' => esc_html__( '10', 'divi-plus' ), '11' => esc_html__( '11', 'divi-plus' ), '12' => esc_html__( '12', 'divi-plus' ), '13' => esc_html__( '13', 'divi-plus' ), '14' => esc_html__( '14', 'divi-plus' ), '15' => esc_html__( '15', 'divi-plus' ), ), 'default' => '3', 'mobile_options' => true, 'show_if' => array( 'slide_effect' => array( 'slide', 'coverflow' ), ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose the number of cards to display per slide.', 'divi-plus' ), ), 'slides_per_group' => array( 'label' => esc_html__( 'Number of Slides Per Group', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( '1' => esc_html__( '1', 'divi-plus' ), '2' => esc_html__( '2', 'divi-plus' ), '3' => esc_html__( '3', 'divi-plus' ), '4' => esc_html__( '4', 'divi-plus' ), '5' => esc_html__( '5', 'divi-plus' ), '6' => esc_html__( '6', 'divi-plus' ), '7' => esc_html__( '7', 'divi-plus' ), '8' => esc_html__( '8', 'divi-plus' ), '9' => esc_html__( '9', 'divi-plus' ), '10' => esc_html__( '10', 'divi-plus' ), '11' => esc_html__( '11', 'divi-plus' ), '12' => esc_html__( '12', 'divi-plus' ), '13' => esc_html__( '13', 'divi-plus' ), '14' => esc_html__( '14', 'divi-plus' ), '15' => esc_html__( '15', 'divi-plus' ), ), 'default' => '1', 'mobile_options' => true, 'show_if' => array( 'slide_effect' => array( 'slide', 'coverflow' ), ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose the number of slides per group to slide by.', 'divi-plus' ), ), 'space_between_slides' => array( 'label' => esc_html__( 'Space between Slides', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '10', 'max' => '100', 'step' => '1', ), 'show_if' => array( 'slide_effect' => array( 'slide', 'coverflow' ), ), 'fixed_unit' => 'px', 'default' => '20px', 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Move the slider or input the value to increse or decrease the space between slides.', 'divi-plus' ), ), 'enable_coverflow_shadow' => array( 'label' => esc_html__( 'Enable Slide Shadow', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'slide_effect' => 'coverflow', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Enable Slide Shadow For Coverflow Effect.', 'divi-plus' ), ), 'coverflow_shadow_color' => array( 'label' => esc_html__( 'Shadow Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'slide_effect' => 'coverflow', 'enable_coverflow_shadow' => 'on', ), 'default' => '#ccc', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can select color for the Shadow.', 'divi-plus' ), ), 'coverflow_rotate' => array( 'label' => esc_html__( 'Coverflow Rotate', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '360', 'step' => '1', ), 'unitless' => true, 'show_if' => array( 'slide_effect' => 'coverflow', ), 'default' => '40', 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Coverflow Rotate Slide.', 'divi-plus' ), ), 'coverflow_depth' => array( 'label' => esc_html__( 'Coverflow Depth', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '1000', 'step' => '1', ), 'unitless' => true, 'show_if' => array( 'slide_effect' => 'coverflow', ), 'default' => '100', 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Coverflow Depth Slide.', 'divi-plus' ), ), 'equalize_slides_height' => array( 'label' => esc_html__( 'Equalize Slides Height', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'default_on_front' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Choose whether or not equalize slides height.', 'divi-plus' ), ), 'auto_height_slider' => array( 'label' => esc_html__( 'Auto Height Slider', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'Off', 'divi-plus' ), 'on' => esc_html__( 'On', 'divi-plus' ), ), 'show_if' => array( 'equalize_slides_height' => 'off' ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose whether or not slider height should adjust according to each slide.', 'divi-plus' ), ), 'slider_loop' => array( 'label' => esc_html__( 'Enable Loop', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can enable loop for the slides.', 'divi-plus' ), ), 'autoplay' => array( 'label' => esc_html__( 'Autoplay', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'This controls the auto play of the card carousel.', 'divi-plus' ), ), 'enable_linear_transition' => array( 'label' => esc_html__( 'Enable Linear Transition', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose whether or not to enable linear transition between slides.', 'divi-plus' ), ), 'autoplay_speed' => array( 'label' => esc_html__( 'Autoplay Delay', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => '3000', 'show_if' => array( 'autoplay' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'This controls the time of the slide before the transition.', 'divi-plus' ), ), 'pause_on_hover' => array( 'label' => esc_html__( 'Pause On Hover', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'show_if' => array( 'autoplay' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Control for pausing slides on mouse hover.', 'divi-plus' ), ), 'slide_transition_duration' => array( 'label' => esc_html__( 'Transition Duration', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => '1000', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can specify the duration of transition for each slide in miliseconds.', 'divi-plus' ), ), 'show_arrow' => array( 'label' => esc_html__( 'Show Arrows', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'default_on_front' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Choose whether or not the previous & next arrows should be visible.', 'divi-plus' ), ), 'previous_slide_arrow' => array( 'label' => esc_html__( 'Previous Arrow', 'divi-plus' ), 'type' => 'select_icon', 'option_category' => 'basic_option', 'class' => array( 'et-pb-font-icon', ), 'show_if' => array( 'show_arrow' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can select the icon to be used for the previous slide navigation.', 'divi-plus' ), ), 'next_slide_arrow' => array( 'label' => esc_html__( 'Next Arrow', 'divi-plus' ), 'type' => 'select_icon', 'option_category' => 'basic_option', 'class' => array( 'et-pb-font-icon', ), 'show_if' => array( 'show_arrow' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can select the icon to be used for the next slide navigation.', 'divi-plus' ), ), 'show_arrow_on_hover' => array( 'label' => esc_html__( 'Show Arrows On Hover', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => 'off', 'default_on_front' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Choose whether or not the previous and next arrows should be visible.', 'divi-plus' ), ), 'arrows_position' => array( 'label' => esc_html__( 'Arrows Position', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'inside' => esc_html__( 'Inside', 'divi-plus' ), 'outside' => esc_html__( 'Outside', 'divi-plus' ), 'top_left' => esc_html__( 'Top Left', 'divi-plus' ), 'top_right' => esc_html__( 'Top Right', 'divi-plus' ), 'top_center' => esc_html__( 'Top Center', 'divi-plus' ), 'bottom_left' => esc_html__( 'Bottom Left', 'divi-plus' ), 'bottom_right' => esc_html__( 'Bottom Right', 'divi-plus' ), 'bottom_center' => esc_html__( 'Bottom Center', 'divi-plus' ), ), 'default' => 'inside', 'mobile_options' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose the arrows position.', 'divi-plus' ), ), 'show_control_dot' => array( 'label' => esc_html__( 'Show Dots Pagination', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'default_on_front' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'This setting will turn on and off the pagination of the slider.', 'divi-plus' ), ), 'control_dot_style' => array( 'label' => esc_html__( 'Dots Pagination Style', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'solid_dot' => esc_html__( 'Solid Dot', 'divi-plus' ), 'transparent_dot' => esc_html__( 'Transparent Dot', 'divi-plus' ), 'stretched_dot' => esc_html__( 'Stretched Dot', 'divi-plus' ), 'line' => esc_html__( 'Line', 'divi-plus' ), 'rounded_line' => esc_html__( 'Rounded Line', 'divi-plus' ), 'square_dot' => esc_html__( 'Squared Dot', 'divi-plus' ), ), 'show_if' => array( 'show_control_dot' => 'on', ), 'default' => 'solid_dot', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'control dot style', 'divi-plus' ), ), 'enable_dynamic_dots' => array( 'label' => esc_html__( 'Enable Dynamic Dots', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'show_control_dot' => 'on', 'control_dot_style' => array( 'solid_dot', 'transparent_dot', 'square_dot' ), ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'This setting will turn on and off the dynamic pagination of the slider.', 'divi-plus' ), ), 'arrows_custom_padding' => array( 'label' => esc_html__( 'Arrows Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '5px|10px|5px|10px|true|true', 'default_on_front' => '5px|10px|5px|10px|true|true', 'mobile_options' => true, 'hover' => false, 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Padding adds extra space to the inside of the element, increasing the distance between the edge of the element and its inner contents.', 'divi-plus' ), ), 'arrow_font_size' => array( 'label' => esc_html__( 'Arrow Font Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '10', 'max' => '100', 'step' => '1', ), 'show_if' => array( 'show_arrow' => 'on', ), 'mobile_options' => true, 'default' => '24px', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose the arrow font size.', 'divi-plus' ), ), 'arrow_color' => array( 'label' => esc_html__( 'Arrow Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can define color for the arrow', 'divi-plus' ), ), 'arrow_background_color' => array( 'label' => esc_html__( 'Arrow Background', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for the shape background of arrows.', 'divi-plus' ), ), 'arrow_background_border_radius' => array( 'label' => esc_html__( 'Arrow Border Radius', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '0', 'max' => '500', 'step' => '1', ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '0px', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease the border radius of the arrow background.', 'divi-plus' ), ), 'arrow_background_border_size' => array( 'label' => esc_html__( 'Arrow Background Border', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '1', 'max' => '10', 'step' => '1', ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '0px', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease the border size of the arrow background.', 'divi-plus' ), ), 'arrow_background_border_color' => array( 'label' => esc_html__( 'Arrow Background Border Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for the arrow border', 'divi-plus' ), ), 'control_dot_active_color' => array( 'label' => esc_html__( 'Active Dot Pagination Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_control_dot' => 'on', ), 'default' => '#000000', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can define color for the active pagination item.', 'divi-plus' ), ), 'control_dot_inactive_color' => array( 'label' => esc_html__( 'Inactive Dot Pagination Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_control_dot' => 'on', ), 'default' => '#cccccc', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can define color for the inactive pagination item.', 'divi-plus' ), ), 'icon_alignment' => array( 'label' => esc_html__( 'Icon Alignment', 'divi-plus' ), 'type' => 'text_align', 'option_category' => 'layout', 'options' => et_builder_get_text_orientation_options( array( 'justified' ) ), 'mobile_options' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'icon', 'description' => esc_html__( 'Here you can choose where to place an icon on the image card.', 'divi-plus' ), ), 'icon_font_size' => array( 'label' => esc_html__( 'Icon Font Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '120', 'step' => '1', ), 'mobile_options' => true, 'default' => '32px', 'default_on_front' => '32px', 'tab_slug' => 'advanced', 'toggle_slug' => 'icon', 'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'divi-plus' ), ), 'icon_color' => array( 'label' => esc_html__( 'Icon Color', 'divi-plus' ), 'type' => 'color-alpha', 'hover' => 'tabs', 'mobile_options' => true, 'default' => esc_attr( $et_accent_color ), 'default_on_front' => esc_attr( $et_accent_color ), 'tab_slug' => 'advanced', 'toggle_slug' => 'icon', 'description' => esc_html__( 'Here you can define a custom color for your icon.', 'divi-plus' ), ), 'slider_container_custom_padding' => array( 'label' => esc_html__( 'Slider Container Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'mobile_options' => true, 'hover' => false, 'default' => '', 'default_on_front' => '', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', 'description' => esc_html__( 'Padding adds extra space to the inside of the element, increasing the distance between the edge of the element and its inner contents.', 'divi-plus' ), ), 'meta_background_color_lightbox' => array( 'label' => esc_html__( 'Title & Caption Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => 'rgba(0,0,0,0.6)', 'show_if' => array( 'enable_lightbox' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'lightbox', 'description' => esc_html__( 'Here you can define a custom overlay color for the title and caption.', 'divi-plus' ), ), 'lightbox_background_color' => array( 'label' => esc_html__( 'Lightbox Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => 'rgba(0,0,0,0.8)', 'show_if' => array( 'enable_lightbox' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'lightbox', 'description' => esc_html__( 'Here you can define a custom background color for the lightbox.', 'divi-plus' ), ), 'lightbox_close_icon_color' => array( 'label' => esc_html__( 'Close Icon Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#fff', 'show_if' => array( 'enable_lightbox' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'lightbox', 'description' => esc_html__( 'Here you can define a custom color for the close icon.', 'divi-plus' ), ), 'lightbox_arrows_color' => array( 'label' => esc_html__( 'Arrows Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#fff', 'show_if' => array( 'enable_lightbox' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'lightbox', 'description' => esc_html__( 'Here you can define a custom color for the arrows.', 'divi-plus' ), ), ); } public function before_render() { global $dp_icc_parent_icon_font_size, $dp_icc_parent_attrs; $dp_icc_parent_icon_font_size = et_pb_responsive_options()->get_property_values( $this->props, 'icon_font_size' ); $dp_icc_parent_attrs['hide_title'] = isset( $this->props['hide_title'] ) ? $this->props['hide_title'] : 'off'; $is_responsive = et_pb_responsive_options()->is_responsive_enabled( $this->props, 'cards_per_slide' ); if ( ! $is_responsive ) { $cards_per_slide = $this->props['cards_per_slide']; if ( 'slide' === $this->props['slide_effect'] ) { $cards_per_slide_tablet = $cards_per_slide < 3 ? $cards_per_slide : 2; $cards_per_slide_mobile = 1; } else if ( 'coverflow' === $this->props['slide_effect'] ) { $cards_per_slide_tablet = 3; $cards_per_slide_mobile = 1; } if ( isset( $cards_per_slide_tablet ) && '' !== $cards_per_slide_tablet ) { $this->props['cards_per_slide_tablet'] = $cards_per_slide_tablet; } if ( isset( $cards_per_slide_mobile ) && '' !== $cards_per_slide_mobile ) { $this->props['cards_per_slide_phone'] = $cards_per_slide_mobile; } } } public function render( $attrs, $content, $render_slug ) { $slide_effect = $this->props['slide_effect']; $cards_per_slide = $this->props['cards_per_slide']; $enable_coverflow_shadow = $this->props['enable_coverflow_shadow']; $coverflow_shadow_color = $this->props['coverflow_shadow_color']; $coverflow_rotate = $this->props['coverflow_rotate']; $coverflow_depth = $this->props['coverflow_depth']; $equalize_slides_height = $this->props['equalize_slides_height']; $slider_loop = $this->props['slider_loop']; $autoplay = $this->props['autoplay']; $autoplay_speed = $this->props['autoplay_speed']; $pause_on_hover = $this->props['pause_on_hover']; $show_arrow = $this->props['show_arrow']; $show_arrow_on_hover = $this->props['show_arrow_on_hover']; $show_control_dot = $this->props['show_control_dot']; $control_dot_style = $this->props['control_dot_style']; $coverflow_shadow_color = $this->props['coverflow_shadow_color']; $control_dot_active_color = $this->props['control_dot_active_color']; $control_dot_inactive_color = $this->props['control_dot_inactive_color']; $slide_transition_duration = $this->props['slide_transition_duration']; $enable_linear_transition = $this->props['enable_linear_transition']; $arrow_color = $this->props['arrow_color']; $arrow_color_hover = $this->get_hover_value( 'arrow_color' ); $arrow_background_color = $this->props['arrow_background_color']; $arrow_background_color_hover = $this->get_hover_value( 'arrow_background_color' ); $arrow_background_border_size = $this->props['arrow_background_border_size']; $arrow_background_border_color = $this->props['arrow_background_border_color']; $arrow_background_border_color_hover = $this->get_hover_value( 'arrow_background_border_color' ); $arrows_position = et_pb_responsive_options()->get_property_values( $this->props, 'arrows_position' ); $arrows_position = array_filter( $arrows_position ); if ( $this->content && '' !== $this->content ) { wp_enqueue_script( 'elicus-swiper-script' ); wp_enqueue_style( 'elicus-swiper-style' ); wp_enqueue_style( 'dipl-swiper-style' ); $data_props = array( 'enable_lightbox' ); if ( 'on' === $this->props['enable_lightbox'] ) { wp_enqueue_script('magnific-popup'); wp_enqueue_style('magnific-popup'); // lightbox_title_and_caption_style array_push( $data_props, 'lightbox_effect', 'lightbox_transition_duration', 'enable_navigation' ); } wp_enqueue_script( 'dipl-image-card-carousel-custom', ELICUS_DIVI_PLUS_PLUGIN_URL . "includes/modules/ImageCardCarousel/dipl-image-card-carousel-custom.min.js", array('jquery'), '1.0.2', true ); $data_atts = $this->props_to_html_data_attrs( $data_props ); $carousel = sprintf( '
' . esc_html__( 'The carousel you requested could not be found. Try changing your module settings or add some new cards.', 'divi-plus' ) . '
'; $output .= '