mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
88 lines
4.4 KiB
Smarty
88 lines
4.4 KiB
Smarty
{**
|
|
* Справка по разметке редактора
|
|
*}
|
|
|
|
{$component = 'editor-help'}
|
|
{component_define_params params=[ 'targetId' ]}
|
|
|
|
{function editor_help_item}
|
|
{strip}
|
|
{foreach $items as $item}
|
|
<dl class="{$component}-item">
|
|
{foreach $item['tags'] as $tag}
|
|
<dt>
|
|
<a href="#" class="ls-link-dotted js-tags-help-link" {if $tag['insert']}data-insert="{$tag['insert']}"{/if}>
|
|
{$tag['text']}
|
|
</a>
|
|
</dt>
|
|
{/foreach}
|
|
|
|
<dd>{$item['def']}</dd>
|
|
</dl>
|
|
{/foreach}
|
|
{/strip}
|
|
{/function}
|
|
|
|
|
|
<div class="{$component} js-editor-help" data-form-id="{$targetId}">
|
|
<header class="{$component}-header ls-clearfix">
|
|
<a href="#" class="ls-link-dotted help-link js-editor-help-toggle">{$aLang.editor.markup.help.link_show}</a>
|
|
</header>
|
|
|
|
<div class="{$component}-body js-editor-help-body">
|
|
<h3 class="h3">{$aLang.editor.markup.help.special}</h3>
|
|
|
|
<div class="ls-mb-30">
|
|
{editor_help_item items=[
|
|
[ 'tags' => [ [ 'text' => '<cut>' ] ], 'def' => $aLang.editor.markup.help.special_cut ],
|
|
[ 'tags' => [ [ 'text' => "<cut name=\"{$aLang.editor.markup.help.special_cut_name_example_name}\">" ] ], 'def' => $aLang.editor.markup.help.special_cut_name ],
|
|
[ 'tags' => [ [ 'text' => "<video>http://...</video>", 'insert' => '<video></video>' ] ], 'def' => $aLang.editor.markup.help.special_video ],
|
|
[ 'tags' => [ [ 'text' => "<ls user=\"{$aLang.editor.markup.help.special_ls_user_example_user}\" />", 'insert' => '<ls user="" />' ] ], 'def' => $aLang.editor.markup.help.special_ls_user ]
|
|
]}
|
|
</div>
|
|
|
|
<h3 class="h3">{$aLang.editor.markup.help.standart}</h3>
|
|
|
|
<div class="ls-clearfix">
|
|
<ul class="{$component}-col">
|
|
{editor_help_item items=[
|
|
[ 'tags' => [
|
|
[ 'text' => '<h4></h4>' ],
|
|
[ 'text' => '<h5></h5>' ],
|
|
[ 'text' => '<h6></h6>' ]
|
|
], 'def' => $aLang.editor.markup.help.standart_h ],
|
|
[ 'tags' => [ [ 'text' => "<img src=\"\" />" ] ], 'def' => $aLang.editor.markup.help.standart_img ],
|
|
[ 'tags' => [
|
|
[ 'text' => "<a href=\"http://...\">{$aLang.editor.markup.help.standart_a_example_href}</a>", 'insert' => '<a href=""></a>"' ]
|
|
], 'def' => $aLang.editor.markup.help.standart_a ],
|
|
[ 'tags' => [ [ 'text' => "<b></b>" ] ], 'def' => $aLang.editor.markup.help.standart_b ],
|
|
[ 'tags' => [ [ 'text' => "<i></i>" ] ], 'def' => $aLang.editor.markup.help.standart_i ],
|
|
[ 'tags' => [ [ 'text' => "<s></s>" ] ], 'def' => $aLang.editor.markup.help.standart_s ],
|
|
[ 'tags' => [ [ 'text' => "<u></u>" ] ], 'def' => $aLang.editor.markup.help.standart_u ]
|
|
]}
|
|
</ul>
|
|
|
|
<ul class="{$component}-col">
|
|
{editor_help_item items=[
|
|
[ 'tags' => [ [ 'text' => "<hr />" ] ], 'def' => $aLang.editor.markup.help.standart_hr ],
|
|
[ 'tags' => [ [ 'text' => "<blockquote></blockquote>" ] ], 'def' => $aLang.editor.markup.help.standart_blockquote ],
|
|
[ 'tags' => [
|
|
[ 'text' => '<table></table>' ],
|
|
[ 'text' => '<th></th>' ],
|
|
[ 'text' => '<td></td>' ],
|
|
[ 'text' => '<tr></tr>' ]
|
|
], 'def' => $aLang.editor.markup.help.standart_table ],
|
|
[ 'tags' => [
|
|
[ 'text' => '<ul></ul>' ],
|
|
[ 'text' => '<li></li>' ]
|
|
], 'def' => $aLang.editor.markup.help.standart_ul ],
|
|
[ 'tags' => [
|
|
[ 'text' => '<ol></ol>' ],
|
|
[ 'text' => '<li></li>' ]
|
|
], 'def' => $aLang.editor.markup.help.standart_ol ]
|
|
]}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|