Changeset 11819
- Timestamp:
- 2007/03/13 11:14:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_View.php
r11816 r11819 142 142 143 143 class SC_SiteView extends SC_View{ 144 function SC_SiteView($cart = true , $is_mobile = false) {144 function SC_SiteView($cart = true) { 145 145 parent::SC_View(); 146 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 } 147 $this->_smarty->template_dir = TEMPLATE_DIR; 148 $this->_smarty->compile_dir = COMPILE_DIR; 155 149 $this->initpath(); 156 150 … … 183 177 } 184 178 179 class SC_MobileView extends SC_SiteView { 180 function SC_MobileView() { 181 parent::SC_SiteView(); 182 $this->_smarty->template_dir = MOBILE_TEMPLATE_DIR; 183 $this->_smarty->compile_dir = MOBILE_COMPILE_DIR; 184 } 185 } 185 186 ?>
Note: See TracChangeset
for help on using the changeset viewer.