mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
84 lines
3.3 KiB
Smarty
84 lines
3.3 KiB
Smarty
{**
|
|
* Справка по разметке редактора
|
|
*}
|
|
|
|
{function editor_help_item}
|
|
{strip}
|
|
{foreach $aItems as $aItem}
|
|
<dl class="editor-help-item">
|
|
{foreach $aItem['tags'] as $aTag}
|
|
<dt>
|
|
<a href="#" class="link-dotted js-tags-help-link" {if $aTag['insert']}data-insert="{$aTag['insert']}"{/if}>
|
|
{$aTag['text']}
|
|
</a>
|
|
</dt>
|
|
{/foreach}
|
|
|
|
<dd>{$aItem['def']}</dd>
|
|
</dl>
|
|
{/foreach}
|
|
{/strip}
|
|
{/function}
|
|
|
|
|
|
<div class="editor-help js-editor-help" data-form-id="{$smarty.local.sTargetId}">
|
|
<header class="editor-help-header clearfix">
|
|
<a href="#" class="link-dotted help-link js-editor-help-toggle">{$aLang.tags_help_link_show}</a>
|
|
</header>
|
|
|
|
<div class="editor-help-body">
|
|
<h3 class="h3">{$aLang.tags_help_special}</h3>
|
|
|
|
<div class="mb-30">
|
|
{editor_help_item aItems=[
|
|
[ 'tags' => [ [ 'text' => '<cut>' ] ], 'def' => $aLang.tags_help_special_cut ],
|
|
[ 'tags' => [ [ 'text' => "<cut name=\"{$aLang.tags_help_special_cut_name_example_name}\">" ] ], 'def' => $aLang.tags_help_special_cut_name ],
|
|
[ 'tags' => [ [ 'text' => "<video>http://...</video>", 'insert' => '<video></video>' ] ], 'def' => $aLang.tags_help_special_video ],
|
|
[ 'tags' => [ [ 'text' => "<ls user=\"{$aLang.tags_help_special_ls_user_example_user}\" />", 'insert' => '<ls user="" />' ] ], 'def' => $aLang.tags_help_special_ls_user ]
|
|
]}
|
|
</div>
|
|
|
|
<h3 class="h3">{$aLang.tags_help_standart}</h3>
|
|
|
|
<div class="clearfix">
|
|
<ul class="editor-help-col">
|
|
{editor_help_item aItems=[
|
|
[ 'tags' => [
|
|
[ 'text' => '<h4></h4>' ],
|
|
[ 'text' => '<h5></h5>' ],
|
|
[ 'text' => '<h6></h6>' ]
|
|
], 'def' => $aLang.tags_help_standart_h ],
|
|
[ 'tags' => [ [ 'text' => "<img src=\"\" />" ] ], 'def' => $aLang.tags_help_standart_img ],
|
|
[ 'tags' => [
|
|
[ 'text' => "<a href=\"http://...\">{$aLang.tags_help_standart_a_example_href}</a>", 'insert' => '<a href=""></a>"' ]
|
|
], 'def' => $aLang.tags_help_standart_a ],
|
|
[ 'tags' => [ [ 'text' => "<b></b>" ] ], 'def' => $aLang.tags_help_standart_b ],
|
|
[ 'tags' => [ [ 'text' => "<i></i>" ] ], 'def' => $aLang.tags_help_standart_i ],
|
|
[ 'tags' => [ [ 'text' => "<s></s>" ] ], 'def' => $aLang.tags_help_standart_s ],
|
|
[ 'tags' => [ [ 'text' => "<u></u>" ] ], 'def' => $aLang.tags_help_standart_u ]
|
|
]}
|
|
</ul>
|
|
|
|
<ul class="editor-help-col">
|
|
{editor_help_item aItems=[
|
|
[ 'tags' => [ [ 'text' => "<hr />" ] ], 'def' => $aLang.tags_help_standart_hr ],
|
|
[ 'tags' => [ [ 'text' => "<blockquote></blockquote>" ] ], 'def' => $aLang.tags_help_standart_blockquote ],
|
|
[ 'tags' => [
|
|
[ 'text' => '<table></table>' ],
|
|
[ 'text' => '<th></th>' ],
|
|
[ 'text' => '<td></td>' ],
|
|
[ 'text' => '<tr></tr>' ]
|
|
], 'def' => $aLang.tags_help_standart_table ],
|
|
[ 'tags' => [
|
|
[ 'text' => '<ul></ul>' ],
|
|
[ 'text' => '<li></li>' ]
|
|
], 'def' => $aLang.tags_help_standart_ul ],
|
|
[ 'tags' => [
|
|
[ 'text' => '<ol></ol>' ],
|
|
[ 'text' => '<li></li>' ]
|
|
], 'def' => $aLang.tags_help_standart_ol ]
|
|
]}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div> |