Changeset 16268
- Timestamp:
- 2007/10/05 19:51:02 (16 years ago)
- Location:
- branches/feature-module-update/data/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/helper/SC_Helper_PageLayout.php
r15823 r16268 44 44 // メインテンプレートファイルを設定 45 45 if (!isset($objPage->tpl_mainpage)) { 46 // $objPage->tpl_mainpage = HTML_PATH . $arrPageData[0]['tpl_dir'] . $arrPageData[0]['filename'] . ".tpl"; 47 $objPage->tpl_mainpage = TEMPLATE_DIR . $arrPageData[0]['filename'] . ".tpl"; 46 47 // カスタムテンプレートのパスを取得 48 $user_tpl = HTML_PATH . $arrPageData[0]['tpl_dir'] . $arrPageData[0]['filename'] . ".tpl"; 49 50 // カスタムテンプレートの存在チェック 51 if (is_file($user_tpl)) { 52 $objPage->tpl_mainpage = $user_tpl; 53 54 // 存在しない場合は指定テンプレートを使用 55 } else { 56 $objPage->tpl_mainpage = TEMPLATE_DIR . $arrPageData[0]['filename'] . ".tpl"; 57 } 48 58 } 49 59 -
branches/feature-module-update/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
r15686 r16268 86 86 if (file_exists($tpl_file)){ 87 87 $arrPageData[0]['tpl_data'] = file_get_contents($tpl_file); 88 89 // 存在してなければ, 指定されたテンプレートのファイルを読み込む 90 } else { 91 $arrPageData[0]['tpl_data'] = file_get_contents(TEMPLATE_DIR . $arrPageData[0]['filename'] . ".tpl"); 88 92 } 89 93
Note: See TracChangeset
for help on using the changeset viewer.