Changeset 19725 for branches/version-2_5-dev/data/class/SC_View.php
- Timestamp:
- 2010/12/15 18:06:23 (16 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:19724
- bzr:committer:
- Kentaro Ohkouchi <[email protected]>
- bzr:file-ids:
data/Smarty/templates/admin/design/bloc.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fdesign%2Fbloc.tpl
data/Smarty/templates/admin/design/css.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fdesign%2Fcss.tpl
data/class/SC_View.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_View.php
data/class/helper/SC_Helper_PageLayout.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_PageLayout.php
data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php 15687@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_Bloc.php
data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php 15689@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_CSS.php
data/class/pages/admin/design/LC_Page_Admin_Design_Header.php 15688@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_Header.php
data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php 15682@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_MainEdit.php
data/class/pages/admin/design/LC_Page_Admin_Design_Template.php 16430@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_Template.php- bzr:mapping-version:
- v4
- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- [email protected]
- bzr:revno:
- 2454
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:timestamp:
- 2010-12-15 18:06:11.522000074 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2010-12-15T09:06:11.522000Z
- File:
-
- 1 edited
-
branches/version-2_5-dev/data/class/SC_View.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_View.php
r19720 r19725 173 173 } 174 174 175 /** 176 * テンプレートパスをアサインする. 177 * 178 * @param integer $device_type_id 端末種別ID 179 */ 180 function assignTemplatePath($device_type_id) { 181 182 // テンプレート変数を割り当て 183 $this->assign("TPL_DIR", SC_Helper_PageLayout_Ex::getUserDir($device_type_id, true)); 184 185 // ヘッダとフッタを割り当て 186 $templatePath = SC_Helper_PageLayout_Ex::getTemplatePath($device_type_id, true); 187 $header_tpl = $templatePath . "header.tpl"; 188 $footer_tpl = $templatePath . "footer.tpl"; 189 190 // ユーザー作成のテンプレートが無ければ, 指定テンプレートを割り当て 191 $templatePath = SC_Helper_PageLayout_Ex::getTemplatePath($device_type_id); 192 if (!$this->_smarty->template_exists($header_tpl)) { 193 $header_tpl = $templatePath . "header.tpl"; 194 } 195 if (!$this->_smarty->template_exists($footer_tpl)) { 196 $footer_tpl = $templatePath . "footer.tpl"; 197 } 198 199 $this->assign("header_tpl", $header_tpl); 200 $this->assign("footer_tpl", $footer_tpl); 201 } 202 175 203 // デバッグ 176 204 function debug($var = true){ … … 185 213 $this->_smarty->compile_dir = COMPILE_ADMIN_DIR; 186 214 $this->assign('TPL_DIR_DEFAULT', URL_DIR . USER_DIR . USER_PACKAGE_DIR . DEFAULT_TEMPLATE_NAME . '/'); 187 $this->assign('TPL_DIR', URL_DIR . USER_DIR . USER_PACKAGE_DIR . 'admin/');215 $this->assign('TPL_DIR', URL_DIR . USER_DIR . USER_PACKAGE_DIR . ADMIN_DIR); 188 216 $this->initpath(); 189 217 } … … 197 225 $this->_smarty->compile_dir = COMPILE_DIR; 198 226 199 // テンプレート変数を割り当て 200 $this->assign("TPL_DIR", URL_DIR . USER_DIR . USER_PACKAGE_DIR . TEMPLATE_NAME . "/"); 201 202 // ヘッダとフッタを割り当て 203 $header_tpl = USER_PATH . USER_PACKAGE_DIR . TEMPLATE_NAME . "/" . "header.tpl"; 204 $footer_tpl = USER_PATH . USER_PACKAGE_DIR . TEMPLATE_NAME . "/" . "footer.tpl"; 205 206 // ユーザー作成のテンプレートが無ければ, 指定テンプレートを割り当て 207 if (!$this->_smarty->template_exists($header_tpl)) { 208 $header_tpl = TEMPLATE_DIR . "header.tpl"; 209 } 210 if (!$this->_smarty->template_exists($footer_tpl)) { 211 $footer_tpl = TEMPLATE_DIR . "footer.tpl"; 212 } 213 214 $this->assign("header_tpl", $header_tpl); 215 $this->assign("footer_tpl", $footer_tpl); 216 227 $this->assignTemplatePath(DEVICE_TYPE_PC); 217 228 $this->initpath(); 218 229 … … 245 256 $this->_smarty->template_dir = MOBILE_TEMPLATE_DIR; 246 257 $this->_smarty->compile_dir = MOBILE_COMPILE_DIR; 247 // テンプレート変数を割り当て 248 $this->assign("TPL_DIR", URL_DIR . MOBILE_DIR . USER_DIR . USER_PACKAGE_DIR . MOBILE_TEMPLATE_NAME . "/"); 258 $this->assignTemplatePath(DEVICE_TYPE_MOBILE); 249 259 } 250 260 } … … 255 265 $this->_smarty->template_dir = SMARTPHONE_TEMPLATE_DIR; 256 266 $this->_smarty->compile_dir = SMARTPHONE_COMPILE_DIR; 257 // テンプレート変数を割り当て 258 $this->assign("TPL_DIR", URL_DIR . SMARTPHONE_DIR . USER_DIR . USER_PACKAGE_DIR . SMARTPHONE_TEMPLATE_NAME . "/"); 267 $this->assignTemplatePath(DEVICE_TYPE_SMARTPHONE); 259 268 } 260 269 }
Note: See TracChangeset
for help on using the changeset viewer.
