Удаление старых шаблонов плагина page
|
@ -1,99 +0,0 @@
|
|||
{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/tiny_mce.js"></script>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
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
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
|
||||
<form action="" method="POST">
|
||||
{hook run='plugin_page_form_add_begin'}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
<p><label for="page_pid">{$aLang.page_create_parent_page}</label><br />
|
||||
<select name="page_pid" id="page_pid" class="input-300">
|
||||
<option value="0"></option>
|
||||
{foreach from=$aPages item=oPage}
|
||||
<option style="margin-left: {$oPage->getLevel()*20}px;" value="{$oPage->getId()}" {if $_aRequest.page_pid==$oPage->getId()}selected{/if}>{$oPage->getTitle()}(/{$oPage->getUrlFull()}/)</option>
|
||||
{/foreach}
|
||||
</select></p>
|
||||
|
||||
|
||||
<p><label for="page_title">{$aLang.page_create_title}:</label><br />
|
||||
<input type="text" id="page_title" name="page_title" value="{$_aRequest.page_title}" class="input-wide" /> </p>
|
||||
|
||||
|
||||
<p><label for="page_url">{$aLang.page_create_url}:</label><br />
|
||||
<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>
|
||||
{if !$oConfig->GetValue('view.tinymce')}
|
||||
<div class="panel-form" style="background: #eaecea; ">
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','b'); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/bold_ru.gif" width="20" height="20" title="{$aLang.panel_b}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','i'); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/italic_ru.gif" width="20" height="20" title="{$aLang.panel_i}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','u'); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/underline_ru.gif" width="20" height="20" title="{$aLang.panel_u}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','s'); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/strikethrough.gif" width="20" height="20" title="{$aLang.panel_s}"></a>
|
||||
|
||||
<a href="#" onclick="lsPanel.putTagUrl('page_text','URL:'); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/link.gif" width="20" height="20" title="{$aLang.panel_url}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','code'); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/code.gif" width="30" height="20" title="{$aLang.panel_code}"></a>
|
||||
|
||||
<a href="#" onclick="showImgUploadForm(); return false;"><img src="{$sTemplateWebPathPlugin}images/panel/img.gif" width="20" height="20" title="{$aLang.panel_image}"></a>
|
||||
</div>
|
||||
{/if}
|
||||
<textarea name="page_text" id="page_text" rows="20" class="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" />
|
||||
<span class="note">{$aLang.page_create_seo_keywords_notice}</span></p>
|
||||
|
||||
<p><label for="page_seo_description">{$aLang.page_create_seo_description}:</label><br />
|
||||
<input type="text" id="page_seo_description" name="page_seo_description" value="{$_aRequest.page_seo_description}" class="input-wide" />
|
||||
<span class="note">{$aLang.page_create_seo_description_notice}</span></p>
|
||||
|
||||
<p><label for="page_sort">{$aLang.page_create_sort}:</label><br />
|
||||
<input type="text" id="page_sort" name="page_sort" value="{$_aRequest.page_sort}" class="input-wide" />
|
||||
<span class="note">{$aLang.page_create_sort_notice}</span></p>
|
||||
|
||||
<p><label><input type="checkbox" id="page_auto_br" name="page_auto_br" value="1" class="checkbox" {if $_aRequest.page_auto_br==1}checked{/if}/>{$aLang.page_create_auto_br}</label></p>
|
||||
|
||||
<p><label><input type="checkbox" id="page_active" name="page_active" value="1" class="checkbox" {if $_aRequest.page_active==1}checked{/if} />{$aLang.page_create_active}</label></p>
|
||||
|
||||
<p><label><input type="checkbox" id="page_main" name="page_main" value="1" class="checkbox" {if $_aRequest.page_main==1}checked{/if} />{$aLang.page_create_main}</label></p>
|
||||
|
||||
{hook run='plugin_page_form_add_end'}
|
||||
<p>
|
||||
<input type="submit" name="submit_page_save" value="{$aLang.page_create_submit_save}" />
|
||||
<input type="submit" name="submit_page_cancel" value="{$aLang.page_create_submit_cancel}" onclick="window.location='{router page='page'}admin/'; return false;" />
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="page_id" value="{$_aRequest.page_id}">
|
||||
</form>
|
|
@ -1,69 +0,0 @@
|
|||
{include file='header.tpl'}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{$sTemplateWebPathPlugin}css/style.css" media="all" />
|
||||
|
||||
|
||||
<div>
|
||||
<h2>{$aLang.page_admin}</h2>
|
||||
|
||||
|
||||
{if $aParams.0=='new'}
|
||||
<h3>{$aLang.page_create}</h3>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{elseif $aParams.0=='edit'}
|
||||
<h3>{$aLang.page_edit} «{$oPageEdit->getTitle()}»</h3>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{else}
|
||||
<a href="{router page='page'}admin/new/" class="page-new">{$aLang.page_new}</a><br /><br />
|
||||
{/if}
|
||||
|
||||
|
||||
<table cellspacing="0" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="180px">{$aLang.page_admin_title}</td>
|
||||
<td align="center" >{$aLang.page_admin_url}</td>
|
||||
<td align="center" width="50px">{$aLang.page_admin_active}</td>
|
||||
<td align="center" width="70px">{$aLang.page_admin_main}</td>
|
||||
<td align="center" width="80px">{$aLang.page_admin_action}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{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;"/>
|
||||
<a href="{router page='page'}{$oPage->getUrlFull()}/">{$oPage->getTitle()}</a>
|
||||
</td>
|
||||
<td>
|
||||
/{$oPage->getUrlFull()}/
|
||||
</td>
|
||||
<td align="center">
|
||||
{if $oPage->getActive()}
|
||||
{$aLang.page_admin_active_yes}
|
||||
{else}
|
||||
{$aLang.page_admin_active_no}
|
||||
{/if}
|
||||
</td>
|
||||
<td align="center">
|
||||
{if $oPage->getMain()}
|
||||
{$aLang.page_admin_active_yes}
|
||||
{else}
|
||||
{$aLang.page_admin_active_no}
|
||||
{/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>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -1,18 +0,0 @@
|
|||
{assign var="noSidebar" value=true}
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="topic">
|
||||
<div class="content">
|
||||
{if $oConfig->GetValue('view.tinymce')}
|
||||
{$oPage->getText()}
|
||||
{else}
|
||||
{if $oPage->getAutoBr()}
|
||||
{$oPage->getText()|nl2br}
|
||||
{else}
|
||||
{$oPage->getText()}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -1,14 +0,0 @@
|
|||
.table a { color: #333; }
|
||||
.table a:hover { color: #666; }
|
||||
|
||||
.table { width: 100%; margin-bottom: 10px; }
|
||||
.table thead td { background: #fafafa; }
|
||||
.table td { border: 1px solid #ddd; padding: 5px; }
|
||||
|
||||
.page-new { padding-left: 13px; background: url(../images/document.gif) no-repeat 0 3px; color: #555; }
|
||||
|
||||
.input-wide { width: 98%; _width: 97%; padding: 2px; }
|
||||
.input-100 { width: 100px; padding: 2px; }
|
||||
.input-200 { width: 200px; padding: 2px; }
|
||||
.input-300 { width: 300px; padding: 2px; }
|
||||
.checkbox { position: relative; top: 2px; margin: 0 4px 0 1px; }
|
Before Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 313 B |
|
@ -1,3 +0,0 @@
|
|||
{foreach from=$aPagesMain item=oPage}
|
||||
<li {if $sAction=='page' and $sEvent==$oPage->getUrl()}class="active"{/if}><a href="{router page='page'}{$oPage->getUrlFull()}/" >{$oPage->getTitle()}</a></li>
|
||||
{/foreach}
|
|
@ -1,98 +0,0 @@
|
|||
{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
|
||||
});
|
||||
});
|
||||
</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());
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
|
||||
<form action="" method="POST">
|
||||
{hook run='plugin_page_form_add_begin'}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
<p><label for="page_pid">{$aLang.page_create_parent_page}</label><br />
|
||||
<select name="page_pid" id="page_pid" class="input-300">
|
||||
<option value="0"></option>
|
||||
{foreach from=$aPages item=oPage}
|
||||
<option style="margin-left: {$oPage->getLevel()*20}px;" value="{$oPage->getId()}" {if $_aRequest.page_pid==$oPage->getId()}selected{/if}>{$oPage->getTitle()}(/{$oPage->getUrlFull()}/)</option>
|
||||
{/foreach}
|
||||
</select></p>
|
||||
|
||||
|
||||
<p><label for="page_title">{$aLang.page_create_title}:</label><br />
|
||||
<input type="text" id="page_title" name="page_title" value="{$_aRequest.page_title}" class="input-wide" /> </p>
|
||||
|
||||
|
||||
<p><label for="page_url">{$aLang.page_create_url}:</label><br />
|
||||
<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 />
|
||||
|
||||
<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" />
|
||||
<span class="note">{$aLang.page_create_seo_keywords_notice}</span></p>
|
||||
|
||||
<p><label for="page_seo_description">{$aLang.page_create_seo_description}:</label><br />
|
||||
<input type="text" id="page_seo_description" name="page_seo_description" value="{$_aRequest.page_seo_description}" class="input-wide" />
|
||||
<span class="note">{$aLang.page_create_seo_description_notice}</span></p>
|
||||
|
||||
<p><label for="page_sort">{$aLang.page_create_sort}:</label><br />
|
||||
<input type="text" id="page_sort" name="page_sort" value="{$_aRequest.page_sort}" class="input-wide" />
|
||||
<span class="note">{$aLang.page_create_sort_notice}</span></p>
|
||||
|
||||
<p><label><input type="checkbox" id="page_auto_br" name="page_auto_br" value="1" class="checkbox" {if $_aRequest.page_auto_br==1}checked{/if}/>{$aLang.page_create_auto_br}</label></p>
|
||||
|
||||
<p><label><input type="checkbox" id="page_active" name="page_active" value="1" class="checkbox" {if $_aRequest.page_active==1}checked{/if} />{$aLang.page_create_active}</label></p>
|
||||
|
||||
<p><label><input type="checkbox" id="page_main" name="page_main" value="1" class="checkbox" {if $_aRequest.page_main==1}checked{/if} />{$aLang.page_create_main}</label></p>
|
||||
|
||||
{hook run='plugin_page_form_add_end'}
|
||||
<p>
|
||||
<input type="submit" name="submit_page_save" value="{$aLang.page_create_submit_save}" />
|
||||
<input type="submit" name="submit_page_cancel" value="{$aLang.page_create_submit_cancel}" onclick="window.location='{router page='page'}admin/'; return false;" />
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="page_id" value="{$_aRequest.page_id}">
|
||||
</form>
|
|
@ -1,69 +0,0 @@
|
|||
{include file='header.tpl'}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{$sTemplateWebPathPlugin}css/style.css" media="all" />
|
||||
|
||||
|
||||
<div>
|
||||
<h2>{$aLang.page_admin}</h2>
|
||||
|
||||
|
||||
{if $aParams.0=='new'}
|
||||
<h3>{$aLang.page_create}</h3>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{elseif $aParams.0=='edit'}
|
||||
<h3>{$aLang.page_edit} «{$oPageEdit->getTitle()}»</h3>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{else}
|
||||
<a href="{router page='page'}admin/new/" class="page-new">{$aLang.page_new}</a><br /><br />
|
||||
{/if}
|
||||
|
||||
|
||||
<table cellspacing="0" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="180px">{$aLang.page_admin_title}</td>
|
||||
<td align="center" >{$aLang.page_admin_url}</td>
|
||||
<td align="center" width="50px">{$aLang.page_admin_active}</td>
|
||||
<td align="center" width="70px">{$aLang.page_admin_main}</td>
|
||||
<td align="center" width="80px">{$aLang.page_admin_action}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{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;"/>
|
||||
<a href="{router page='page'}{$oPage->getUrlFull()}/">{$oPage->getTitle()}</a>
|
||||
</td>
|
||||
<td>
|
||||
/{$oPage->getUrlFull()}/
|
||||
</td>
|
||||
<td align="center">
|
||||
{if $oPage->getActive()}
|
||||
{$aLang.page_admin_active_yes}
|
||||
{else}
|
||||
{$aLang.page_admin_active_no}
|
||||
{/if}
|
||||
</td>
|
||||
<td align="center">
|
||||
{if $oPage->getMain()}
|
||||
{$aLang.page_admin_active_yes}
|
||||
{else}
|
||||
{$aLang.page_admin_active_no}
|
||||
{/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>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -1,18 +0,0 @@
|
|||
{assign var="noSidebar" value=true}
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="topic">
|
||||
<div class="content">
|
||||
{if $oConfig->GetValue('view.tinymce')}
|
||||
{$oPage->getText()}
|
||||
{else}
|
||||
{if $oPage->getAutoBr()}
|
||||
{$oPage->getText()|nl2br}
|
||||
{else}
|
||||
{$oPage->getText()}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -1,14 +0,0 @@
|
|||
.table a { color: #333; }
|
||||
.table a:hover { color: #666; }
|
||||
|
||||
.table { width: 100%; margin-bottom: 10px; }
|
||||
.table thead td { background: #fafafa; }
|
||||
.table td { border: 1px solid #ddd; padding: 5px; }
|
||||
|
||||
.page-new { padding-left: 13px; background: url(../images/document.gif) no-repeat 0 3px; color: #555; }
|
||||
|
||||
.input-wide { width: 100%; _width: 99%; padding: 2px; }
|
||||
.input-100 { width: 100px; padding: 2px; }
|
||||
.input-200 { width: 200px; padding: 2px; }
|
||||
.input-300 { width: 300px; padding: 2px; }
|
||||
.checkbox { position: relative; top: 2px; margin: 0 4px 0 1px; }
|
Before Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 313 B |
|
@ -1,3 +0,0 @@
|
|||
{foreach from=$aPagesMain item=oPage}
|
||||
<li {if $sAction=='page' and $sEvent==$oPage->getUrl()}class="active"{/if}><a href="{router page='page'}{$oPage->getUrlFull()}/" >{$oPage->getTitle()}</a></li>
|
||||
{/foreach}
|
|
@ -1,106 +0,0 @@
|
|||
{include file='window_load_img.tpl' sToLoad='page_text'}
|
||||
|
||||
{if $oConfig->GetValue('view.tinymce')}
|
||||
<script type="text/javascript" src="{cfg name='path.root.engine_lib'}/external/tinymce/tiny_mce.js"></script>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
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
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
<form action="" method="POST">
|
||||
{hook run='plugin_page_form_add_begin'}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
<p><label for="page_pid">{$aLang.page_create_parent_page}</label>
|
||||
<select name="page_pid" id="page_pid" >
|
||||
<option value="0"></option>
|
||||
{foreach from=$aPages item=oPage}
|
||||
<option style="margin-left: {$oPage->getLevel()*20}px;" value="{$oPage->getId()}" {if $_aRequest.page_pid==$oPage->getId()}selected{/if}>{$oPage->getTitle()}(/{$oPage->getUrlFull()}/)</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="page_title">{$aLang.page_create_title}:</label>
|
||||
<input type="text" id="page_title" name="page_title" value="{$_aRequest.page_title}" class="w100p" /><br />
|
||||
</p>
|
||||
|
||||
<p><label for="page_url">{$aLang.page_create_url}:</label>
|
||||
<input type="text" id="page_url" name="page_url" value="{$_aRequest.page_url}" class="w100p" /><br />
|
||||
</p>
|
||||
|
||||
<p><label for="topic_text">{$aLang.page_create_text}:</label>
|
||||
{if !$oConfig->GetValue('view.tinymce')}
|
||||
<div class="panel_form">
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','b'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/bold.png" title="{$aLang.panel_b}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','i'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/italic.png" title="{$aLang.panel_i}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','u'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/underline.png" title="{$aLang.panel_u}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','s'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/strikethrough.png" title="{$aLang.panel_s}"></a>
|
||||
|
||||
<a href="#" onclick="lsPanel.putTagUrl('page_text','{$aLang.panel_url_promt}'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/link.png" title="{$aLang.panel_url}"></a>
|
||||
<a href="#" onclick="lsPanel.putQuote('page_text'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/quote.png" title="{$aLang.panel_quote}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','code'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/code.png" title="{$aLang.panel_code}"></a>
|
||||
<a href="#" onclick="lsPanel.putTagAround('page_text','video'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/video.png" title="{$aLang.panel_video}"></a>
|
||||
|
||||
<a href="#" onclick="showImgUploadForm(); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/img.png" title="{$aLang.panel_image}"></a>
|
||||
<a href="#" onclick="lsPanel.putText('page_text','<cut>'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/cut.png" title="{$aLang.panel_cut}"></a>
|
||||
</div>
|
||||
{/if}
|
||||
<textarea name="page_text" id="page_text" rows="20">{$_aRequest.page_text}</textarea></p>
|
||||
|
||||
<p><label for="page_seo_keywords">{$aLang.page_create_seo_keywords}:</label>
|
||||
<input type="text" id="page_seo_keywords" name="page_seo_keywords" value="{$_aRequest.page_seo_keywords}" class="w100p" /><br />
|
||||
<span class="form_note">{$aLang.page_create_seo_keywords_notice}</span>
|
||||
</p>
|
||||
|
||||
<p><label for="page_seo_description">{$aLang.page_create_seo_description}:</label>
|
||||
<input type="text" id="page_seo_description" name="page_seo_description" value="{$_aRequest.page_seo_description}" class="w100p" /><br />
|
||||
<span class="form_note">{$aLang.page_create_seo_description_notice}</span>
|
||||
</p>
|
||||
|
||||
<p><label for="page_sort">{$aLang.page_create_sort}:</label><br />
|
||||
<input type="text" id="page_sort" name="page_sort" value="{$_aRequest.page_sort}" class="w100p" />
|
||||
<span class="form_note">{$aLang.page_create_sort_notice}</span></p>
|
||||
|
||||
<p><input type="checkbox" id="page_auto_br" name="page_auto_br" value="1" {if $_aRequest.page_auto_br==1}checked{/if}/>
|
||||
<label for="page_auto_br"> — {$aLang.page_create_auto_br}</label>
|
||||
</p>
|
||||
|
||||
<p><input type="checkbox" id="page_active" name="page_active" value="1" {if $_aRequest.page_active==1}checked{/if}/>
|
||||
<label for="page_active"> — {$aLang.page_create_active}</label>
|
||||
</p>
|
||||
|
||||
<p><input type="checkbox" id="page_main" name="page_main" value="1" {if $_aRequest.page_main==1}checked{/if}/>
|
||||
<label for="page_main"> — {$aLang.page_create_main}</label>
|
||||
</p>
|
||||
|
||||
{hook run='plugin_page_form_add_end'}
|
||||
<p class="buttons">
|
||||
<input type="submit" name="submit_page_save" value="{$aLang.page_create_submit_save}">
|
||||
<input type="submit" name="submit_page_cancel" value="{$aLang.page_create_submit_cancel}" onclick="window.location='{router page='page'}admin/'; return false;">
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="page_id" value="{$_aRequest.page_id}">
|
||||
</form>
|
|
@ -1,73 +0,0 @@
|
|||
{include file='header.tpl'}
|
||||
|
||||
<div class=topic>
|
||||
|
||||
|
||||
<h2>{$aLang.page_admin}</h2>
|
||||
<br>
|
||||
{if $aParams.0=='new'}
|
||||
<h4>{$aLang.page_create}</h4>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{elseif $aParams.0=='edit'}
|
||||
<h4>{$aLang.page_edit} «{$oPageEdit->getTitle()}»</h4>
|
||||
{include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"}
|
||||
{else}
|
||||
<a href="{router page='page'}admin/new/">{$aLang.page_new}</a>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellspacing="0" class="admin_page">
|
||||
<tr>
|
||||
<th align="left">{$aLang.page_admin_title}</th>
|
||||
<th align="center" width="250px">{$aLang.page_admin_url}</th>
|
||||
<th align="center" width="50px">{$aLang.page_admin_active}</th>
|
||||
<th align="center" width="70px">{$aLang.page_admin_main}</th>
|
||||
<th align="center" width="80px">{$aLang.page_admin_action}</th>
|
||||
</tr>
|
||||
|
||||
|
||||
{foreach from=$aPages item=oPage name=el2}
|
||||
{if $smarty.foreach.el2.iteration % 2 == 0}
|
||||
{assign var=className value=''}
|
||||
{else}
|
||||
{assign var=className value='colored'}
|
||||
{/if}
|
||||
<tr class="{$className}" onmouseover="this.className='colored_sel';" onmouseout="this.className='{$className}';">
|
||||
<td align="left" valign="middle">
|
||||
<img src="{$sTemplateWebPathPlugin}images/{if $oPage->getLevel()==0}folder{else}new{/if}_16x16.gif" alt="" title="" border="0" style="margin-left: {$oPage->getLevel()*20}px;"/>
|
||||
<a href="{router page='page'}{$oPage->getUrlFull()}/">{$oPage->getTitle()}</a>
|
||||
</td>
|
||||
<td align="left">
|
||||
/{$oPage->getUrlFull()}/
|
||||
</td>
|
||||
<td align="center">
|
||||
{if $oPage->getActive()}
|
||||
{$aLang.page_admin_active_yes}
|
||||
{else}
|
||||
{$aLang.page_admin_active_no}
|
||||
{/if}
|
||||
</td>
|
||||
<td align="center">
|
||||
{if $oPage->getMain()}
|
||||
{$aLang.page_admin_active_yes}
|
||||
{else}
|
||||
{$aLang.page_admin_active_no}
|
||||
{/if}
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="{router page='page'}admin/edit/{$oPage->getId()}/"><img src="{$sTemplateWebPathPlugin}images/edit.gif" alt="{$aLang.page_admin_action_edit}" title="{$aLang.page_admin_action_edit}" border="0"/></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.gif" alt="{$aLang.page_admin_action_delete}" title="{$aLang.page_admin_action_delete}" border="0"/></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>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -1,18 +0,0 @@
|
|||
{assign var="bNoSidebar" value=true}
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class=topic>
|
||||
<div class="content">
|
||||
{if $oConfig->GetValue('view.tinymce')}
|
||||
{$oPage->getText()}
|
||||
{else}
|
||||
{if $oPage->getAutoBr()}
|
||||
{$oPage->getText()|nl2br}
|
||||
{else}
|
||||
{$oPage->getText()}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
Before Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 313 B |
|
@ -1,3 +0,0 @@
|
|||
{foreach from=$aPagesMain item=oPage}
|
||||
<li {if $sAction=='page' and $sEvent==$oPage->getUrl()}class="active"{/if}><a href="{router page='page'}{$oPage->getUrlFull()}/" >{$oPage->getTitle()}</a></li>
|
||||
{/foreach}
|