'', 'fss_photo_gallery' => '', 'gallery_ext_image' => '', 'gallery_ext_image_size' => '', 'fss_gallery_shadow' => '', 'fss_loop' => '', 'fss_autoplay' => '', 'fss_autoplay_speed' => '', 'fss_stoponhover' => '', 'css_animation_image' => '', ),$atts)); if ($gallery_image_source == 'external_link') { $images = vc_value_from_safe( $gallery_ext_image ); $images = explode( ',', $images ); } else { $images = explode( ',', $fss_photo_gallery ); } if ( '' === $images ) { $images = '-1,-2,-3'; } $default_src = vc_asset_url( 'vc/no_image.png' ); foreach ( $images as $i => $image ) { if ($gallery_image_source == 'external_link') { if ($gallery_ext_image != '') { $image = esc_attr( $image ); $dimensions = vc_extract_dimensions( $gallery_ext_image_size ); $hwstring = $dimensions ? image_hwstring( $dimensions[0], $dimensions[1] ) : ''; $thumbnail = ''; } else { $thumbnail = ''; } } else { if ( $image > 0 ) { $img = wpb_getImageBySize( $params = array( 'post_id' => NULL, 'attach_id' => $image, 'thumb_size' => 'full', 'class' = > 'ffs-gallery-img' )); $thumbnail = $img['thumbnail']; } else { $thumbnail = ''; } } $gal_images .= $thumbnail; } $featured_gallery_id = "kd-featured-gallery-".uniqid(); $output .= ''; /* Animation delay */ if ('' !== $css_animation_image) { $animation_delay = 'data-animation-delay="200"'; } else { $animation_delay = ''; } $wrapper_class = implode(' ', array('side-featured-wrapper', $featured_gallery_id, $css_animation_image, $css_animation_image, $fss_gallery_shadow)); $output .= '
'; return $output; } }