File: //home/madepabj/hc-cosmetics.com/wp-content/plugins/dbea-shortcodes/shortcodes/sns_store_info.php
<?php
// SNS Store Info
add_shortcode('sns_store_info', 'dbea_store_info_template');
add_action('vc_after_init', 'dbea_store_info_settings');
function dbea_store_info_template($atts, $content = null) {
ob_start();
if ($template = dbea_shortcode_template('sns_store_info'))
include $template;
return ob_get_clean();
}
function dbea_store_info_settings() {
$extra_class = dbea_extra_class();
vc_map( array(
"name" => esc_html__("SNS Store Info", 'dbea-shortcodes'),
"base" => "sns_store_info",
"show_settings_on_create" => true ,
"is_container" => false ,
"icon" => "vc_icon_snstheme",
"class" => "vc_icon_snstheme",
"content_element" => true ,
"category" => esc_html__('DBea', 'dbea-shortcodes'),
'description' => esc_html__( 'Store info: Address, Phone, Email, ...', 'dbea-shortcodes' ),
"params" => array(
array(
"type" => "textfield",
"heading" => esc_html__("Title", 'dbea-shortcodes'),
"param_name" => "title" ,
"value" => ""
),
array(
"type" => "dropdown",
"class" => "",
"heading" => esc_html__("Style",'dbea-shortcodes'),
"param_name" => "style",
"value" => array(
esc_html__("Show label",'dbea-shortcodes') => '1',
esc_html__("Show icon",'dbea-shortcodes') => '2',
esc_html__("Show icon and label",'dbea-shortcodes') => '3',
),
),
array(
"type" => "attach_image",
"heading" => esc_html__("Logo Store", 'dbea-shortcodes'),
"param_name" => "logo_store",
),
array(
"type" => "textarea",
"heading" => esc_html__("Short Intro", 'dbea-shortcodes'),
"param_name" => "short_intro"
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon for Address', 'dbea-shortcodes' ),
'param_name' => 'icon_address',
'value' => 'fa fa-adjust',
'settings' => array(
'emptyIcon' => false,
'type' => 'ionicons',
'iconsPerPage' => 4000,
),
'dependency' => array(
'element' => 'style',
'value' => array('2', '3'),
),
'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
),
array(
"type" => "textarea",
"heading" => esc_html__("Address", 'dbea-shortcodes'),
"param_name" => "address"
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon for Location link on map', 'dbea-shortcodes' ),
'param_name' => 'icon_map',
'value' => 'fa fa-adjust',
'settings' => array(
'emptyIcon' => false,
'type' => 'ionicons',
'iconsPerPage' => 4000,
),
'dependency' => array(
'element' => 'style',
'value' => array('2', '3'),
),
'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
),
array(
"type" => "textfield",
"heading" => esc_html__("Location link on map", 'dbea-shortcodes'),
"param_name" => "direction_link"
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon for E-Mail', 'dbea-shortcodes' ),
'param_name' => 'icon_email',
'value' => 'fa fa-adjust',
'settings' => array(
'emptyIcon' => false,
'type' => 'ionicons',
'iconsPerPage' => 4000,
),
'dependency' => array(
'element' => 'style',
'value' => array('2', '3'),
),
'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
),
array(
"type" => "textfield",
"heading" => esc_html__("E-Mail", 'dbea-shortcodes'),
"param_name" => "email"
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon Official hour', 'dbea-shortcodes' ),
'param_name' => 'icon_official_hour',
'value' => 'fa fa-adjust',
'settings' => array(
'emptyIcon' => false,
'type' => 'ionicons',
'iconsPerPage' => 4000,
),
'dependency' => array(
'element' => 'style',
'value' => array('2', '3'),
),
'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
),
array(
'type' => 'textarea_raw_html',
"heading" => esc_html__("Office hour info", 'dbea-shortcodes'),
"param_name" => "official_hour",
"admin_label" => true,
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon for Phone', 'dbea-shortcodes' ),
'param_name' => 'icon_phone',
'value' => 'fa fa-adjust',
'settings' => array(
'emptyIcon' => false,
'type' => 'ionicons',
'iconsPerPage' => 4000,
),
'dependency' => array(
'element' => 'style',
'value' => array('2', '3'),
),
'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
),
array(
"type" => "textfield",
"heading" => esc_html__("Phone", 'dbea-shortcodes'),
"param_name" => "phone"
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon for Mobile Number', 'dbea-shortcodes' ),
'param_name' => 'icon_phone2',
'value' => 'fa fa-adjust',
'settings' => array(
'emptyIcon' => false,
'type' => 'ionicons',
'iconsPerPage' => 4000,
),
'dependency' => array(
'element' => 'style',
'value' => array('2', '3'),
),
'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
),
array(
"type" => "textfield",
"heading" => esc_html__("Mobile Number", 'dbea-shortcodes'),
"param_name" => "phone2"
),
vc_map_add_css_animation(),
$extra_class,
)
));
}