[[xFPCAjax? &resource=`190`]]
[[!getCookie]]
return 'cookie:'.$_COOKIE['STYLE'];
This question has been answered by b03tz. See the first response.
// cookie 0 = high contrast, cookie 1 = standard if(isset($_COOKIE['STYLE'])) { if ($_COOKIE['STYLE'] == 0) { $output = '<link href="assets/templates/styles/screenHigh.css" rel="stylesheet" type="text/css" />'; } else { $output = '<link href="assets/templates/styles/screen.css" rel="stylesheet" type="text/css" />'; } } else { $output = '<link href="assets/templates/styles/screen.css" rel="stylesheet" type="text/css" />'; } return $output;
Very good, thanks for the follow up!
[2015-06-10 06:10:32] (ERROR @ core/cache/includes/elements/modplugin/18.include.cache.php : 101) PHP warning: Cannot modify header information - headers already sent by (output started at core/model/modx/modresponse.class.php:189) [2015-06-10 06:10:39] (ERROR @ core/cache/includes/elements/modplugin/18.include.cache.php : 101) PHP warning: Cannot modify header information - headers already sent by (output started at core/model/modx/modresponse.class.php:189) [2015-06-10 06:10:39] (ERROR @ core/cache/includes/elements/modplugin/18.include.cache.php : 115) PHP warning: Cannot modify header information - headers already sent by (output started at core/model/modx/modresponse.class.php:189
101: header ('X-XFPC-Cache-Active: Yes'); 115: header ('X-XFPC-Cache: Miss');