<?php
/* Smarty version 4.5.3, created on 2025-04-23 11:38:25
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/components/images.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_6808a70196f4d0_41151677',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '918c7230e34cd0fa05579a59d03c7b3b557db74b' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/components/images.tpl',
      1 => 1745397501,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6808a70196f4d0_41151677 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/w/wmaster77/corp.site-77.ru/public_html/modules/smarty/plugins/modifier.count.php','function'=>'smarty_modifier_count',),));
?>
<div class="nk-block js-component-images">
    <div class="nk-block-head">
        <h5 class="title">Изображения</h5>
        <p>Вы можете загрузить несколько изображений и использовать их в шаблоне.</p>
    </div>
    <div class="gy-3">

                <div class="row">
            <div class="col-12">
                <div class="drop-zone-block">
                    <div class="js-drop-zone">
                        <div class="drop-message">Перетащите файлы сюда или просто нажмите, чтобы выбрать файлы.</div>
                        <input type="file" name="dropped_images[]" multiple class="js-drop-input">
                    </div>
                </div>
            </div>
        </div>

                <div class="nk-files nk-files-view-grid">
            <div class="nk-files-list js-images-list <?php if (smarty_modifier_count($_smarty_tpl->tpl_vars['images']->value) > 1) {?>js-images-sortable<?php }?>">

                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['images']->value, 'image');
$_smarty_tpl->tpl_vars['image']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['image']->value) {
$_smarty_tpl->tpl_vars['image']->do_else = false;
?>
                <div class="nk-file-item nk-file js-image-item">

                    <input type="hidden" name="images[]" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->id;?>
">

                    <div class="nk-file-info">
                        <div class="nk-file-link">
                            <div class="nk-file-title">

                                                                <div class="nk-file-icon">
                                    <a href="<?php echo $_smarty_tpl->tpl_vars['image']->value->filepath;?>
" data-fancybox="gallery">
                                        <img src="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'resize' ][ 0 ], array( $_smarty_tpl->tpl_vars['image']->value,450,450 ));?>
" class="h-max-150px">
                                    </a>
                                </div>

                                                                <div class="nk-file-name">
                                    <div class="nk-file-name-text">
                                        <div class="title"><?php echo $_smarty_tpl->tpl_vars['image']->value->filename;?>
</div>
                                    </div>
                                </div>
                            </div>

                                                        <ul class="nk-file-desc">
                                <?php if ($_smarty_tpl->tpl_vars['image']->value->width && $_smarty_tpl->tpl_vars['image']->value->height) {?>
                                <li class="image-size">
                                    <?php echo $_smarty_tpl->tpl_vars['image']->value->width;?>
x<?php echo $_smarty_tpl->tpl_vars['image']->value->height;?>
px
                                </li>
                                <?php }?>
                                <li class="file-size">
                                    <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'size' ][ 0 ], array( $_smarty_tpl->tpl_vars['image']->value->filesize ));?>

                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="nk-file-actions hideable">
                        <ul class="gy-2">
                                                        <li>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['config']->value->root_url;?>
/<?php echo $_smarty_tpl->tpl_vars['image']->value->filepath;?>
" class="btn btn-trigger btn-icon js-clipboard-copy" data-toggle="tooltip" data-placement="top" title="Копировать">
                                    <em class="icon ti ti-copy"></em>
                                </a>
                            </li>

                                                        <li>
                                <div class="btn btn-sm btn-icon btn-trigger js-image-move" data-toggle="tooltip" data-placement="top" title="Переместить">
                                    <em class="icon ti ti-arrows-horizontal"></em>
                                </div>
                            </li>

                                                        <li>
                                <div class="btn btn-sm btn-icon btn-trigger text-danger js-image-delete" data-toggle="tooltip" data-placement="top" title="Удалить">
                                    <em class="icon ti ti-trash"></em>
                                </div>
                            </li>

                        </ul>
                    </div>

                </div>
                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

            </div>
        </div>
    </div>
</div>

<div class="justify-center mt-2">
    <button type="submit" class="btn btn-success">Сохранить</button>
</div>
<?php }
}
