HEX
Server: Apache
System: Linux web04.cloudvoor.nl 5.15.0-1089-azure #98~20.04.1-Ubuntu SMP Fri May 2 20:18:39 UTC 2025 x86_64
User: web517 (1027)
PHP: 8.3.21
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,expect_popen,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare
Upload Files
File: /var/www/clients/client93/web517/web/wp-content/themes/allx/include/color-scheme.php
<?php
// Do not allow direct access to the file.
if( ! defined( 'ABSPATH' ) ) {
    exit;
}	
add_action( 'customize_register', 'allx_color_scheme_customize' );
function allx_color_scheme_customize( $wp_customize ) {

		$wp_customize->add_section( 'seos_color_scheme' , array(
			'title'       => __( 'Color Scheme', 'allx' ),
			'priority'    => 25,
		) );
   	    $wp_customize->add_setting( 'color_scheme', array (
			'sanitize_callback' => 'sanitize_hex_color',
		) );
 		$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_scheme', array(
			'label'    => __( 'Color Scheme', 'allx' ),
			'priority' => 14,
			'section'  => 'seos_color_scheme',
			'settings' => 'color_scheme',
		) ) );
		
   	    $wp_customize->add_setting( 'color_scheme_hover', array (
			'sanitize_callback' => 'sanitize_hex_color',
		) );
 		$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_scheme_hover', array(
			'label'    => __( 'Hover Color', 'allx' ),
			'priority' => 14,
			'section'  => 'seos_color_scheme',
			'settings' => 'color_scheme_hover',
		) ) );		
}

add_action( 'wp_enqueue_scripts', 'allx_color_scheme' );	
function allx_color_scheme() {
        $seos_color_scheme = esc_html(get_theme_mod( 'color_scheme' ) );
        $color_scheme_hover = esc_html(get_theme_mod( 'color_scheme_hover' ) );

		if( $seos_color_scheme ) {
		$color_scheme = 
		"
		body .lt-container::after {
		     border: 4px solid {$seos_color_scheme};
		}
		.testimonials-cont .t-slide img {
		    border-bottom: 5px solid {$seos_color_scheme} !important;		
		}	
		.testimonials-cont .t-name{
		    border-bottom: 2px solid {$seos_color_scheme} !important;		
		}
		body .dark-mode-button-inner-left:after {
		    border: 2px solid {$seos_color_scheme} !important;		
		}
		
		body .lt-border, body .lt-border  {
		    border-top: 4px solid {$seos_color_scheme} !important;
		}
		body .dark-mode-button .dark-mode-button-inner-left:before {
		background: {$seos_color_scheme};
		}
		
		body .lt-timeline::after, .testimonials-cont .dashicons-format-quote {
		    background-color: {$seos_color_scheme} !important;
		}
		
		body .container-slider .seos-border1 {border-top: 4px solid {$seos_color_scheme};}
		body .container-slider .seos-border {border-top: 2px solid {$seos_color_scheme};}
		body .us-but, body .woo-loginout, .pagination a, .pagination span, .myButt, .wp-block-search .wp-block-search__button, .h-button-1, .h-button-2, button, input[type='button'], input[type='reset'], input[type='submit'] {background: {$seos_color_scheme};}";
		"a {color: {$seos_color_scheme};}";
		
		} else {
		    $color_scheme ="";
		}

		if( $color_scheme_hover ) {
		$scheme_hover = 
		".dark-mode .container-slider .autoplay1 .sca-slide h3 a:hover, body .container-slider .autoplay1 h3 a:hover, body #main-left .open-arrow:hover .fa-sort-down, body #main-left .fa-sort-down:hover, body .s-search-top-mobile .dashicons-search:hover, body .s-search-top .dashicons-search:hover, .site-info a:hover, body .container-slider .autoplay1 h3 a:hover, #secondary ul li a:hover, body h2 a:hover, body a:hover {color: {$color_scheme_hover};}".
		"body .us-but:hover, body .woo-loginout:hover, .h-button-1:hover, .h-button-2:hover, .wp-block-search .wp-block-search__button:hover, button:hover, input[type='button']:hover, input[type='reset']:hover, input[type='submit']:hover, .myButt:before{background: {$color_scheme_hover};}";
		} else {
		    $scheme_hover ="";
		}

        wp_add_inline_style( 'custom-style-css', 
		$color_scheme.$scheme_hover
		);
}