"Advanced Profile Card", "category" => 'Advanced Elements', "description" => "To show profile or team member.Both", "base" => "awavc_profile_box", "class" => "", "icon" => "advc_profile_icon", "admin_label" => true, "params" => array( array( "type" => "dropdown", "class" => "", "heading" => __("Profile Card Style:", "advc"), "param_name" => "advc_pc_style", "value" => array( __("Box style 1","advc") => 'boxvd1', __("Box style 2","advc") => 'boxvd2', __("Box style 3","advc") => 'boxvd3', __("Box style 4","advc") => 'boxvd4', __("Box style 5","advc") => 'boxvd5', __("Box style 6","advc") => 'boxvd6', __("Box style 7","advc") => 'boxvd7', __("Box style 8","advc") => 'boxvd8', __("Box style 9","advc") => 'boxvd9', __("Box style 10","advc") => 'boxvd10', ), "admin_label" => true, //"std" => "boxvd2", ), array( "type" => "attach_image", "heading" => __("Profile Image", "advc"), "param_name" => "image", "value" => "", "description" => __("", "advc"), ), array( "type" => "attach_image", "heading" => __("Background Image", "advc"), "param_name" => "images", "value" => "", "description" => __("", "advc"), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd1", ), ), array( "type" => "attach_image", "heading" => __("Background Image", "advc"), "param_name" => "images2", "value" => "", "description" => __("", "advc"), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd7", ), ), array( "type" => "textfield", "heading" => __("Title", 'advc'), "param_name" => "title", "description" => __("", 'advc'), "value" => __("Title", 'advc'), ), array( "type" => "textarea", "heading" => __("Designation", 'advc'), "param_name" => "desig", "description" => __("", 'advc'), "value" => __("Designer", 'advc'), ), array( "type" => "textarea", "heading" => __("Description", 'advc'), "param_name" => "desc", "description" => __("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.", 'advc'), "value" => __("Description", 'advc'), ), array( 'type' => 'param_group', 'heading' => __( 'Social Media Links', 'advc' ), 'param_name' => 'pc_social_lists', "group" => __("Social Icon", 'advc'), 'params' => array( array( 'type' => 'vc_link', 'heading' => __( 'Social Media Link', 'advc' ), 'param_name' => 'media_links', 'description' => __( '', 'advc' ), 'value' => '#', ), array( 'type' => 'iconpicker', 'heading' => __( 'social Media Icon', 'advc' ), 'param_name' => 'social_icon', 'description' => __( '', 'advc' ), 'value' => 'fa fa-facebook', ), ), ), /* Overview */ /* Overview */ /* Overview */ /* Overview */ /* Overview */ /* Overview */ /* Overview */ /* Overview */ /* Overview */ array( 'type' => 'param_group', 'heading' => __( 'Project Overview-Counter', 'advc' ), 'param_name' => 'pc_overvie_ones', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), "group" => __("Overview Sections", 'advc'), 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Overview Title', 'advc' ), 'param_name' => 'overview_title', 'description' => __( '', 'advc' ), 'value' => 'PROJECTS', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), ), array( 'type' => 'textfield', 'heading' => __( 'Overview Count Value', 'advc' ), 'param_name' => 'overview_count', 'description' => __( '', 'advc' ), 'value' => '2230', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), ), ), ), array( 'type' => 'param_group', 'heading' => __( 'Project Overview-Counter', 'advc' ), 'param_name' => 'pc_overvie_twos', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), "group" => __("Overview Sections", 'advc'), 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Overview Title', 'advc' ), 'param_name' => 'overview_title', 'description' => __( '', 'advc' ), 'value' => 'FOLLOWERS', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), ), array( 'type' => 'textfield', 'heading' => __( 'Overview Count Value', 'advc' ), 'param_name' => 'overview_count', 'description' => __( '', 'advc' ), 'value' => '223', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), ), ), ), array( 'type' => 'param_group', 'heading' => __( 'Project Overview-Counter', 'advc' ), 'param_name' => 'pc_overvie_threes', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), "group" => __("Overview Sections", 'advc'), 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Overview Title', 'advc' ), 'param_name' => 'overview_title', 'description' => __( '', 'advc' ), 'value' => 'FOLLOWERS', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), array( 'type' => 'textfield', 'heading' => __( 'Overview Count Value', 'advc' ), 'param_name' => 'overview_count', 'description' => __( '', 'advc' ), 'value' => '223', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), ), ), array( 'type' => 'param_group', 'heading' => __( 'Project Overview-Counter', 'advc' ), 'param_name' => 'pc_overvie_fours', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd7", ), "group" => __("Overview Sections", 'advc'), 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Overview Title', 'advc' ), 'param_name' => 'overview_title', 'description' => __( '', 'advc' ), 'value' => 'FOLLOWERS', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), array( 'type' => 'textfield', 'heading' => __( 'Overview Count Value', 'advc' ), 'param_name' => 'overview_count', 'description' => __( '', 'advc' ), 'value' => '223', "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), ), ), array( "type" => "textfield", "heading" => __('Button Text', 'advc'), "param_name" => "btn_txt", "description" => __("if you dont want it leave it blank", 'advc'), "group" => __("Button", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd9", ), ), array( "type" => "vc_link", "heading" => __('Button URL', 'advc'), "param_name" => "btn_url", "description" => __("Ex:http://themescup.com/", 'advc'), "group" => __("Button", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd9", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Button Text Size', 'advc' ), 'param_name' => 'btn_txt_size', "value" => 16, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "advc"), "group" => __("Button", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd9", ), ), array( "type" => "colorpicker", "heading" => __("Button Text Color", 'advc'), "param_name" => "btn_txt_color", "value" => "", "group" => __("Button", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd9", ), ), array( "type" => "colorpicker", "heading" => __("Button Background", 'advc'), "param_name" => "btn_bg", "value" => "", "group" => __("Button", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd9", ), ), array( "type" => "colorpicker", "heading" => __("Button Background On Hover", 'advc'), "param_name" => "btn_bg_hvr", "value" => "", "group" => __("Button", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd9", ), ), array( "type" => "textfield", "heading" => __('Portfolio Link', 'advc'), "param_name" => "prt_link", "description" => __("if you dont want it leave it blank", 'advc'), ), array( "type" => "textfield", "heading" => esc_attr__("Extra class name", 'advc'), "param_name" => "el_class", "description" => esc_attr__("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'advc'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Icon Size', 'advc' ), 'param_name' => 'icon_size', "value" => 16, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "advc"), "group" => __("Social Icon", 'advc'), ), array( "type" => "colorpicker", "heading" => __("Icon Color", 'advc'), "param_name" => "icon_color", "value" => "red", "group" => __("Social Icon", 'advc'), ), array( "type" => "colorpicker", "heading" => __("Icon Color On Hover", 'advc'), "param_name" => "icon_color_hvr", "value" => "red", "group" => __("Social Icon", 'advc'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Background Image Height', 'advc' ), 'param_name' => 'bg_hite', "value" => 110, "min" => 5, "max" => 500, "step" => 5, "unit" => "px", "description" => __("It will work In Profile Card Style 1,", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style", "value" => "boxvd1", ) , ), array( 'type' => 'prime_slider', 'heading' => __( 'Profile Image Size', 'advc' ), 'param_name' => 'prf_img_size', "value" => 100, "min" => 5, "max" => 500, "step" => 5, "unit" => "px", "description" => __("It will work In Profile Card Style 1,", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd1", ) , ), array( 'type' => 'prime_slider', 'heading' => __( 'Title Font Size', 'advc' ), 'param_name' => 'title_f_size', "value" => 20, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "advc"), "group" => __("Settings", 'advc'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Title Font style", "advc"), "param_name" => "title_f_style", "value" => array( __("Normal","advc") => "", __("Italic","advc") => "italic", ), "group" => __("Settings", 'advc'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Designation Font Size', 'advc' ), 'param_name' => 'desig_f_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Designation Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Designation Font style", "advc"), "param_name" => "desig_f_style", "value" => array( __("Normal","advc") => "", __("Italic","advc") => "italic", ), "group" => __("Settings", 'advc'), "description" => __("This Will be Designation Color Also", 'advc'), "std" => "italic", ), array( 'type' => 'prime_slider', 'heading' => __( 'Description Font Size', 'advc' ), 'param_name' => 'desc_f_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Description Font style", "advc"), "param_name" => "desc_f_style", "value" => array( __("Normal","advc") => "", __("Italic","advc") => "italic", ), "group" => __("Settings", 'advc'), "description" => __("THis Will be Designation Color Also", 'advc'), ), /* Overview css */ /* Overview css */ /* Overview css */ /* Overview css */ array( 'type' => 'prime_slider', 'heading' => __( 'Overview Title Size', 'advc' ), 'param_name' => 'over_ttl_size', "value" => 10, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Number Size', 'advc' ), 'param_name' => 'over_num_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Title Size', 'advc' ), 'param_name' => 'over_ttl_size1', "value" => 10, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Number Size', 'advc' ), 'param_name' => 'over_num_size1', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Title Size', 'advc' ), 'param_name' => 'over_ttl_size2', "value" => 10, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Number Size', 'advc' ), 'param_name' => 'over_num_size2', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Title Size', 'advc' ), 'param_name' => 'over_ttl_size3', "value" => 10, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd7", ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Overview Number Size', 'advc' ), 'param_name' => 'over_num_size3', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel. Default is 14px", "advc"), "group" => __("Settings", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd7", ), ), array( "type" => "colorpicker", "heading" => __("Background Color", 'advc'), "param_name" => "bg_color", "value" => "red", "group" => __("Colors", 'advc'), ), array( "type" => "colorpicker", "heading" => __("Background Color On Hover", 'advc'), "param_name" => "bg_color_hvr", "value" => "red", "group" => __("Colors", 'advc'), ), array( "type" => "colorpicker", "heading" => __("Title Color", 'advc'), "param_name" => "ttl_color", "value" => "", "group" => __("Colors", 'advc'), ), array( "type" => "colorpicker", "heading" => __("Description Color", 'advc'), "param_name" => "desc_color", "value" => "", "group" => __("Colors", 'advc'), ), array( "type" => "colorpicker", "heading" => __("Desig Color", 'advc'), "param_name" => "desig_color", "value" => "", "group" => __("Colors", 'advc'), ), /* Overview css */ /* Overview css */ /* Overview css */ array( "type" => "colorpicker", "heading" => __("Overview Title Color", 'advc'), "param_name" => "over_ttl_color", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), ), array( "type" => "colorpicker", "heading" => __("Overview Number Color", 'advc'), "param_name" => "over_num_color", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd4", ), ), array( "type" => "colorpicker", "heading" => __("Overview Title Color 1", 'advc'), "param_name" => "over_ttl_color1", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), ), array( "type" => "colorpicker", "heading" => __("Overview Number Color 1", 'advc'), "param_name" => "over_num_color1", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd5", ), ), array( "type" => "colorpicker", "heading" => __("Overview Title Color", 'advc'), "param_name" => "over_ttl_color2", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), array( "type" => "colorpicker", "heading" => __("Overview Number Color", 'advc'), "param_name" => "over_num_color2", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd6", ), ), array( "type" => "colorpicker", "heading" => __("Overview Title Color", 'advc'), "param_name" => "over_ttl_color3", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd7", ), ), array( "type" => "colorpicker", "heading" => __("Overview Number Color", 'advc'), "param_name" => "over_num_color3", "value" => "", "group" => __("Colors", 'advc'), "dependency" => array( "element" => "advc_pc_style","value" => "boxvd7", ), ), array( "type" => "colorpicker", "heading" => __("Text Color on Hover", 'advc'), "param_name" => "txt_hvr_color", "value" => "", "group" => __("Colors", 'advc'), ), ) )); function awavc_profile_box_two_shortcode($atts, $content = null) { extract(shortcode_atts(array( //'show_btnnnn' => 'Yes', 'advc_pc_style' => 'boxvd1', 'image' => '', 'images' => '', 'images2' => '', 'title' => 'Title', 'desig' => 'AFO', 'desc' => 'Awesome way to show your features inside wpbakery page builder.', 'pc_social_lists' => '', 'el_class' => '', 'prt_link' => '', 'icon_size' => '', 'icon_color' => '', 'icon_color_hvr' => '', 'bg_hite' => '', 'prf_img_size' => '', 'title_f_size' => '', 'title_f_style' => '', 'desig_f_size' => '', 'desig_f_style' => '', 'desc_f_size' => '', 'desc_f_style' => '', 'bg_color' => '', 'bg_color_hvr' => '', 'ttl_color' => '', 'desc_color' => '', 'desig_color' => '', 'brdr_color' => '', 'txt_hvr_color' => '', 'pc_overvie_ones' => '', 'pc_overvie_twos' => '', 'pc_overvie_threes' => '', 'pc_overvie_fours' => '', 'over_ttl_size' => '', 'over_num_size' => '', 'over_ttl_size1' => '', 'over_num_size1' => '', 'over_ttl_size2' => '', 'over_num_size2' => '', 'over_ttl_size3' => '', 'over_num_size3' => '', 'over_ttl_color' => '', 'over_num_color' => '', 'over_ttl_color1' => '', 'over_num_color1' => '', 'over_ttl_color2' => '', 'over_num_color2' => '', 'over_ttl_color3' => '', 'over_num_color3' => '', 'btn_txt' => '', 'btn_url' => '', 'btn_txt_color' => '', 'btn_txt_size' => '', 'btn_bg' => '', 'btn_bg_hvr' => '', ), $atts)); //$image_url = wp_get_attachment_url( $image, 'full' ); //$image = aq_resize( $image_url, 296, 289, false ); //resize & crop the image //var_dump($image); $image = wp_get_attachment_image_src( $image, 'full' ); $images = wp_get_attachment_image_src( $images, 'full' ); $images2 = wp_get_attachment_image_src( $images2, 'full' ); if($advc_pc_style == "boxvd9" && !empty($btn_url)){ $btn_url = vc_build_link( $btn_url); $btn_url_link = $btn_url['url']; $btn_url_target = $btn_url['target']; } $html = ''; $list_html = ''; $overview_html = ''; $pc_social_lists = vc_param_group_parse_atts($pc_social_lists); if($advc_pc_style == "boxvd4" && !empty($pc_overvie_ones)){ $pc_overvie_ones = vc_param_group_parse_atts($pc_overvie_ones); foreach ($pc_overvie_ones as $pc_overvie_one) { $overview_title = $pc_overvie_one['overview_title']; $overview_count = $pc_overvie_one['overview_count']; $overview_html .= '
'.$overview_title.'
'.$overview_title.'
'.$overview_title.'
'.$overview_title.'
'.$desc.'
'.$desc.'
'; if($advc_pc_style == "boxvd9" && !empty($btn_txt)) { $html .= ''.$btn_txt.''; } $html .= '