Changeset 16268


Ignore:
Timestamp:
2007/10/05 19:51:02 (16 years ago)
Author:
nanasess
Message:

デザイン管理のメイン編集を修正

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  
    4444        // メインテンプレートファイルを設定 
    4545        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            } 
    4858        } 
    4959 
  • branches/feature-module-update/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php

    r15686 r16268  
    8686            if (file_exists($tpl_file)){ 
    8787                $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"); 
    8892            } 
    8993 
Note: See TracChangeset for help on using the changeset viewer.