/** * @copyright 2005-2008 OpenPNE Project * @license http://www.php.net/license/3_01.txt PHP License 3.01 */ function smarty_function_t_url_style($params, &$smarty) { $custom_css = p_common_c_siteadmin4target_pagename('inc_custom_css'); $decoration_config = db_decoration_enable_list(); $colors = util_get_color_config(); $skin_filename_list = db_get_c_skin_filename_list(); $hash = md5(OPENPNE_VERSION . OPENPNE_ENABLE_ROLLOVER . OPENPNE_SKIN_THEME . $custom_css . serialize($decoration_config) . serialize($colors) . serialize($skin_filename_list)); $result = <<<EOD <!--[if lte IE 6]> <script type="text/javascript"> //<![CDATA[ var offspringConfiguration = { runningMode: "light", targetElement: ["tr", "th", "td"] }; //]]> </script> <script type="text/javascript" src="./js/offspring.js?r7689"></script> <![endif]--> <link rel="stylesheet" href="./xhtml_style.php?hash={$hash}" type="text/css" /> EOD; return $result; }
<?php /** * @copyright 2005-2008 OpenPNE Project * @license http://www.php.net/license/3_01.txt PHP License 3.01 */ require_once './config.inc.php'; require_once OPENPNE_WEBAPP_DIR . '/init.inc'; require_once 'smarty_plugins/function.t_img_url_skin.php'; $custom_css = p_common_c_siteadmin4target_pagename('inc_custom_css'); $decoration_config = db_decoration_enable_list(); $old_colors = util_get_color_config(); $colors = array(1 => $old_colors['bg_01'], 2 => $old_colors['bg_12'], 3 => $old_colors['bg_13'], 4 => $old_colors['bg_00'], 5 => $old_colors['bg_06'], 6 => $old_colors['bg_09'], 7 => $old_colors['bg_02'], 8 => $old_colors['bg_10']); function getSkin($name) { $params['filename'] = $name; return smarty_function_t_img_url_skin($params, $dummy); } header('Content-Type: text/css'); header('Cache-Control: max-age=315360000'); header('Expires: ' . gmdate('D, d M Y H:i:s', strtotime('+10 years')) . ' GMT'); ?> @charset "UTF-8"; /*============================================================================== * デフォルトスタイルシートの上書き *----------------------------------------------------------------------------*/ body, div, p, pre, blockquote, th, td, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, iframe, object, embed {