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_info_inline.php
<?php
// SNS Info Box
add_shortcode('sns_info_inline', 'dbea_info_inline_template');
add_action('vc_after_init', 'dbea_info_inline_settings');
function dbea_info_inline_template($atts, $content = null) {
    ob_start();
    if ($template = dbea_shortcode_template('sns_info_inline'))
        include $template;
    return ob_get_clean();
}
function dbea_info_inline_settings() {
	$extra_class = dbea_extra_class();
    vc_map( array(
		"name"  => esc_html__("SNS Info Inline", 'dbea-shortcodes'),
		"base" => "sns_info_inline",
		"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__( 'Contain: icon, title, link, ... and display inline', 'dbea-shortcodes' ),
		"params" => array(
			array(
				'type' => 'dropdown',
				'heading' => esc_html__( 'Style', 'dbea-shortcodes' ),
				'value' => array(
					esc_html__( 'Default', 'dbea-shortcodes' ) => '',
					esc_html__( 'Social', 'dbea-shortcodes' ) => 'social',
					esc_html__( 'Social Rounded', 'dbea-shortcodes' ) => 'social_rounded',
				),
				'param_name' => 'style',
			),
			// array(
			// 	'type' => 'checkbox',
			// 	'heading' => __( 'Use icon?', 'dbea-shortcodes' ),
			// 	'param_name' => 'use_icon',
			// 	'description' => __( 'Use icon in content', 'dbea-shortcodes' ),
			// ),
			array(
				'type' => 'dropdown',
				'heading' => esc_html__( 'Use icon?', 'dbea-shortcodes' ),
				'value' => array(
					esc_html__( 'No', 'dbea-shortcodes' ) => '',
					esc_html__( 'Font Awesome', 'dbea-shortcodes' ) => 'fontawesome',
					esc_html__( 'Ionicons', 'dbea-shortcodes' ) => 'ionicons',
				),
				'param_name' => 'icon_type',
				'description' => esc_html__( 'Select icon library.', 'dbea-shortcodes' ),
			),
			array(
				'type' => 'iconpicker',
				'heading' => esc_html__( 'Icon', 'dbea-shortcodes' ),
				'param_name' => 'icon_fontawesome',
				'value' => 'fa fa-adjust', // default value to backend editor admin_label
				'settings' => array(
					'emptyIcon' => false,
					'iconsPerPage' => 4000,
				),
				'dependency' => array(
					'element' => 'icon_type',
					'value' => 'fontawesome',
				),
				'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
			),
			array(
				'type' => 'iconpicker',
				'heading' => esc_html__( 'Icon', 'dbea-shortcodes' ),
				'param_name' => 'icon_ionicons',
				'value' => '', // default value to backend editor admin_label
				'settings' => array(
					'emptyIcon' => false,
					'type' => 'ionicons',
					'iconsPerPage' => 4000,
				),
				'dependency' => array(
					'element' => 'icon_type',
					'value' => 'ionicons',
				),
				'description' => esc_html__( 'Select icon from library.', 'dbea-shortcodes' ),
			),
			array(
				'type' => 'checkbox',
				'heading' => __( 'Use label?', 'dbea-shortcodes' ),
				'param_name' => 'use_label',
				'description' => __( 'Use label in content', 'dbea-shortcodes' ),
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Label", 'dbea-shortcodes'),
				"param_name" => "label",
				"value" => esc_html__("Your label here ...",'dbea-shortcodes'),
				'dependency' => array(
					'element' => 'use_label',
					'value' => 'true',
				),
				
			),
			array(
				'type' => 'checkbox',
				'heading' => __( 'Use link?', 'dbea-shortcodes' ),
				'param_name' => 'use_link',
				'description' => __( 'Use link in content', 'dbea-shortcodes' ),
			),
			array(
				"type" => "textfield",
				"heading" => esc_html__("Link", 'dbea-shortcodes'),
				"param_name" => "link" ,
				"description" => esc_html__("Enter the  link. Do't forget to include http:// ", 'dbea-shortcodes'),
				'dependency' => array(
					'element' => 'use_link',
					'value' => 'true',
				),
				"value" => esc_html__("http://", 'dbea-shortcodes'),
				"admin_label" => true 
			),
			array(
				'type' => 'dropdown',
				'heading' => esc_html__( 'Link type', 'dbea-shortcodes' ),
				'value' => array(
					esc_html__( 'Default', 'dbea-shortcodes' ) => '0',
					esc_html__( 'Use mailto:', 'dbea-shortcodes' ) => '1',
					esc_html__( 'Use tel:', 'dbea-shortcodes' ) => '2',
				),
				'dependency' => array(
					'element' => 'use_link',
					'value' => 'true',
				),
				'param_name' => 'href_type',
			),
			array(
				'type' => 'dropdown',
				'heading' => esc_html__( 'Link target', 'dbea-shortcodes' ),
				'value' => array(
					esc_html__( 'Same window', 'dbea-shortcodes' ) => '_self',
					esc_html__( 'New window', 'dbea-shortcodes' ) => '_blank',
				),
				'dependency' => array(
					'element' => 'use_link',
					'value' => 'true',
				),
				'param_name' => 'target',
			),
			$extra_class,
			vc_map_add_css_animation(),
		)
	));
}