style.php ファイルにグローバル変数を含めるにはどうすればよいですか? 基本的には php スタイルシートです。
これはメインファイルです:
<?php
function (){
$gbvariable = get_option();
?>
<input type="text" size="20" name="backgroundcolor" value="<?php $gbvariable; ?>"/>
<?php
}
?>
これは style.php ファイルです。
<?php header('Content-Type: text/css');?>
#div{
background: <?php $gbvariable; ?>;
}