mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 02:39:56 +09:00
merge from branch luminous (version 1.5.4.2, ~r12561)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@12611 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2263200ce4
commit
cc47d2b247
196 changed files with 3655 additions and 2033 deletions
|
|
@ -18,7 +18,7 @@
|
|||
**/
|
||||
function procMessageAdminInsertConfig() {
|
||||
// Get information
|
||||
$args->skin = Context::get('skin');
|
||||
$args = Context::gets('skin', 'mskin');
|
||||
// Create a module Controller object
|
||||
$oModuleController = &getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('message',$args);
|
||||
|
|
|
|||
|
|
@ -19,17 +19,24 @@
|
|||
function dispMessageAdminConfig() {
|
||||
// Get a list of skins(themes)
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
$skin_list = $oModuleModel->getskins($this->module_path);
|
||||
Context::set('skin_list', $skin_list);
|
||||
|
||||
$mskin_list = $oModuleModel->getSkins($this->module_path, "m.skins");
|
||||
Context::set('mskin_list', $mskin_list);
|
||||
|
||||
// Get configurations (using module model object)
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
Context::set('config',$config);
|
||||
|
||||
// Set a template file
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
||||
|
||||
//Security
|
||||
$security = new Security();
|
||||
$security->encodeHTML('skin_list..title');
|
||||
$security->encodeHTML('skin_list..title', 'mskin_list..title');
|
||||
|
||||
$this->setTemplateFile('config');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@
|
|||
// Get configurations (using module model object)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
if(!$config->skin) $config->skin = 'default';
|
||||
if(!$config->mskin) $config->mskin = 'default';
|
||||
// Set the template path
|
||||
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->skin);
|
||||
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->mskin);
|
||||
// Get the member configuration
|
||||
$oModuleModel = &getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form action="./" method="post">
|
||||
<form action="./" method="post" class="form">
|
||||
<input type="hidden" name="module" value="message" />
|
||||
<input type="hidden" name="act" value="procMessageAdminInsertConfig" />
|
||||
<p>{$lang->about_skin}</p>
|
||||
|
|
@ -18,6 +18,16 @@
|
|||
</select>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="mskin">{$lang->mobile_skin}</label></p>
|
||||
<p class="a">
|
||||
<select name="mskin" id="mskin">
|
||||
<!--@foreach($mskin_list as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($key==$config->mskin)-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btnArea">
|
||||
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue