Changeset 11816


Ignore:
Timestamp:
2007/03/13 11:06:06 (17 years ago)
Author:
uehara
Message:
 
Location:
branches/dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_View.php

    r11546 r11816  
    142142 
    143143class SC_SiteView extends SC_View{ 
    144     function SC_SiteView($cart = true) { 
     144    function SC_SiteView($cart = true, $is_mobile = false) { 
    145145        parent::SC_View(); 
    146         $this->_smarty->template_dir = TEMPLATE_DIR; 
    147         $this->_smarty->compile_dir = COMPILE_DIR; 
     146         
     147        // ·ÈÂÓ¥µ¥¤¥È¤ÈPC¥µ¥¤¥È¤Ç¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤òÊѹ¹ 
     148        if($is_mobile == true) { 
     149            $this->_smarty->template_dir = MOBILE_TEMPLATE_DIR; 
     150            $this->_smarty->compile_dir = MOBILE_COMPILE_DIR; 
     151        } else { 
     152            $this->_smarty->template_dir = TEMPLATE_DIR; 
     153            $this->_smarty->compile_dir = COMPILE_DIR;           
     154        } 
    148155        $this->initpath(); 
    149156         
  • branches/dev/data/conf/mobile.conf

    r11815 r11816  
    2525define ('MOBILE_SSL_URL', SSL_URL); 
    2626*/ 
    27 define('TEMPLATE_DIR', DATA_PATH . 'Smarty/templates/mobile');  // SMARTY¥Æ¥ó¥×¥ì¡¼¥È 
    28 define('COMPILE_DIR', DATA_PATH . 'Smarty/templates_c/mobile'); // SMARTY¥³¥ó¥Ñ¥¤¥ë 
     27define('MOBILE_TEMPLATE_DIR', DATA_PATH . 'Smarty/templates/mobile');   // SMARTY¥Æ¥ó¥×¥ì¡¼¥È 
     28define('MOBILE_COMPILE_DIR', DATA_PATH . 'Smarty/templates_c/mobile');  // SMARTY¥³¥ó¥Ñ¥¤¥ë 
     29 
     30/* 
    2931define('IMAGE_TEMP_DIR', HTML_PATH . 'upload/temp_image/'); // ²èÁü°ì»þÊݸ 
    3032define('IMAGE_SAVE_DIR', HTML_PATH . 'upload/save_image/'); // ²èÁüÊݸÀè 
    3133define('IMAGE_TEMP_URL', URL_DIR . 'upload/temp_image/');   // ²èÁü°ì»þÊݸURL 
    3234define('IMAGE_SAVE_URL', URL_DIR . 'upload/save_image/');   // ²èÁüÊݸÀèURL 
     35*/ 
    3336//-------------------------------------------------------------------------------------------------------- 
    3437// ¥â¥Ð¥¤¥ë¥µ¥¤¥ÈÀìÍѤÎÀßÄê 
Note: See TracChangeset for help on using the changeset viewer.