<?php
/* Smarty version 4.5.3, created on 2024-10-07 22:05:29
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/components/annotation-body.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_670430f96982c5_02462312',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '1ebd08383805f06de065275286fc9e3f3de815b5' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/components/annotation-body.tpl',
      1 => 1716650267,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_670430f96982c5_02462312 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="form-group">
    <label class="form-label" for="annotation">Краткое описание</label>
    <div class="form-control-wrap">
        <textarea name="annotation" id="annotation" class="form-control"><?php echo $_smarty_tpl->tpl_vars['item']->value->annotation;?>
</textarea>
    </div>
    <span class="form-note">Отображается в списке.</span>
</div>

<div class="form-group">
    <label class="form-label" for="description">Полное описание </label>

    <?php if ($_COOKIE['editor'] == 'codemirror') {?>
    <small>(F11 - полноэкранный режим)</small>
    <a class="btn btn-primary change-editor" data-editor="tinymce" style="position:absolute;top:-5px;right:0;" href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>$_smarty_tpl->tpl_vars['type']->value,'id'=>$_smarty_tpl->tpl_vars['item']->value->id),$_smarty_tpl ) );?>
">
        Переключиться на визуальный редактор
    </a>
    <textarea name="body" style="height:800px;" class="htmltext form-control"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['item']->value->body, ENT_QUOTES, 'UTF-8', true);?>
</textarea>
    <?php } else { ?>
    <a class="btn btn-primary change-editor" data-editor="codemirror" style="position:absolute;top:-5px;right:0;" href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>$_smarty_tpl->tpl_vars['type']->value,'id'=>$_smarty_tpl->tpl_vars['item']->value->id),$_smarty_tpl ) );?>
">
        Переключиться на текстовый редактор
    </a>
    <div class="form-group js-tinymce6-component">
        <textarea name="body" class="form-control tinymce">
            <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['item']->value->body, ENT_QUOTES, 'UTF-8', true);?>

        </textarea>
    </div>
    <?php }?>

    <span class="form-note">Отображается на детальной странице.</span>
</div>
<?php }
}
