Changeset 16671
- Timestamp:
- 2007/11/04 03:20:51 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/helper/SC_Helper_PageLayout.php
r16582 r16671 45 45 */ 46 46 function sfGetPageLayout(&$objPage, $preview = false, $url = ""){ 47 $arrPageLayout = array(); 47 $debug_message = ""; 48 $arrPageLayout = array(); 48 49 49 50 // 現在のURLの取得 … … 59 60 . TEMPLATE_NAME . "/" . $arrPageData[0]['filename'] . ".tpl"; 60 61 } 61 62 // メインテンプレートファイルを設定 63 if (!isset($objPage->tpl_mainpage)) { 64 65 // カスタムテンプレートのパスを取得 62 63 foreach($arrPageData[0] as $key => $val) { 64 $debug_message.= "arrPageData[$key]:" . $val . "\n"; 65 } 66 67 $debug_message.= "TEMPLATE_NAME:".TEMPLATE_NAME . "\n"; 68 69 // tpl_mainpageの設定なし、又はトップページの場合 70 if (!isset($objPage->tpl_mainpage) || $url == "index.php") { 71 // ユーザテンプレートのパスを取得 66 72 $user_tpl = HTML_PATH . $arrPageData[0]['tpl_dir'] . $arrPageData[0]['filename'] . ".tpl"; 67 68 // カスタムテンプレートの存在チェック 73 // ユーザテンプレートの存在チェック 69 74 if (is_file($user_tpl)) { 70 75 $objPage->tpl_mainpage = $user_tpl; 71 76 $debug_message.= "tpl_mainpage:ユーザーテンプレート\n"; 72 77 // 存在しない場合は指定テンプレートを使用 73 78 } else { 74 79 $objPage->tpl_mainpage = TEMPLATE_DIR . $arrPageData[0]['filename'] . ".tpl"; 80 $debug_message.= "tpl_mainpage:標準テンプレート\n"; 75 81 } 76 } 82 } else { 83 $debug_message.= "tpl_mainpage:設定あり" . "\n"; 84 } 85 86 $debug_message.= "tpl_mainpage:" . $objPage->tpl_mainpage . "\n"; 77 87 78 88 // ページタイトルを設定 … … 90 100 $arrPageLayout['RightNavi'] = $this->lfGetNavi($arrNavi,3); // RIGHT NAVI 91 101 $arrPageLayout['MainFoot'] = $this->lfGetNavi($arrNavi,4); // メイン下部 92 102 103 GC_Utils::gfDebugLog($arrPageLayout); 104 93 105 $objPage->arrPageLayout = $arrPageLayout; 106 107 GC_Utils::gfDebugLog($debug_message); 94 108 } 95 109
Note: See TracChangeset
for help on using the changeset viewer.