apply cdn

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9200 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-19 10:00:48 +00:00
parent ca245b93fd
commit 604833cae8
93 changed files with 265 additions and 262 deletions

View file

@ -18,7 +18,7 @@
**/
function dispEditorPopup() {
// add a css file
Context::addCssFile($this->module_path."tpl/css/editor.css");
Context::loadFile($this->module_path."tpl/css/editor.css", true);
// List variables
$editor_sequence = Context::get('editor_sequence');
$component = Context::get('component');
@ -120,16 +120,16 @@
function dispEditorSkinColorset(){
$skin = Context::get('skin');
$oModuleModel = &getModel('module');
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$skin);
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$skin);
$colorset = $skin_info->colorset;
Context::set('colorset', $colorset);
}
function dispEditorConfigPreview() {
function dispEditorConfigPreview() {
$oEditorModel = &getModel('editor');
$config = $oEditorModel->getEditorConfig();
$option->allow_fileupload = false;
$option->content_style = $config->content_style;
$option->content_font = $config->content_font;
@ -144,9 +144,9 @@
$option->primary_key_name = 'dummy_key';
$option->colorset = $config->sel_editor_colorset;
$editor = $oEditorModel->getEditor(0, $option);
Context::set('editor', $editor);
Context::set('editor', $editor);
$option_com->allow_fileupload = false;
$option_com->content_style = $config->content_style;
$option_com->content_font = $config->content_font;
@ -161,15 +161,15 @@
$option_com->primary_key_name = 'dummy_key2';
$option_com->content_style = $config->comment_content_style;
$option_com->colorset = $config->sel_comment_editor_colorset;
$editor_comment = $oEditorModel->getEditor(0, $option_com);
Context::set('editor_comment', $editor_comment);
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('config_preview');
}
}
?>

View file

