색상대비 on/off 텍스트 추가
This commit is contained in:
4
head.php
4
head.php
@ -112,8 +112,10 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
|||||||
$cr_path = g4_path();
|
$cr_path = g4_path();
|
||||||
if($contrast_use == 'on') {
|
if($contrast_use == 'on') {
|
||||||
$cr_uri = $cr_path['curr_url'].'?contrast=off';
|
$cr_uri = $cr_path['curr_url'].'?contrast=off';
|
||||||
|
$cr = "ON";
|
||||||
} else {
|
} else {
|
||||||
$cr_uri = $cr_path['curr_url'].'?contrast=on';
|
$cr_uri = $cr_path['curr_url'].'?contrast=on';
|
||||||
|
$cr = "OFF";
|
||||||
}
|
}
|
||||||
if($_SERVER['QUERY_STRING']) {
|
if($_SERVER['QUERY_STRING']) {
|
||||||
$query_string = preg_replace("/contrast=(on|off)&?/", "", $_SERVER['QUERY_STRING']);
|
$query_string = preg_replace("/contrast=(on|off)&?/", "", $_SERVER['QUERY_STRING']);
|
||||||
@ -123,7 +125,7 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
|||||||
unset($cr_path);
|
unset($cr_path);
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=$cr_uri;?>">색상대비</a>
|
<a href="<?=$cr_uri;?>">색상대비<?=$cr?></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user