'', 'link' => '', 'style' => 'feature-box-style-01', ),$attr)); if(!empty($icon)){ if(strpos($icon,'lnr') !== false) $icon_html = ''; else $icon_html = ''; } $group1 = array(0=>'feature-box-style-05',1=>'feature-box-style-06',2=>'feature-box-style-07',3=>'feature-box-style-08'); $group2 = array(0=>'feature-box-style-09',1=>'feature-box-style-10',2=>'feature-box-style-11',3=>'feature-box-style-12'); switch ($style) { case in_array($style, $group1): $html .= '
'; $html .= '
'.wpb_js_remove_wpautop($content, true).'
'; $html .= '
'.$icon_html.'
'; $html .= '
'; break; case in_array($style, $group2): $html .= '
'; $html .= '
'.$icon_html.'
'; $html .= '
'.wpb_js_remove_wpautop($content, true).'
'; $html .= '
'; break; default: $html .= '
'; $html .= '
'.$icon_html.'
'; $html .= '
'.wpb_js_remove_wpautop($content, true).'
'; $html .= '
'; break; } return $html; } } stp_reg_shortcode('sv_feature_box','sv_vc_featured_box'); vc_map( array( "name" => esc_html__("SV Feature Box", 'bigc'), "base" => "sv_feature_box", "icon" => "icon-st", "category" => '7Up-theme', "params" => array( array( "type" => "textfield", "heading" => esc_html__("Icon",'bigc'), "param_name" => "icon", 'edit_field_class'=>'vc_col-sm-12 vc_column sv_iconpicker', ), array( "type" => "textfield", "heading" => esc_html__("Link feature",'bigc'), "param_name" => "link", ), array( "type" => "dropdown", "heading" => esc_html__("Style",'bigc'), "param_name" => "style", "value" => array( esc_html__("Icon left 1",'bigc') => 'feature-box-style-01', esc_html__("Icon left 2",'bigc') => 'feature-box-style-02', esc_html__("Icon left 3",'bigc') => 'feature-box-style-03', esc_html__("Icon left 4",'bigc') => 'feature-box-style-04', esc_html__("Icon right 1",'bigc') => 'feature-box-style-05', esc_html__("Icon right 2",'bigc') => 'feature-box-style-06', esc_html__("Icon right 3",'bigc') => 'feature-box-style-07', esc_html__("Icon right 4",'bigc') => 'feature-box-style-08', esc_html__("Icon top 1",'bigc') => 'feature-box-style-09', esc_html__("Icon top 2",'bigc') => 'feature-box-style-10', esc_html__("Icon top 3",'bigc') => 'feature-box-style-11', esc_html__("Icon top 4",'bigc') => 'feature-box-style-12', esc_html__("Icon box 1",'bigc') => 'feature-box-style-13', esc_html__("Icon box 2",'bigc') => 'feature-box-style-14', ) ), array( "type" => "textarea_html", "holder" => 'div', "heading" => esc_html__("Content",'bigc'), "param_name" => "content", ), ) ));