1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Мелкие исправления в дефолтных плагинах

This commit is contained in:
Denis Shakhov 2013-06-18 16:38:02 +07:00
parent 7c0c2652bf
commit 9bc0fe84e9
3 changed files with 16 additions and 10 deletions

View file

@ -4,9 +4,9 @@
{$bNoSidebar = true} {$bNoSidebar = true}
{/block} {/block}
{block name='layout_page_title'}{$aLang.plugin.page.admin}{/block}
{block name='layout_content'} {block name='layout_content'}
<h2 class="page-header">{$aLang.plugin.page.admin}</h2>
{if $aParams.0=='new'} {if $aParams.0=='new'}
<h3 class="h6">{$aLang.plugin.page.create}</h3> <h3 class="h6">{$aLang.plugin.page.create}</h3>
{include file=$aTemplatePathPlugin.page|cat:'actions/ActionPage/add.tpl'} {include file=$aTemplatePathPlugin.page|cat:'actions/ActionPage/add.tpl'}
@ -14,7 +14,7 @@
<h3 class="h6">{$aLang.plugin.page.edit} «{$oPageEdit->getTitle()}»</h3> <h3 class="h6">{$aLang.plugin.page.edit} «{$oPageEdit->getTitle()}»</h3>
{include file=$aTemplatePathPlugin.page|cat:'actions/ActionPage/add.tpl'} {include file=$aTemplatePathPlugin.page|cat:'actions/ActionPage/add.tpl'}
{else} {else}
<a href="{router page='page'}admin/new/" class="button">{$aLang.plugin.page.new}</a><br /><br /> <a href="{router page='page'}admin/new/" class="button button-primary">{$aLang.plugin.page.new}</a><br /><br />
{/if} {/if}

View file

@ -4,9 +4,9 @@
{$bNoSidebar = true} {$bNoSidebar = true}
{/block} {/block}
{block name='layout_page_title'}{$oPage->getTitle()}{/block}
{block name='layout_content'} {block name='layout_content'}
<h2 class="page-header">{$oPage->getTitle()}</h2>
<div class="text"> <div class="text">
{if $oConfig->GetValue('view.tinymce')} {if $oConfig->GetValue('view.tinymce')}
{$oPage->getText()} {$oPage->getText()}
@ -18,4 +18,9 @@
{/if} {/if}
{/if} {/if}
</div> </div>
{if $oUserCurrent and $oUserCurrent->isAdministrator()}
<br />
<a href="{router page='page'}admin/edit/{$oPage->getId()}/">{$aLang.plugin.page.admin_action_edit}</a>
{/if}
{/block} {/block}

View file

@ -4,16 +4,18 @@
{$noShowSystemMessage = false} {$noShowSystemMessage = false}
{/block} {/block}
{block name='layout_content'} {block name='layout_page_title'}{$aLang.plugin.profiler.reports_title}{/block}
{block name='layout_head_end'}
<script> <script>
var DIR_PLUGIN_SKIN='{$aTemplateWebPathPlugin.profiler}'; var DIR_PLUGIN_SKIN = '{$aTemplateWebPathPlugin.profiler}';
</script> </script>
<script type="text/javascript" src="{$aTemplateWebPathPlugin.profiler}js/profiler.js"></script> <script type="text/javascript" src="{$aTemplateWebPathPlugin.profiler}js/profiler.js"></script>
<link rel="stylesheet" type="text/css" href="{$aTemplateWebPathPlugin.profiler}css/style.css" media="all" /> <link rel="stylesheet" type="text/css" href="{$aTemplateWebPathPlugin.profiler}css/style.css" media="all" />
{/block}
<h2 class="page-header">{$aLang.plugin.profiler.reports_title}</h2> {block name='layout_content'}
<form action="{router page='profiler'}" method="post" id="form_report_list"> <form action="{router page='profiler'}" method="post" id="form_report_list">
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" /> <input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
@ -52,6 +54,5 @@
{/if} {/if}
</form> </form>
{include file='paging.tpl' aPaging="$aPaging"} {include file='paging.tpl' aPaging="$aPaging"}
{/block} {/block}