403Webshell
Server IP : 192.64.118.117  /  Your IP : 3.16.30.154
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/mobilecreationz.com/wp-content/themes/TESSERACT/inc/sections/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/mobilecreationz.com/wp-content/themes/TESSERACT/inc/sections/header-colors.php
<?php
/*
 * section HEADER COLORS
 */

   	$wp_customize->add_section( 'tesseract_header_colors' , array(
    	'title'      => __('Header Colors', 'tesseract'),
    	'priority'   => 1,
		'panel'      => 'tesseract_header_options'
	) );

		//Register setting with the custom ALPHA enabled colorpicker
		// See full blog post here
		// http://pluto.kiwi.nz/2014/07/how-to-add-a-color-control-with-alphaopacity-to-the-wordpress-theme-customizer/

		$wp_customize->add_setting( 'tesseract_header_colors_bck_color', array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'tesseract_sanitize_rgba',
				'default' 			=> '#59bcd9'
		) );

			$wp_customize->add_control(
				new WP_Customize_Color_Control(
				$wp_customize,
				'tesseract_header_colors_bck_color_control',
				array(
					'label'      => __( 'Header Background Color', 'tesseract' ),
					'section'    => 'tesseract_header_colors',
					'settings'   => 'tesseract_header_colors_bck_color',
					'priority'   => 1
				) )
			);

		$wp_customize->add_setting( 'tesseract_header_colors_bck_color_opacity', array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'esc_html',
				'default' 			=> 100
		) );

			$wp_customize->add_control( 'tesseract_header_colors_bck_color_opacity_control', array(
				'type'        => 'range',
				'priority'    => 2,
				'section'     => 'tesseract_header_colors',
				'settings'     => 'tesseract_header_colors_bck_color_opacity',
				'label'       => 'Homepage Header Opacity',
				'description' => 'Use this range slider to set background opacity',
				'input_attrs' => array(
					'min'   => 0,
					'max'   => 100,
					'step'  => 5,
					'class' => 'tesseract-tho-header-colors-bck-opacity',
					'style' => 'color: #0a0',
				),
				'active_callback' => 'tesseract_show_header_opacity_control'
			) );

		$wp_customize->add_setting( 'tesseract_header_colors_text_color', array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'sanitize_hex_color',
				'default' 			=> '#ffffff'
		) );

			$wp_customize->add_control(
				new WP_Customize_Color_Control(
				$wp_customize,
				'tesseract_header_colors_text_color_control',
				array(
					'label'      => __( 'Header Text Color', 'tesseract' ),
					'section'    => 'tesseract_header_colors',
					'settings'   => 'tesseract_header_colors_text_color',
					'priority'   => 2
				) )
			);

		$wp_customize->add_setting( 'tesseract_header_colors_link_color', array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'sanitize_hex_color',
				'default' 			=> '#ffffff'
		) );

			$wp_customize->add_control(
				new WP_Customize_Color_Control(
				$wp_customize,
				'tesseract_header_colors_link_color_control',
				array(
					'label'      => __( 'Header Link Color', 'tesseract' ),
					'section'    => 'tesseract_header_colors',
					'settings'   => 'tesseract_header_colors_link_color',
					'priority' 	 => 3
				) )
			);

		$wp_customize->add_setting( 'tesseract_header_colors_link_hover_color', array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'sanitize_hex_color',
				'default' 			=> '#d1ecff'
		) );

			$wp_customize->add_control(
				new WP_Customize_Color_Control(
				$wp_customize,
				'tesseract_header_colors_link_hover_color_control',
				array(
					'label'      => __( 'Header Hovered Link Color', 'tesseract' ),
					'section'    => 'tesseract_header_colors',
					'settings'   => 'tesseract_header_colors_link_hover_color',
					'priority'   => 4
				) )
			);

Youez - 2016 - github.com/yon3zu
LinuXploit