mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
fix шаблона плагина page
This commit is contained in:
parent
a939a22468
commit
12253c67ea
|
@ -1,47 +1,24 @@
|
|||
{include file='window_load_img.tpl' sToLoad='page_text'}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{$sTemplateWebPathPlugin}css/style.css" media="all" />
|
||||
|
||||
|
||||
{if $oConfig->GetValue('view.tinymce')}
|
||||
<script type="text/javascript" src="{cfg name='path.root.engine_lib'}/external/tinymce-jq/tiny_mce.js"></script>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1 : "lshselect,bold,italic,underline,strikethrough,|,bullist,numlist,|,undo,redo,|,lslink,unlink,lsvideo,lsimage,code",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_resizing : true,
|
||||
theme_advanced_resize_horizontal : 0,
|
||||
theme_advanced_resizing_use_cookie : 0,
|
||||
theme_advanced_path : false,
|
||||
object_resizing : true,
|
||||
force_br_newlines : true,
|
||||
forced_root_block : '', // Needed for 3.x
|
||||
force_p_newlines : false,
|
||||
plugins : "lseditor,safari,inlinepopups,media",
|
||||
convert_urls : false,
|
||||
extended_valid_elements : "embed[src|type|allowscriptaccess|allowfullscreen|width|height]",
|
||||
language : TINYMCE_LANG
|
||||
jQuery(function($){
|
||||
tinyMCE.init(ls.settings.getTinymce());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{else}
|
||||
{include file='window_load_img.tpl' sToLoad='page_text'}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.lang.load({lang_load name="panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li"});
|
||||
// Подключаем редактор
|
||||
$('#page_text').markItUp(getMarkitupSettings());
|
||||
});
|
||||
jQuery(function($){
|
||||
ls.lang.load({lang_load name="panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li,panel_image_promt,panel_user,panel_user_promt"});
|
||||
// Подключаем редактор
|
||||
$('#page_text').markItUp(ls.settings.getMarkitup());
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
|
@ -67,8 +44,8 @@
|
|||
<input type="text" id="page_url" name="page_url" value="{$_aRequest.page_url}" class="input-wide" /> </p>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.page_create_text}:</label>
|
||||
<textarea name="page_text" id="page_text" rows="20" class="input-wide">{$_aRequest.page_text}</textarea><br /><br />
|
||||
<label for="page_text">{$aLang.page_create_text}:</label>
|
||||
<textarea name="page_text" id="page_text" rows="20" class="mce-editor input-wide">{$_aRequest.page_text}</textarea><br /><br />
|
||||
|
||||
<p><label for="page_seo_keywords">{$aLang.page_create_seo_keywords}:</label><br />
|
||||
<input type="text" id="page_seo_keywords" name="page_seo_keywords" value="{$_aRequest.page_seo_keywords}" class="input-wide" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{include file='header.tpl'}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{$sTemplateWebPathPlugin}css/style.css" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="{$aTemplateWebPathPlugin.page|cat:'css/style.css'}" media="all" />
|
||||
|
||||
|
||||
<div>
|
||||
|
@ -9,10 +9,10 @@
|
|||
|
||||
{if $aParams.0=='new'}
|
||||
<h3>{$aLang.page_create}</h3>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{include file=$aTemplatePathPlugin.page|cat:'actions/ActionPage/add.tpl'}
|
||||
{elseif $aParams.0=='edit'}
|
||||
<h3>{$aLang.page_edit} «{$oPageEdit->getTitle()}»</h3>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{include file=$aTemplatePathPlugin.page|cat:'actions/ActionPage/add.tpl'}
|
||||
{else}
|
||||
<a href="{router page='page'}admin/new/" class="page-new">{$aLang.page_new}</a><br /><br />
|
||||
{/if}
|
||||
|
@ -33,7 +33,7 @@
|
|||
{foreach from=$aPages item=oPage name=el2}
|
||||
<tr>
|
||||
<td>
|
||||
<img src="{$sTemplateWebPathPlugin}images/{if $oPage->getLevel()==0}folder{else}document{/if}.gif" alt="" title="" border="0" style="margin-left: {$oPage->getLevel()*20}px;"/>
|
||||
<img src="{$aTemplateWebPathPlugin.page|cat:'images/'}{if $oPage->getLevel()==0}folder{else}document{/if}.gif" alt="" title="" border="0" style="margin-left: {$oPage->getLevel()*20}px;"/>
|
||||
<a href="{router page='page'}{$oPage->getUrlFull()}/">{$oPage->getTitle()}</a>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -54,10 +54,10 @@
|
|||
{/if}
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="{router page='page'}admin/edit/{$oPage->getId()}/"><img src="{$sTemplateWebPathPlugin}images/edit.png" alt="{$aLang.page_admin_action_edit}" title="{$aLang.page_admin_action_edit}" /></a>
|
||||
<a href="{router page='page'}admin/delete/{$oPage->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}" onclick="return confirm('«{$oPage->getTitle()}»: {$aLang.page_admin_action_delete_confirm}');"><img src="{$sTemplateWebPathPlugin}images/delete.png" alt="{$aLang.page_admin_action_delete}" title="{$aLang.page_admin_action_delete}" /></a>
|
||||
<a href="{router page='page'}admin/sort/{$oPage->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}"><img src="{$sTemplateWebPathPlugin}images/up.png" alt="{$aLang.page_admin_sort_up}" title="{$aLang.page_admin_sort_up} ({$oPage->getSort()})" /></a>
|
||||
<a href="{router page='page'}admin/sort/{$oPage->getId()}/down/?security_ls_key={$LIVESTREET_SECURITY_KEY}"><img src="{$sTemplateWebPathPlugin}images/down.png" alt="{$aLang.page_admin_sort_down}" title="{$aLang.page_admin_sort_down} ({$oPage->getSort()})" /></a>
|
||||
<a href="{router page='page'}admin/edit/{$oPage->getId()}/"><img src="{$aTemplateWebPathPlugin.page|cat:'images/edit.png'}" alt="{$aLang.page_admin_action_edit}" title="{$aLang.page_admin_action_edit}" /></a>
|
||||
<a href="{router page='page'}admin/delete/{$oPage->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}" onclick="return confirm('«{$oPage->getTitle()}»: {$aLang.page_admin_action_delete_confirm}');"><img src="{$aTemplateWebPathPlugin.page|cat:'images/delete.png'}" alt="{$aLang.page_admin_action_delete}" title="{$aLang.page_admin_action_delete}" /></a>
|
||||
<a href="{router page='page'}admin/sort/{$oPage->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}"><img src="{$aTemplateWebPathPlugin.page|cat:'images/up.png'}" alt="{$aLang.page_admin_sort_up}" title="{$aLang.page_admin_sort_up} ({$oPage->getSort()})" /></a>
|
||||
<a href="{router page='page'}admin/sort/{$oPage->getId()}/down/?security_ls_key={$LIVESTREET_SECURITY_KEY}"><img src="{$aTemplateWebPathPlugin.page|cat:'images/down.png'}" alt="{$aLang.page_admin_sort_down}" title="{$aLang.page_admin_sort_down} ({$oPage->getSort()})" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
|
Loading…
Reference in a new issue