Changeset 20303 for branches/version-2_5-dev/data/class/SC_View.php
- Timestamp:
- 2011/02/21 18:58:45 (15 years ago)
- File:
-
- 1 edited
-
branches/version-2_5-dev/data/class/SC_View.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_View.php
r20069 r20303 195 195 } 196 196 197 class SC_AdminView extends SC_View{198 function SC_AdminView() {199 parent::SC_View(false);200 $this->_smarty->template_dir = TEMPLATE_ADMIN_REALDIR;201 $this->_smarty->compile_dir = COMPILE_ADMIN_REALDIR;202 $this->assign('TPL_URLPATH_DEFAULT', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . DEFAULT_TEMPLATE_NAME . '/');203 $this->assign('TPL_URLPATH', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . "admin/");204 $this->initpath();205 }206 }207 208 class SC_SiteView extends SC_View{209 function SC_SiteView($setPrevURL = true) {210 parent::SC_View();211 212 $this->_smarty->template_dir = TEMPLATE_REALDIR;213 $this->_smarty->compile_dir = COMPILE_REALDIR;214 215 $this->assignTemplatePath(DEVICE_TYPE_PC);216 $this->initpath();217 218 if ($setPrevURL) {219 $objCartSess = new SC_CartSession();220 $objCartSess->setPrevURL($_SERVER['REQUEST_URI']);221 }222 }223 }224 225 class SC_UserView extends SC_SiteView{226 function SC_UserView($template_dir, $compile_dir = COMPILE_REALDIR) {227 parent::SC_SiteView();228 $this->_smarty->template_dir = $template_dir;229 $this->_smarty->compile_dir = $compile_dir;230 }231 }232 233 class SC_InstallView extends SC_View{234 function SC_InstallView($template_dir, $compile_dir = COMPILE_REALDIR) {235 parent::SC_View(false);236 $this->_smarty->template_dir = $template_dir;237 $this->_smarty->compile_dir = $compile_dir;238 }239 }240 241 class SC_MobileView extends SC_SiteView {242 function SC_MobileView($setPrevURL = true) {243 parent::SC_SiteView($setPrevURL);244 $this->_smarty->template_dir = MOBILE_TEMPLATE_REALDIR;245 $this->_smarty->compile_dir = MOBILE_COMPILE_REALDIR;246 $this->assignTemplatePath(DEVICE_TYPE_MOBILE);247 }248 }249 250 class SC_SmartphoneView extends SC_SiteView {251 function SC_SmartphoneView($setPrevURL = true) {252 parent::SC_SiteView($setPrevURL);253 $this->_smarty->template_dir = SMARTPHONE_TEMPLATE_REALDIR;254 $this->_smarty->compile_dir = SMARTPHONE_COMPILE_REALDIR;255 $this->assignTemplatePath(DEVICE_TYPE_SMARTPHONE);256 }257 }258 197 ?>
Note: See TracChangeset
for help on using the changeset viewer.
