Ignore:
Timestamp:
2010/12/25 20:58:13 (13 years ago)
Author:
Seasoft
Message:

#748(モバイル/スマートフォンのデザイン管理)

  • プレビュー周り(荒削りです)

#874(テンプレートは /data/ 配下のみ保存する)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php

    r19737 r19768  
    9797            // 登録時はプレビュー用テンプレートをコピーする 
    9898            if ($_POST['mode'] == 'confirm'){ 
    99                 copy($pre_DIR.$division.".tpl", $this->objLayout->getTemplatePath($device_type_id, true) . $division . ".tpl"); 
     99                copy($pre_DIR.$division.".tpl", $this->objLayout->getTemplatePath($device_type_id) . $division . ".tpl"); 
    100100                // 完了メッセージ(プレビュー時は表示しない) 
    101101                $this->tpl_onload="alert('登録が完了しました。');"; 
     
    122122            // ユーザーパスにテンプレートが存在しなければ, 
    123123            // 指定テンプレートから読み込む 
    124             $header_tpl = $this->objLayout->getTemplatePath($device_type_id, true) . "header.tpl"; 
    125             if (!is_file($header_tpl)) { 
    126                 $header_tpl = $this->objLayout->getTemplatePath($device_type_id) . "header.tpl"; 
    127             } 
    128             $footer_tpl = $this->objLayout->getTemplatePath($device_type_id, true) . "footer.tpl"; 
    129             if (!is_file($footer_tpl)) { 
    130                 $footer_tpl = $this->objLayout->getTemplatePath($device_type_id) . "footer.tpl"; 
    131             } 
     124            $header_tpl = $this->objLayout->getTemplatePath($device_type_id) . "header.tpl"; 
     125            $footer_tpl = $this->objLayout->getTemplatePath($device_type_id) . "footer.tpl"; 
    132126 
    133127            copy($header_tpl, $pre_DIR . "header.tpl"); 
Note: See TracChangeset for help on using the changeset viewer.