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/helper/SC_Helper_PageLayout.php

    r19737 r19768  
    5858            // TODO 
    5959            $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)  
    6161                . "preview/" . $arrPageData[0]['filename'] . ".tpl"; 
    6262        } 
     
    6464        $arrPageLayout = $arrPageData[0]; 
    6565 
    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"; 
    7967 
    8068        // ページタイトルを設定 
     
    151139                        $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path']; 
    152140                    } 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']; 
    159142                    } 
    160143                    // phpから呼び出されるか、tplファイルが存在する場合 
Note: See TracChangeset for help on using the changeset viewer.