Changeset 16239


Ignore:
Timestamp:
2007/10/03 10:11:17 (16 years ago)
Author:
adachi
Message:

テンプレート機能にてsite_main.tplが反映されるように変更

Location:
branches/beta/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/data/Smarty/templates/site_frame.tpl

    r14676 r16239  
    3131 
    3232<!-- ¢§ £Â£Ï£Ä£ÙÉô ¥¹¥¿¡¼¥È --> 
    33 <!--{include file='./site_main.tpl'}--> 
     33<!--{include file="$tpl_site_main"}--> 
    3434<!-- ¢¥ £Â£Ï£Ä£ÙÉô ¥¨¥ó¥É --> 
    3535 
  • branches/beta/data/class/SC_View.php

    r15825 r16239  
    9898            'URL_DIR' => URL_DIR, 
    9999            // FIXME tplName¤¬null¤Î¾ì¹ç¤Î½èÍý 
    100             'TPL_PKG_URL' => URL_DIR . USER_DIR . TPL_PKG_DIR . $this->tplName . '/' 
     100            'TPL_PKG_URL' => URL_DIR . USER_DIR . TPL_PKG_DIR . $this->tplName . '/', 
     101            'tpl_site_main' => 'site_main.tpl' 
    101102        ); 
    102103        $this->assignArray($arrDefaultParams); 
     
    296297            } 
    297298        } 
     299        $tpl_site_main = $template_dir . 'site_main.tpl'; 
     300        if (file_exists($tpl_site_main)) { 
     301            $this->assign('tpl_site_main', $tpl_site_main); 
     302        } 
    298303    } 
    299304} 
Note: See TracChangeset for help on using the changeset viewer.