mirror of
https://github.com/Oreolek/ifhub-skin.git
synced 2024-05-05 02:28:24 +03:00
93 lines
5.5 KiB
Smarty
93 lines
5.5 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 ],
|
||
[ 'tags' => [ [ 'text' => "<incut></incut>", 'insert' => '<incut></incut>' ] ], 'def' => 'Вставка блока-врезки посередине текста'],
|
||
[ 'tags' => [ [ 'text' => "<aside></aside>", 'insert' => '<aside></aside>' ] ], 'def' => 'Вставка блока-врезки справа от текста' ],
|
||
[ 'tags' => [ [ 'text' => "<spoiler title=\"Заголовок\">Скрытый текст</spoiler>", 'insert' => '<spoiler title=""></spoiler>' ] ], 'def' => 'Спойлер с особым заголовком' ]
|
||
]}
|
||
</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 ],
|
||
[ 'tags' => [ [ 'text' => "<abbr title=\"Расшифровка\">Сокращение</abbr>", 'insert' => '<abbr></abbr>' ] ], 'def' => 'Расшифровка сокращений' ]
|
||
]}
|
||
</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 ],
|
||
[ 'tags' => [ [ 'text' => "<iframe allowfullscreen=\"true\"></iframe>", 'insert' => '<iframe></iframe>' ] ], 'def' => 'Вставка игр (только с разрешённых сайтов: Itch.io, GameJolt.net, Philome.la)' ]
|
||
]}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|