

rb/rb.css/set.color.php
<?php
include_once('../../common.php');
header("Content-Type: text/css");
$rb_color_set = isset($_GET['rb_color_set']) ? htmlspecialchars($_GET['rb_color_set']) : htmlspecialchars($rb_core['color']);
$rb_color_code = isset($_GET['rb_color_code']) ? htmlspecialchars($_GET['rb_color_code']) : htmlspecialchars($rb_config['co_color']);
$rb_main_width = $rb_core['main_width'];
$rb_sub_width = $rb_core['sub_width'];
$rb_tb_width = $rb_core['tb_width'];
?>
:root {
--rb-accent: <?php echo $rb_color_code;?>;
--rb-header-color: <?php echo $rb_config['co_header'];?>;
--rb-main-width: <?php echo $rb_main_width;?>px;
--rb-sub-width: <?php echo $rb_sub_width;?>px;
--rb-tb-width: <?php echo $rb_tb_width;?>px;
}
?>
이런식으로 추가하게 되면 리빌더 테마 환경에서 전역변수를 불러와 사용할 수 있습니다.
스킨이나 기능 개발시 번거로운 작업이 덜할것으로 예상됩니다.
2025-09-25 14:55