- Timestamp:
- 2010/12/25 20:58:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_PageLayout.php
r19737 r19768 58 58 // TODO 59 59 $arrPageData = $this->lfGetPageData("device_type_id = ? AND page_id = 0", array($device_type_id)); 60 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id , true)60 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) 61 61 . "preview/" . $arrPageData[0]['filename'] . ".tpl"; 62 62 } … … 64 64 $arrPageLayout = $arrPageData[0]; 65 65 66 // ユーザテンプレートのパスを取得 67 $user_tpl = $this->getTemplatePath($device_type_id, true) 68 . $arrPageLayout['filename'] . ".tpl"; 69 70 // ユーザテンプレートの存在チェック 71 if (is_file($user_tpl)) { 72 $objPage->tpl_mainpage = $user_tpl; 73 } 74 // 存在しない場合は指定テンプレートを使用 75 else { 76 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) 77 . $arrPageLayout['filename'] . ".tpl"; 78 } 66 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) . $arrPageLayout['filename'] . ".tpl"; 79 67 80 68 // ページタイトルを設定 … … 151 139 $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path']; 152 140 } else { 153 $user_block_path = $this->getTemplatePath($device_type_id, true) . "/" . $val['tpl_path']; 154 if (is_file($user_block_path)) { 155 $arrNavi[$key]['tpl_path'] = $user_block_path; 156 } else { 157 $arrNavi[$key]['tpl_path'] = $this->getTemplatePath($device_type_id) . $val['tpl_path']; 158 } 141 $arrNavi[$key]['tpl_path'] = $this->getTemplatePath($device_type_id) . $val['tpl_path']; 159 142 } 160 143 // phpから呼び出されるか、tplファイルが存在する場合
Note: See TracChangeset
for help on using the changeset viewer.