esc_html__("Static Logos", 'taskereasy'), "base" => "taskereasy_logos", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy logos", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "dropdown", "heading" => esc_html__("Style", 'taskereasy'), "param_name" => "style", "value" => array('Style 1' => 'style_1', 'Style 2' => 'style_2'), ), array( "type" => "attach_images", "heading" => esc_html__("Images", 'taskereasy'), "param_name" => "images", ), array( "type" => "textfield", "heading" => esc_html__("Title", 'taskereasy'), "param_name" => "title", "dependency" => array( "element" => "style", "value" => "style_2" ), ), array( "type" => "textarea_safe", "heading" => esc_html__("Subtitle", 'taskereasy'), "param_name" => "subtext", "dependency" => array( "element" => "style", "value" => "style_2" ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_logos', function($atts, $content = null) { extract(shortcode_atts(array( 'style' => 'style_1', 'images' => '', 'title' => '', 'subtext' => '', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $image_ids = explode(',', $images); $image_no = 1; $output = ''; if($style == "style_1"){ $output .='
'; }else{ $output.= '

'.$title.'

'.$subtext.'

'; foreach( $image_ids as $image_id ){ $images = wp_get_attachment_image_src( $image_id, 'thumbnail' ); $output.= '
PARTNERS LOGO
'; $image_no++; } $output.='
'; } return $output; });