function execute($requests) { $this->set('theme_list', $this->_search_skin_dir()); $this->set('skin_list', db_get_c_skin_filename_list()); $c_config_decoration_list = db_admin_c_config_decoration_list(); foreach ($c_config_decoration_list as $key => $value) { $c_config_decoration_list[$key]['tagname'] = strtr($value['tagname'], ':', '_'); } $this->set('c_config_decoration_list', $c_config_decoration_list); return 'success'; }
/** * @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; }
/** * スキン画像全削除(デフォルトに戻す) */ function db_delete_all_c_skin_filename($theme = 'default') { $list = db_get_c_skin_filename_list(); foreach ($list as $filename) { db_image_data_delete($filename); } $sql = 'DELETE FROM c_skin_filename'; db_query($sql); db_insert_c_image4skin_filename('no_image', $theme); db_insert_c_image4skin_filename('no_logo', $theme); db_insert_c_image4skin_filename('no_logo_small', $theme); }