Changeset 17193 for branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
- Timestamp:
- 2008/04/01 09:37:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r17136 r17193 115 115 $objView->_smarty->clear_compiled_tpl(); 116 116 117 // common.cssの内容を更新 118 $this->lfChangeCommonCss($template_code); 119 117 120 // ブロック位置を更新 118 121 $this->lfChangeBloc($template_code); … … 254 257 } 255 258 259 /** 260 * common.cssの更新 261 */ 262 function lfChangeCommonCss($template_code) { 263 $css_path = USER_PATH . "css/common.css"; 264 265 // ファイル内容取得 266 $css_data = file_get_contents($css_path); 267 268 // ファイル内容更新 269 $pt = '/(@import url\("\.\.\/packages\/.+\/css\/import\.css"\);)/'; 270 $rp = '@import url("../packages/'. $template_code. '/css/import.css");'; 271 $css = preg_replace($pt, $rp, $css_data); 272 273 // ファイル更新 274 $fp = fopen($css_path,"w"); 275 fwrite($fp, $css); 276 fclose($fp); 277 } 278 256 279 /** 257 280 * ブロック位置の更新
Note: See TracChangeset
for help on using the changeset viewer.