@ -1,4 +1,4 @@
<!--%import("js/editor_module_config.js")-->
<load target="js/editor_module_config.js" usecdn="true" />
<script type="text/javascript">
jQuery(function($){
var fontPreview = $('.fontPreview');
@ -26,11 +26,11 @@
<div class="content" id="content">
<h1 class="h1">{$lang->editor}</h1>
<h2 class="h2">{$lang->editor_preview}</h2>
<!-- Editor Preview -->
<a href="{getUrl('module', 'admin', 'act', 'dispEditorConfigPreview')}" target="_blank">{$lang->cmd_preview}</a>
<!-- /Editor Preview -->
<form action="./" method="post" class="form" ruleset="generalConfig">
<form action="./" method="post" class="form" ruleset="generalConfig">
<input type="hidden" name="act" value="procEditorAdminGeneralConfig " />
<fieldset class="section">
@ -38,38 +38,38 @@
<ul>
<li>
<p class="q">{$lang->guide_choose_main_editor}</p>
<p class="a">
<p class="a">
<!--@foreach($editor_skin_list as $editor)-->
<input type="radio" name="editor_skin" value="{$editor}" id="doc_{$editor}" onClick="getEditorSkinColorList(this.value, null, 'document','doc_{$editor}')" <!--@if($editor==$editor_config->editor_skin)-->checked="checked" <!--@end-->/>
<label for="doc_{$editor}" value='sdf'>{$editor}</label>
<select name="sel_editor_colorset" <!--@if($editor==$editor_config->editor_skin)--> >
<input type="radio" name="editor_skin" value="{$editor}" id="doc_{$editor}" onClick="getEditorSkinColorList(this.value, null, 'document','doc_{$editor}')" <!--@if($editor==$editor_config->editor_skin)-->checked="checked" <!--@end-->/>
<label for="doc_{$editor}" value='sdf'>{$editor}</label>
<select name="sel_editor_colorset" <!--@if($editor==$editor_config->editor_skin)--> >
<!--@foreach($editor_colorset_list as $key => $val)-->
<option value="{$val->name}" <!--@if($editor_config->sel_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<!--@else-->style="display:none"> <!--@end-->
</select>
<br />
<!--@end-->
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="editor_height">{$lang->guide_set_height_main_editor}</label></p>
<p class="a"><input type="text" name="editor_height" id="editor_height" value="<!--@if($editor_config->editor_height)-->{$editor_config->editor_height}<!--@else-->{$editor_config_default['editor_height']}<!--@end-->" style="width:30px" /> px</p>
</li>
</li>
<li>
<p class="q">{$lang->guide_choose_comment_editor}</p>
<p class="a">
<!--@foreach($editor_skin_list as $editor)-->
<input type="radio" name="comment_editor_skin" value="{$editor}" id="com_{$editor}" onclick="getEditorSkinColorList(this.value, null, 'reply','com_{$editor}')" <!--@if($editor == $editor_config->comment_editor_skin)-->checked="checked" <!--@end-->/>
<input type="radio" name="comment_editor_skin" value="{$editor}" id="com_{$editor}" onclick="getEditorSkinColorList(this.value, null, 'reply','com_{$editor}')" <!--@if($editor == $editor_config->comment_editor_skin)-->checked="checked" <!--@end-->/>
<label for="com_{$editor}">{$editor}</label>
<select name="sel_comment_editor_colorset" <!--@if($editor==$editor_config->comment_editor_skin)--> >
<select name="sel_comment_editor_colorset" <!--@if($editor==$editor_config->comment_editor_skin)--> >
<!--@foreach($editor_colorset_list as $key => $val)-->
<option value="{$val->name}" <!--@if($editor_config->sel_comment_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<!--@else-->style="display:none"> <!--@end-->
</select>
<br />
<!--@end-->
<br />
<!--@end-->
</p>
</li>
<li>
@ -97,15 +97,15 @@
<li>
<p class="q"><label for="fontSize">{$lang->guide_choose_font_size_body}</label></p>
<textarea rows="3" cols="42" class="fontPreview" title="Font Preview">{$lang->font_preview}</textarea>
<p class="a"><input type="text" id="fontSize" name="content_font_size" value="<!--@if($editor_config->content_font_size)-->{str_replace('px','',$editor_config->content_font_size)}<!--@else-->{str_replace('px','',$editor_config_default['content_font_size'])}<!--@end-->" style="width:30px" /> px</p>
</li>
<p class="a"><input type="text" id="fontSize" name="content_font_size" value="<!--@if($editor_config->content_font_size)-->{str_replace('px','',$editor_config->content_font_size)}<!--@else-->{str_replace('px','',$editor_config_default['content_font_size'])}<!--@end-->" style="width:30px" /> px</p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="Save" /></span>
</div>
</fieldset>
</form>
<form action="./" method="post" class="form" ruleset="componentOrderAndUse">
<form action="./" method="post" class="form" ruleset="componentOrderAndUse">
<input type="hidden" name="act" value="procEditorAdminCheckUseListOrder" />
<fieldset class="section">
<h2 class="h2">Editor Component</h2>
@ -124,7 +124,7 @@
<th scope="col">{$lang->use}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
</thead>
<tbody class="uDrag">
<!--@foreach($component_list as $component_name => $xml_info)-->
<tr>

View file

@ -1,12 +1,12 @@
<load target="../../admin/tpl/css/admin.css" />
<load target="../../admin/tpl/css/admin_{$lang_type}.css" />
<load target="../../admin/tpl/css/admin.css" usecdn="true" />
<load target="../../admin/tpl/css/admin_{$lang_type}.css" usecdn="true" />
<div class="x" style="padding: 10px;">
<h2 class="h2">에디터 미리보기</h2>
<h2 class="h2">에디터 미리보기</h2>
<h2 class="h3">본문 에디터</h2>
<form onSubmit="return false">
<input type="hidden" name="dummy_content" />
<input type="hidden" name="dummy_key" value="1" />
<p>{$editor}</p>
</form><br />
<h2 class="h3">댓글 에디터</h2>

View file

@ -1,5 +1,5 @@
<!--%import("filter/insert_editor_module_config.xml")-->
<!--%import("js/editor_module_config.js")-->
<load target="js/editor_module_config.js" usecdn="true" />
<form action="./" method="post" onsubmit="return procFilter(this, insert_editor_module_config)">
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />

View file

@ -1,6 +1,6 @@
<!--%import("css/editor.css")-->
<!--%import("css/editor_admin.css")-->
<!--%import("js/editor_admin.js")-->
<load target="css/editor.css" usecdn="true" />
<load target="css/editor_admin.css" usecdn="true" />
<load target="js/editor_admin.js" usecdn="true" />
<div id="popHeader" class="wide">
<h3 class="xeAdmin">{$lang->cmd_setup}</h3>
@ -75,7 +75,7 @@
<div id="section_{$module_category_srl}">
<!--@foreach($modules->list as $key => $val)-->
<div class="module_list">
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
</div>
<!--@end-->

View file

@ -1,5 +1,5 @@
<!--%import("css/editor.css")-->
<!--%import("../../../modules/admin/tpl/css/admin.css")-->
<load target="css/editor.css" usecdn="true" />
<load target="../../../modules/admin/tpl/css/admin.css" usecdn="true" />
<div id="popHeader" class="wide">
<h3 class="xeAdmin">{$component->title} ver. {$component->version}</h3>