HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/hc-cosmetics.com/wp-content/plugins/dbea-shortcodes/shortcodes/sns_social_links.php
<?php
// SNS Social Links
add_shortcode('sns_social_links', 'dbea_social_links_template');
add_action('vc_after_init', 'dbea_social_links_settings');
function dbea_social_links_template($atts, $content = null) {
    ob_start();
    if ($template = dbea_shortcode_template('sns_social_links'))
        include $template;
    return ob_get_clean();
}
function dbea_social_links_settings() {
	$extra_class = dbea_extra_class();
	vc_map( array(
		"name"  => esc_html__("SNS Social Links", 'dbea-shortcodes'),
		"base" => "sns_social_links",
		"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__( 'Display link to your social links', 'dbea-shortcodes' ),
		"params" => array(
			array(
				"type" => "textfield",
				"heading" => esc_html__("Label for Follow us", 'dbea-shortcodes'),
				"param_name" => "label_followus" ,
				"value" => esc_html__("Follow us on:", 'dbea-shortcodes')
			),
			array(
				"type" => "dropdown",
				"class" => "",
				"heading" => esc_html__("Style",'dbea-shortcodes'),
				"param_name" => "style",
				"value" => array(
					esc_html__("Rounded",'dbea-shortcodes') => '1',
					esc_html__("Circle",'dbea-shortcodes') => '2',
					esc_html__("Simple",'dbea-shortcodes') => '3',
				),
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Facebook link", 'dbea-shortcodes'),
				"param_name" => "facebook_link" ,
				"value" => ""
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Twitter link", 'dbea-shortcodes'),
				"param_name" => "twitter_link" ,
				"value" => ""
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Youtube link", 'dbea-shortcodes'),
				"param_name" => "youtube_link" ,
				"value" => ""
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Pinterest link", 'dbea-shortcodes'),
				"param_name" => "pinterest_link" ,
				"value" => ""
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Instagram link", 'dbea-shortcodes'),
				"param_name" => "instagram_link" ,
				"value" => ""
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Tiktok link", 'dbea-shortcodes'),
				"param_name" => "tiktok_link" ,
				"value" => ""
			),
			vc_map_add_css_animation(),
			$extra_class,
		)
	));
}