Changeset 16671


Ignore:
Timestamp:
2007/11/04 03:20:51 (16 years ago)
Author:
naka
Message:

レイアウトデバッグメッセージ追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_PageLayout.php

    r16582 r16671  
    4545     */ 
    4646    function sfGetPageLayout(&$objPage, $preview = false, $url = ""){ 
    47         $arrPageLayout = array(); 
     47        $debug_message = ""; 
     48        $arrPageLayout = array(); 
    4849 
    4950        // 現在のURLの取得 
     
    5960                . TEMPLATE_NAME . "/" . $arrPageData[0]['filename'] . ".tpl"; 
    6061        } 
    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            // ユーザテンプレートのパスを取得 
    6672            $user_tpl =  HTML_PATH . $arrPageData[0]['tpl_dir'] . $arrPageData[0]['filename'] . ".tpl"; 
    67  
    68             // カスタムテンプレートの存在チェック 
     73            // ユーザテンプレートの存在チェック 
    6974            if (is_file($user_tpl)) { 
    7075                $objPage->tpl_mainpage = $user_tpl; 
    71  
     76                $debug_message.= "tpl_mainpage:ユーザーテンプレート\n"; 
    7277            // 存在しない場合は指定テンプレートを使用 
    7378            } else { 
    7479                $objPage->tpl_mainpage = TEMPLATE_DIR . $arrPageData[0]['filename'] . ".tpl"; 
     80                $debug_message.= "tpl_mainpage:標準テンプレート\n"; 
    7581            } 
    76         } 
     82        } else { 
     83            $debug_message.= "tpl_mainpage:設定あり" . "\n"; 
     84        } 
     85         
     86        $debug_message.= "tpl_mainpage:" . $objPage->tpl_mainpage . "\n"; 
    7787 
    7888        // ページタイトルを設定 
     
    90100        $arrPageLayout['RightNavi'] = $this->lfGetNavi($arrNavi,3); // RIGHT NAVI 
    91101        $arrPageLayout['MainFoot']  = $this->lfGetNavi($arrNavi,4); // メイン下部 
    92  
     102         
     103        GC_Utils::gfDebugLog($arrPageLayout); 
     104                 
    93105        $objPage->arrPageLayout = $arrPageLayout; 
     106         
     107        GC_Utils::gfDebugLog($debug_message); 
    94108    } 
    95109 
Note: See TracChangeset for help on using the changeset viewer.