Changeset 11816
- Timestamp:
- 2007/03/13 11:06:06 (17 years ago)
- Location:
- branches/dev/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_View.php
r11546 r11816 142 142 143 143 class SC_SiteView extends SC_View{ 144 function SC_SiteView($cart = true ) {144 function SC_SiteView($cart = true, $is_mobile = false) { 145 145 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 } 148 155 $this->initpath(); 149 156 -
branches/dev/data/conf/mobile.conf
r11815 r11816 25 25 define ('MOBILE_SSL_URL', SSL_URL); 26 26 */ 27 define('TEMPLATE_DIR', DATA_PATH . 'Smarty/templates/mobile'); // SMARTY¥Æ¥ó¥×¥ì¡¼¥È 28 define('COMPILE_DIR', DATA_PATH . 'Smarty/templates_c/mobile'); // SMARTY¥³¥ó¥Ñ¥¤¥ë 27 define('MOBILE_TEMPLATE_DIR', DATA_PATH . 'Smarty/templates/mobile'); // SMARTY¥Æ¥ó¥×¥ì¡¼¥È 28 define('MOBILE_COMPILE_DIR', DATA_PATH . 'Smarty/templates_c/mobile'); // SMARTY¥³¥ó¥Ñ¥¤¥ë 29 30 /* 29 31 define('IMAGE_TEMP_DIR', HTML_PATH . 'upload/temp_image/'); // ²èÁü°ì»þÊݸ 30 32 define('IMAGE_SAVE_DIR', HTML_PATH . 'upload/save_image/'); // ²èÁüÊݸÀè 31 33 define('IMAGE_TEMP_URL', URL_DIR . 'upload/temp_image/'); // ²èÁü°ì»þÊݸURL 32 34 define('IMAGE_SAVE_URL', URL_DIR . 'upload/save_image/'); // ²èÁüÊݸÀèURL 35 */ 33 36 //-------------------------------------------------------------------------------------------------------- 34 37 // ¥â¥Ð¥¤¥ë¥µ¥¤¥ÈÀìÍѤÎÀßÄê
Note: See TracChangeset
for help on using the changeset viewer.