'', 'title' => '', 'title2' => '', 'link' => '', 'bg_color' => '', 'ct_color' => '', 'image' => '', 'style' => 'icon', ),$attr)); $c_bg_color = $c_title_color = $icon_html = ''; if(!empty($bg_color)) $c_bg_color = SV_Assets::build_css('background-color:'.$bg_color); if(!empty($ct_color)) $c_title_color = SV_Assets::build_css('color:'.$ct_color.' !important'); if(!empty($icon)){ if(strpos($icon,'lnr') !== false) $icon_html = ''; else $icon_html = ''; } switch ($style) { case 'image-bg': $html .= '
'; if(!empty($image)) $html .= ''.wp_get_attachment_image($image,'full').''; if(!empty($title)) $html .= '

'.$title.'

'; $html .= '
'; break; case 'image-bg-2': $html .= '
'; if(!empty($image)) $html .= ''.wp_get_attachment_image($image,'full').''; if(!empty($title)) $html .= '

'.$title.'

'; if(!empty($title2)) $html .= '

'.$icon_html.' '.$title2.'

'; $html .= '
'; break; default: $html .= '
'.$icon_html.'

'.$title.'

'; break; } return $html; } } stp_reg_shortcode('sv_about','sv_vc_about'); vc_map( array( "name" => esc_html__("SV About", 'bigc'), "base" => "sv_about", "icon" => "icon-st", "category" => '7Up-theme', "params" => array( array( "type" => "dropdown", "heading" => esc_html__("Style",'bigc'), "param_name" => "style", "value" => array( esc_html__("Icon",'bigc') => 'icon', esc_html__("Image Background",'bigc') => 'image-bg', esc_html__("Image Background 2",'bigc') => 'image-bg-2', ) ), array( "type" => "attach_image", "heading" => esc_html__("Image",'bigc'), "param_name" => "image", "dependency" => array( "element" => 'style', "value" => array('image-bg','image-bg-2'), ) ), array( "type" => "textfield", "heading" => esc_html__("Icon",'bigc'), "param_name" => "icon", 'edit_field_class'=>'vc_col-sm-12 vc_column sv_iconpicker', "dependency" => array( "element" => 'style', "value" => array('icon','image-bg-2'), ) ), array( "type" => "textfield", "holder" => "div", "heading" => esc_html__("Title",'bigc'), "param_name" => "title", ), array( "type" => "textfield", "holder" => "div", "heading" => esc_html__("Title 2",'bigc'), "param_name" => "title2", "dependency" => array( "element" => 'style', "value" => 'image-bg-2', ) ), array( "type" => "textfield", "heading" => esc_html__("Link About",'bigc'), "param_name" => "link", ), array( "type" => "colorpicker", "heading" => esc_html__("Title Color",'bigc'), "param_name" => "ct_color", ), array( "type" => "colorpicker", "heading" => esc_html__("Background Color",'bigc'), "param_name" => "bg_color", "dependency" => array( "element" => 'style', "value" => 'icon', ) ), ) ));