????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.96.1  /  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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/eaabusiness.com/wp-content/themes/globeco/vc/theme_shortcodes/cws_sc_button.php
<?php
	// Map Shortcode in Visual Composer
	global $cws_theme_funcs;
	$header_font = $cws_theme_funcs->cws_get_option('header-font');
	$header_color = esc_attr( $header_font['color'] );
	$first_color = esc_attr( $cws_theme_funcs->cws_get_option( 'theme-first-color' ) );
	$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__( 'Title', 'globeco' ),
				"param_name"	=> "title",
			),
			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"			=> "dropdown",
				"heading"		=> esc_html__( 'Button type', 'globeco' ),
				"param_name"	=> "btn_type",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> array(
					esc_html__( 'Default', 'globeco' )		=> 'default',
					esc_html__( 'Simple', 'globeco' )		=> 'simple',
					esc_html__( 'Advanced', 'globeco' )	=> 'advanced',
				),
			),
			array(
				"type"			=> "dropdown",
				"heading"		=> esc_html__( 'Size', 'globeco' ),
				"param_name"	=> "size",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> array(
					esc_html__( 'Regular', 'globeco' )		=> 'regular',
					esc_html__( 'Small', 'globeco' )		=> 'small',
					esc_html__( 'Large', 'globeco' )		=> 'large',
				),
			),
			array(
				"type"			=> "textfield",
				"heading"		=> esc_html__( 'Left/Right Padding', 'globeco' ),
				"description"	=> esc_html__( 'Units Required. Separate with space if needed.', 'globeco' ),
				"param_name"	=> "ofs",
				"dependency"	=> array(
					"element"	=> "btn_type",
					"value"		=> array(
						'default',
						'advanced'
					)
				),
				"value"			=> '',
				"group"			=> esc_html__( "Styling", 'globeco' ),
			),
			array(
				"type"			=> "dropdown",
				"heading"		=> esc_html__( 'Aligning', 'globeco' ),
				"param_name"	=> "aligning",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> array(
					esc_html__( 'Left', 'globeco' )		=> 'left',
					esc_html__( 'Center', 'globeco' )		=> 'center',
					esc_html__( 'Right', 'globeco' )		=> 'right',
				) 
			),
			array(
				"type"			=> "dropdown",
				"heading"		=> esc_html__( 'Aligning on mobile devices', 'globeco' ),
				"param_name"	=> "aligning_mob",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> array(
					esc_html__( 'Center', 'globeco' )		=> 'center',
					esc_html__( 'Left', 'globeco' )		=> 'left',
					esc_html__( 'Right', 'globeco' )		=> 'right',
				) 
			),
		),
		$icon_params,
		array(
			array(
				"type"			=> "dropdown",
				"heading"		=> esc_html__( 'Icon Position', 'globeco' ),
				"param_name"	=> "icon_pos",
				"value"			=> array(
					esc_html__( 'Right', 'globeco' )		=> 'right',
					esc_html__( 'Left', 'globeco' )		=> 'left'
				) 
			),
			array(
				"type"			=> "checkbox",
				"param_name"	=> "customize_size_title",
				"group"			=> esc_html__( "Styling", 'globeco' ),			
				"value"			=> array( esc_html__( 'Edit Title', 'globeco' ) => true )			
			),
			array(
				"type"			=> "textfield",
				"heading"		=> esc_html__( 'Font Size Title', 'globeco' ),
				"param_name"	=> "size_t",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"dependency"	=> array(
					"element"	=> "customize_size_title",
					"not_empty"	=> true
				),
				"value"			=> "22px"
			),				
			array(
				"type"			=> "textfield",
				"heading"		=> esc_html__( 'Font Weight Title', 'globeco' ),
				"param_name"	=> "weight_t",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"dependency"	=> array(
					"element"	=> "customize_size_title",
					"not_empty"	=> true
				),
				"value"			=> "400"
			),
			array(
				"type"			=> "colorpicker",
				"heading"		=> esc_html__( 'Font Color', 'globeco' ),
				"param_name"	=> "font_color",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> "#fff",
				"edit_field_class" => "vc_col-xs-6",
			),			
			array(
				"type"			=> "colorpicker",
				"heading"		=> esc_html__( 'Font Color (Hover)', 'globeco' ),
				"param_name"	=> "font_color_hover",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> "#fff",
				"edit_field_class" => "vc_col-xs-6",
			),
			array(
				"type"			=> "colorpicker",
				"heading"		=> esc_html__( 'Background Color', 'globeco' ),
				"param_name"	=> "background_color",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> $first_color,
				"edit_field_class" => "vc_col-xs-6",
				"dependency"	=> array(
					"element"	=> "btn_type",
					"value"		=> array(
						'default',
						'advanced'
					)
				),
			),
			array(
				"type"			=> "colorpicker",
				"heading"		=> esc_html__( 'Background Color (Hover)', 'globeco' ),
				"param_name"	=> "background_color_hover",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"value"			=> $first_color,
				"edit_field_class" => "vc_col-xs-6",
				"dependency"	=> array(
					"element"	=> "btn_type",
					"value"		=> array(
						'default',
						'advanced'
					)
				),
			),
			array(
				"type"			=> "colorpicker",
				"heading"		=> esc_html__( 'Border Color', 'globeco' ),
				"param_name"	=> "border_color",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"edit_field_class" => "vc_col-xs-6",
				"dependency"	=> array(
					"element"	=> "btn_type",
					"value"		=> "default",
				),
				"value"			=> $first_color
			),
			array(
				"type"			=> "colorpicker",
				"heading"		=> esc_html__( 'Border Color (Hover)', 'globeco' ),
				"param_name"	=> "border_color_hover",
				"group"			=> esc_html__( "Styling", 'globeco' ),
				"edit_field_class" => "vc_col-xs-6",
				"dependency"	=> array(
					"element"	=> "btn_type",
					"value"		=> "default",
				),	
				"value"			=> $first_color
			),			
			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"				=> ""
			)
		)
	));
	vc_map( array(
		"name"				=> esc_html__( 'CWS Button', 'globeco' ),
		"base"				=> "cws_sc_button",
		'category'			=> "By CWS",
		"icon"     			=> "cws_icon",
		"weight"			=> 80,
		"params"			=> $params
	));

	if ( class_exists( 'WPBakeryShortCode' ) ) {
	    class WPBakeryShortCode_CWS_Sc_Button extends WPBakeryShortCode {
	    }
	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit