diff --git a/head.php b/head.php
index 3dbbb74d0..3a2cb37b0 100644
--- a/head.php
+++ b/head.php
@@ -108,6 +108,23 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
} ?>
+ // 색상대비 on/off
+ $cr_path = g4_path();
+ if($contrast_use == 'on') {
+ $cr_uri = $cr_path['curr_url'].'?contrast=off';
+ } else {
+ $cr_uri = $cr_path['curr_url'].'?contrast=on';
+ }
+ if($_SERVER['QUERY_STRING']) {
+ $query_string = preg_replace("/contrast=(on|off)&?/", "", $_SERVER['QUERY_STRING']);
+ if($query_string)
+ $cr_uri .= '&'.$query_string;
+ }
+ unset($cr_path);
+ ?>
+
+ 색상대비
+
diff --git a/head.sub.php b/head.sub.php
index 0af5df384..9e941949a 100644
--- a/head.sub.php
+++ b/head.sub.php
@@ -28,6 +28,14 @@ header("Expires: 0"); // rfc2616 - Section 14.21
header("Pragma: no-cache"); // HTTP/1.0
*/
+// 색상대비
+if($_GET['contrast'] == 'on') {
+ set_session('ss_contrast_use', 'on');
+} else if($_GET['contrast'] == 'off') {
+ set_session('ss_contrast_use', 'off');
+}
+$contrast_use = get_session('ss_contrast_use');
+
$g4_css = "";
if (G4_IS_MOBILE) $g4_css = "mobile";
else $g4_css = "default";
@@ -40,9 +48,15 @@ else $g4_css = "default";
=$g4_head_title?>
if (isset($administrator)) { ?>
-">
+">
+ if($contrast_use == 'on') { ?>
+">
+ } ?>
} else { ?>
">
+ if($contrast_use == 'on') { ?>
+">
+ } ?>
}?>