mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 01:03:28 +09:00
Convert all instances of _XE_PATH_, __XE_VERSION__, etc. to Rhymix constants
_XE_PATH_ -> RX_BASEDIR __XE_VERSION__ -> RX_VERSION
This commit is contained in:
parent
4fdb51d689
commit
b0f66a36c5
43 changed files with 104 additions and 105 deletions
|
|
@ -181,7 +181,7 @@ class layoutAdminModel extends layout
|
|||
public function getSiteDefaultLayout($viewType = 'P', $siteSrl = 0)
|
||||
{
|
||||
$target = ($viewType == 'M') ? 'mlayout_srl' : 'layout_srl';
|
||||
$designInfoFile = sprintf(_XE_PATH_ . 'files/site_design/design_%s.php', $siteSrl);
|
||||
$designInfoFile = sprintf(RX_BASEDIR . 'files/site_design/design_%s.php', $siteSrl);
|
||||
if(FileHandler::exists($designInfoFile)) include($designInfoFile);
|
||||
|
||||
if(!$designInfo || !$designInfo->{$target})
|
||||
|
|
|
|||
|
|
@ -239,13 +239,13 @@ class layoutModel extends layout
|
|||
//TODO If remove a support themes, remove this codes also.
|
||||
if($layoutType == 'P')
|
||||
{
|
||||
$pathPrefix = _XE_PATH_ . 'layouts/';
|
||||
$themePathFormat = _XE_PATH_ . 'themes/%s/layouts/%s';
|
||||
$pathPrefix = RX_BASEDIR . 'layouts/';
|
||||
$themePathFormat = RX_BASEDIR . 'themes/%s/layouts/%s';
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathPrefix = _XE_PATH_ . 'm.layouts/';
|
||||
$themePathFormat = _XE_PATH_ . 'themes/%s/m.layouts/%s';
|
||||
$pathPrefix = RX_BASEDIR . 'm.layouts/';
|
||||
$themePathFormat = RX_BASEDIR . 'themes/%s/m.layouts/%s';
|
||||
}
|
||||
|
||||
if(strpos($layout, '|@|') !== FALSE)
|
||||
|
|
@ -932,11 +932,11 @@ class layoutModel extends layout
|
|||
{
|
||||
if($layout_type=='P')
|
||||
{
|
||||
return sprintf("%sfiles/cache/layout/%s.%s.cache.php", _XE_PATH_, $layout_name,$lang_type);
|
||||
return sprintf("%sfiles/cache/layout/%s.%s.cache.php", RX_BASEDIR, $layout_name,$lang_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
return sprintf("%sfiles/cache/layout/m.%s.%s.cache.php", _XE_PATH_, $layout_name,$lang_type);
|
||||
return sprintf("%sfiles/cache/layout/m.%s.%s.cache.php", RX_BASEDIR, $layout_name,$lang_type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,12 +87,12 @@ class layoutView extends layout
|
|||
|
||||
if ($skinType == 'M')
|
||||
{
|
||||
$templatePath = _XE_PATH_ . 'modules/page/m.skins/' . $skin;
|
||||
$templatePath = RX_BASEDIR . 'modules/page/m.skins/' . $skin;
|
||||
$templateFile = 'mobile';
|
||||
}
|
||||
else
|
||||
{
|
||||
$templatePath = _XE_PATH_ . 'modules/page/skins/' . $skin;
|
||||
$templatePath = RX_BASEDIR . 'modules/page/skins/' . $skin;
|
||||
$templateFile = 'content';
|
||||
}
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ class layoutView extends layout
|
|||
if($layoutSrl == -1)
|
||||
{
|
||||
$site_srl = ($oModule) ? $oModule->module_info->site_srl : 0;
|
||||
$designInfoFile = sprintf(_XE_PATH_ . 'files/site_design/design_%d.php', $site_srl);
|
||||
$designInfoFile = sprintf(RX_BASEDIR . 'files/site_design/design_%d.php', $site_srl);
|
||||
include($designInfoFile);
|
||||
|
||||
if($skinType == 'M')
|
||||
|
|
@ -305,7 +305,7 @@ class layoutView extends layout
|
|||
}
|
||||
|
||||
// get module html
|
||||
require_once(_XE_PATH_ . "classes/display/HTMLDisplayHandler.php");
|
||||
require_once(RX_BASEDIR . "classes/display/HTMLDisplayHandler.php");
|
||||
$handler = new HTMLDisplayHandler();
|
||||
return $handler->toDoc($oModule);
|
||||
}
|
||||
|
|
@ -362,7 +362,7 @@ class layoutView extends layout
|
|||
Context::set('layout_info', $layout_info);
|
||||
Context::set('content', lang('layout_preview_content'));
|
||||
// Temporary save the codes
|
||||
$edited_layout_file = _XE_PATH_ . 'files/cache/layout/tmp.tpl';
|
||||
$edited_layout_file = RX_BASEDIR . 'files/cache/layout/tmp.tpl';
|
||||
FileHandler::writeFile($edited_layout_file, $code);
|
||||
|
||||
// Compile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue