__("Product List", "ultimate_vc"), "base" => "woocomposer_list", "icon" => "woo_list", "class" => "woo_list", "category" => __("WooComposer [ Beta ]", "ultimate_vc"), "description" => __("Display products in list view","ultimate_vc"), "controls" => "full", "show_settings_on_create" => true, "deprecated" => "3.13.5", "params" => array( array( "type" => "woocomposer", "class" => "", "heading" => __("Query Builder", "ultimate_vc"), "param_name" => "shortcode", "value" => "", "module" => "list", "labels" => array( "products_from" => __("Display:","ultimate_vc"), "per_page" => __("How Many:","ultimate_vc"), "columns" => __("Columns:","ultimate_vc"), "order_by" => __("Order By:","ultimate_vc"), "order" => __("Display Order:","ultimate_vc"), "category" => __("Category:","ultimate_vc"), ), //"description" => __("", "woocommerce") ), array( "type" => "dropdown", "class" => "", "heading" => __("Image Display", "ultimate_vc"), "param_name" => "img_position", "admin_label" => true, "value" => array( __("Left","ultimate_vc") => "left", __("Right","ultimate_vc") => "right", ), //"description" => __("", "woocommerce"), ), array( "type" => "number", "class" => "", "heading" => __("Image Width", "ultimate_vc"), "param_name" => "img_size", "value" => "", "min" => 30, "max" => 300, "suffix" => "px", //"description" => __("", "woocommerce") ), array( "type" => "dropdown", "class" => "", "heading" => __("Image Border", "ultimate_vc"), "param_name" => "img_border", "admin_label" => true, "value" => array( __("None","ultimate_vc") => "", __("Solid","ultimate_vc") => "solid", __("Dashed","ultimate_vc") => "dashed", __("Dotted","ultimate_vc") => "dotted", __("Inset","ultimate_vc") => "inset", __("Outset","ultimate_vc") => "outset", ), //"description" => __("", "woocommerce"), ), array( "type" => "number", "class" => "", "heading" => __("Border Size", "ultimate_vc"), "param_name" => "border_size", "value" => "", "min" => 0, "max" => 10, "suffix" => "px", //"description" => __("", "woocommerce"), "dependency" => Array("element" => "img_border", "not_empty" => true), ), array( "type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "border_radius", "value" => "", "min" => 0, "max" => 500, "suffix" => "px", //"description" => __("", "woocommerce"), "dependency" => Array("element" => "img_border", "not_empty" => true), ), array( "type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "border_color", "value" => "", //"description" => __("", "woocommerce"), "dependency" => Array("element" => "img_border", "not_empty" => true), ), array( "type" => "number", "class" => "", "heading" => __("Product Title Font Size", "ultimate_vc"), "param_name" => "title_font", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", //"description" => __("", "woocommerce"), ), array( "type" => "colorpicker", "class" => "", "heading" => __("Product Title Color", "ultimate_vc"), "param_name" => "title_color", "value" => "", //"description" => __("", "woocommerce"), ), array( "type" => "number", "class" => "", "heading" => __("Product Price Font Size", "ultimate_vc"), "param_name" => "price_font", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", //"description" => __("", "woocommerce"), ), array( "type" => "colorpicker", "class" => "", "heading" => __("Product Price Color", "ultimate_vc"), "param_name" => "price_color", "value" => "", //"description" => __("", "woocommerce"), ), array( "type" => "number", "class" => "", "heading" => __("Star Rating Font Size", "ultimate_vc"), "param_name" => "rating_font", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", //"description" => __("", "woocommerce"), ), array( "type" => "colorpicker", "class" => "", "heading" => __("Star Ratings Color", "ultimate_vc"), "param_name" => "rating_color", "value" => "", //"description" => __("", "woocommerce"), ), )/* vc_map params array */ )/* vc_map parent array */ ); /* vc_map call */ } /* vc_map function check */ } /* end woocomposer_init_grid */ function woocomposer_list_shortcode($atts){ global $woocommerce; $img_position = $img_size = $img_border = $border_size = $border_radius = $border_color = $title_font = $price_font = $price_color = $rating_color = $rating_font = $shortcode = ''; extract(shortcode_atts(array( "img_position" => "left", "shortcode" => "", "img_size" => "", "img_border" => "", "border_size" => "", "border_radius" => "", "border_color" => "", "title_color" => "", "title_font" => "", "price_font" => "", "price_color" => "", "rating_color" => "", "rating_font" => "", ),$atts)); $output = $on_sale = $style = $title_style = $pricing_style = $rating_style = ''; if($img_size !== ""){ $style .= 'width:'.$img_size.'px; height:'.$img_size.'px;'; } if($title_color !== ""){ $title_style .= 'color:'.$title_color.';'; } if($title_font !== ""){ $title_style .= 'font-size:'.$title_font.'px;'; } if($img_border !== ''){ $style .= 'border-style:'.$img_border.';'; if($border_size !== ''){ $style .= 'border-width:'.$border_size.'px;'; } if($border_color !== ''){ $style .= 'border-color:'.$border_color.';'; } if($border_radius !== ''){ $style .= 'border-radius:'.$border_radius.'px;'; } } if($price_font !== ""){ $pricing_style .= 'font-size:'.$price_font.'px;'; } if($price_color !== ""){ $pricing_style .= 'color:'.$price_color.';'; } if($rating_color !== ""){ $rating_style .= 'color:'.$rating_color.';'; } if($rating_font !== ""){ $rating_style .= 'font-size:'.$rating_font.'px;'; } $post_count = '12'; $output .= '