'popup',
'image' => '',
'title' => '',
'link' => '',
// 'des' => '',
),$attr));
if(!empty($image)){
switch ($style) {
case 'special':
$html .= '
'.wp_get_attachment_image($image,'full').'
';
if(!empty($title)) $html .= '
';
$html .= '
';
break;
}
}
return $html;
}
}
stp_reg_shortcode('sv_image_popup','sv_vc_image_popup');
vc_map( array(
"name" => esc_html__("SV Image Style", 'bigc'),
"base" => "sv_image_popup",
"icon" => "icon-st",
"category" => '7Up-theme',
"params" => array(
array(
"type" => "dropdown",
"heading" => esc_html__("Style",'bigc'),
"param_name" => "style",
"value" => array(
esc_html__("Popup",'bigc') => 'popup',
esc_html__("Special",'bigc') => 'special',
)
),
array(
"type" => "attach_image",
"heading" => esc_html__("Image",'bigc'),
"param_name" => "image",
),
array(
"type" => "textfield",
"holder" => "div",
"heading" => esc_html__("Title",'bigc'),
"param_name" => "title",
),
// array(
// "type" => "textarea",
// "holder" => "div",
// "heading" => esc_html__("Description",'bigc'),
// "param_name" => "des",
// "dependency" => array(
// "element" => 'style',
// "value" => 'special',
// )
// ),
array(
"type" => "textfield",
"heading" => esc_html__("Link url",'bigc'),
"param_name" => "link",
)
)
));