????JFIF??x?x????'
| Server IP : 104.21.30.238 / 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
global $cws_theme_funcs;
$body_font_options = $cws_theme_funcs->cws_get_option( 'body-font' );
$body_font_color = esc_attr( $body_font_options['color'] );
$theme_first_color = esc_attr( $cws_theme_funcs->cws_get_option( 'theme-first-color' ) );
$theme_second_color = esc_attr( $cws_theme_funcs->cws_get_option( 'theme-second-color' ) );
$icon_params = cws_ext_icon_vc_sc_config_params();
$params = cws_ext_merge_arrs( array(
array(
array(
"type" => "textfield",
"admin_label" => true,
"heading" => esc_html__( 'Subtitle', 'globeco' ),
"param_name" => "subtitle",
),
array(
"type" => "textfield",
"admin_label" => true,
"heading" => esc_html__( 'Title', 'globeco' ),
"param_name" => "title",
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Title HTML Tag', 'globeco' ),
"param_name" => "title_tag",
"value" => array(
esc_html__( "Default - (H1)", 'globeco' ) => 'h1',
esc_html__( "H1", 'globeco' ) => 'h1',
esc_html__( "H2", 'globeco' ) => 'h2',
esc_html__( "H3", 'globeco' ) => 'h3',
esc_html__( "H4", 'globeco' ) => 'h4',
esc_html__( "H5", 'globeco' ) => 'h5',
esc_html__( "H6", 'globeco' ) => 'h6',
)
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Subtitle state', 'globeco' ),
"param_name" => "subtitle_state",
"value" => array(
esc_html__( "Block", 'globeco' ) => 'block',
esc_html__( "Inline", 'globeco' ) => 'inline-block',
)
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Text Alignment', 'globeco' ),
"param_name" => "title_alignment",
"value" => array(
esc_html__( "Left", 'globeco' ) => 'left',
esc_html__( "Center", 'globeco' ) => 'center',
esc_html__( "Right", 'globeco' ) => 'right'
)
),
array(
"type" => "checkbox",
"param_name" => "add_divider",
"dependency" => array(
"element" => "subtitle_state",
"value" => 'block'
),
"value" => array( esc_html__( 'Add Divider', 'globeco' ) => true )
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Divider Style', 'globeco' ),
"param_name" => "divider_style",
"value" => array(
esc_html__( 'Underline', 'globeco' ) => 'underline',
esc_html__( 'Line-Through', 'globeco' ) => 'linethrough',
),
"dependency" => array(
"element" => "add_divider",
"not_empty" => true
)
),
array(
"type" => "dropdown",
"heading" => esc_html__( 'Icon Size', 'globeco' ),
"param_name" => "size",
"value" => array(
esc_html__( 'Extra Large', 'globeco' ) => '5x',
esc_html__( 'Large', 'globeco' ) => '4x',
esc_html__( 'Small', 'globeco' ) => '2x',
esc_html__( 'Medium', 'globeco' ) => '3x',
esc_html__( 'Mini', 'globeco' ) => 'lg',
)
),
array(
"type" => "textarea_html",
"heading" => esc_html__( 'Text', 'globeco' ),
"param_name" => "content",
),
array(
"type" => "checkbox",
"param_name" => "add_button",
"value" => array( esc_html__( 'Add Button', 'globeco' ) => true )
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Button Title', 'globeco' ),
"param_name" => "button_title",
"value" => "",
"dependency" => array(
"element" => "add_button",
"not_empty" => true
)
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Button URL', 'globeco' ),
"param_name" => "button_url",
"value" => "#",
"dependency" => array(
"element" => "add_button",
"not_empty" => true
)
),
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" => ""
),
array(
"type" => "css_editor",
"param_name" => "custom_styles",
"group" => esc_html__( "Styling", 'globeco' )
),
array(
"type" => "checkbox",
"param_name" => "customize_size",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array( esc_html__( 'Customize Sizes', 'globeco' ) => true )
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Title Margins', 'globeco' ),
"param_name" => "title_margins",
"group" => esc_html__( "Styling", 'globeco' ),
"description" => esc_html__( '1, 2( top/bottom, left/right ) or 4, space separated, values with units', 'globeco' ),
"dependency" => array(
"element" => "customize_size",
"not_empty" => true
),
"value" => "0px 0px 0px 0px"
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Subtitle Size', 'globeco' ),
"param_name" => "subtitle_size",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_size",
"not_empty" => true
),
"value" => "55px"
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Title Size', 'globeco' ),
"param_name" => "title_size",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_size",
"not_empty" => true
),
"value" => "55px"
),
array(
"type" => "textfield",
"heading" => esc_html__( 'Divider Size', 'globeco' ),
"param_name" => "divider_size",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_size",
"not_empty" => true
),
"value" => "55px"
),
array(
"type" => "checkbox",
"param_name" => "customize_colors",
"group" => esc_html__( "Styling", 'globeco' ),
"value" => array( esc_html__( 'Customize Colors', 'globeco' ) => true ),
"std" => "0"
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Font Color', 'globeco' ),
"param_name" => "custom_font_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $body_font_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Subtitle Color', 'globeco' ),
"param_name" => "custom_subtitle_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_second_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Title Color', 'globeco' ),
"param_name" => "custom_title_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_first_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Divider Color', 'globeco' ),
"param_name" => "custom_divider_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_second_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Button Background Color', 'globeco' ),
"param_name" => "custom_button_bg_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_second_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Button Border Color', 'globeco' ),
"param_name" => "custom_button_brd_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_second_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Button Text Color', 'globeco' ),
"param_name" => "custom_button_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => '#ffffff'
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Button Background Color on Hover', 'globeco' ),
"param_name" => "custom_hover_button_bg_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => ''
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Button Border Color on Hover', 'globeco' ),
"param_name" => "custom_hover_button_brd_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_second_color
),
array(
"type" => "colorpicker",
"heading" => esc_html__( 'Button Text Color on Hover', 'globeco' ),
"param_name" => "custom_hover_button_color",
"group" => esc_html__( "Styling", 'globeco' ),
"dependency" => array(
"element" => "customize_colors",
"not_empty" => true
),
"value" => $theme_second_color
),
)
));
vc_map( array(
"name" => esc_html__( 'CWS Text', 'globeco' ),
"base" => "cws_sc_text",
'category' => "By CWS",
// "icon" => "boc_spacing",
"icon" => "cws_icon",
"weight" => 80,
"params" => $params
));
if ( class_exists( 'WPBakeryShortCode' ) ) {
class WPBakeryShortCode_CWS_Sc_Text extends WPBakeryShortCode {
}
}
?>