????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/./tempvsty/eaabusiness.com/wp-content/themes/globeco/vc/theme_shortcodes/ |
Upload File : |
<?php
// Map Shortcode in Visual Composer
global $cws_theme_funcs;
$icon_params = cws_ext_icon_vc_sc_config_params ();
$settings = array(
array(
"type" => "textfield",
"heading" => esc_html__( 'Link', 'globeco' ),
"param_name" => "url",
),
array(
"type" => "checkbox",
"param_name" => "new_tab",
"value" => array( esc_html__( 'Open in New Tab', 'globeco' ) => true )
),
array(
"type" => "checkbox",
"param_name" => "side_separator",
"value" => array( esc_html__( 'Add Right Line', 'globeco' ) => true )
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Type', 'globeco' ),
"param_name" => "type",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array(
esc_html__( 'Simple', 'globeco' ) => 'simple',
esc_html__( 'Bordered', 'globeco' ) => 'bordered',
esc_html__( 'Alternative', 'globeco' ) => 'alt'
)
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Shape', 'globeco' ),
"param_name" => "shape",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "type",
"value" => array( "bordered", "alt" )
),
"value" => array(
esc_html__( 'Square', 'globeco' ) => 'square',
esc_html__( 'Round', 'globeco' ) => 'round'
)
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Size Border', 'globeco' ),
"param_name" => "size_b",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "type",
"value" => "bordered"
),
"value" => "2px"
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Size Icon', 'globeco' ),
"param_name" => "size",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array(
esc_html__( 'Medium', 'globeco' ) => '3x',
esc_html__( 'Small', 'globeco' ) => '2x',
esc_html__( 'Mini', 'globeco' ) => 'lg',
esc_html__( 'Large', 'globeco' ) => '4x',
esc_html__( 'Extra Large', 'globeco' ) => '5x'
)
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Aligning', 'globeco' ),
"param_name" => "aligning",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array(
esc_html__( 'None', 'globeco' ) => '',
esc_html__( 'Left', 'globeco' ) => 'left',
esc_html__( 'Right', 'globeco' ) => 'right',
esc_html__( 'Center', 'globeco' ) => 'center'
)
),
array(
"type" => "checkbox",
"param_name" => "customize_colors",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array( esc_html__( 'Customize Colors', 'globeco' ) => true )
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Fill Color', 'globeco' ),
"param_name" => "fill_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => "#fff"
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Font Color', 'globeco' ),
"param_name" => "font_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => GLOBECO_FIRST_COLOR
),
array(
"type" => "checkbox",
"param_name" => "customize_size",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array( esc_html__( 'Customize Size', 'globeco' ) => true )
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Size Icon', 'globeco' ),
"param_name" => "size_i",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_size",
"not_empty" => true
),
"value" => "15px"
),
array(
"type" => "checkbox",
"param_name" => "add_hover",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array( esc_html__( 'Add Hover', 'globeco' ) => true )
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Hover Effect', 'globeco' ),
"param_name" => "hover_i_style",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "add_hover",
"not_empty" => true
),
"value" => array(
esc_html__( 'Style 1', 'globeco' ) => 'style_1',
esc_html__( 'Style 2', 'globeco' ) => 'style_2',
esc_html__( 'Style 3', 'globeco' ) => 'style_3',
)
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Extra class name', 'globeco' ),
"description" => esc_html__( '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.', 'globeco' ),
"param_name" => "el_class",
"value" => ""
)
);
$params = array_merge( $icon_params, $settings );
$args = array(
"name" => esc_html__( 'CWS Icon', 'globeco' ),
"base" => "cws_sc_icon",
'category' => "By CWS",
"icon" => "cws_icon",
"weight" => 80,
"params" => $params
);
vc_map( $args );
if ( class_exists( 'WPBakeryShortCode' ) ) {
class WPBakeryShortCode_CWS_Sc_Icon extends WPBakeryShortCode {
}
}
?>