색상대비 css 로드 관련 코드 추가

This commit is contained in:
chicpro
2013-02-21 10:58:36 +09:00
parent 48bedb7969
commit 04e8863327
2 changed files with 34 additions and 1 deletions

View File

@ -108,6 +108,23 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
</a>
</li>
<? } ?>
<? // 색상대비 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 .= '&amp;'.$query_string;
}
unset($cr_path);
?>
<li>
<a href="<?=$cr_uri;?>">색상대비</a>
</li>
</ul>
</div>