"", "height" => "", "on_click" => "", "custom_links" => "", "custom_links_target" => "", "navigation_style" => "", "highlight_active_image" => "", "highlight_inactive_color" => "", "highlight_inactive_opacity"=> "" ); extract(shortcode_atts($args, $atts)); //init variables $html = ""; $image_gallery_holder_styles = ''; $image_gallery_holder_classes = ''; $image_gallery_item_styles = ''; $custom_links_array = array(); $using_custom_links = false; $highlight_inactive_color_style = ""; $highlight_inactive_opacity_style = ""; //is height for the slider set? if($height !== '') { $image_gallery_holder_styles .= 'height: '.$height.'px;'; $image_gallery_item_styles .= 'height: '.$height.'px;'; } //are we using custom links and is custom links field filled? if($on_click == 'use_custom_links' && $custom_links !== '') { //create custom links array $custom_links_array = explode(',', strip_tags($custom_links)); } if($navigation_style !== '') { $image_gallery_holder_classes = $navigation_style; } if($highlight_active_image == 'yes') { $image_gallery_holder_classes .= ' highlight_active'; if ($highlight_inactive_color !== '') { $highlight_inactive_color_style = 'style = "background-color: ' . $highlight_inactive_color . '"'; } if ($highlight_inactive_opacity !== '') { $highlight_inactive_opacity_style = 'style = "opacity: ' . $highlight_inactive_opacity . '"'; } } $html .= "'; return $html; } add_shortcode('image_slider_no_space', 'image_slider_no_space'); }