<?php
/* Smarty version 4.5.2, created on 2024-05-10 12:11:20
  from '/Users/nikolaimv/Sites/yzb.loc/admin/templates/components/image-preview.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_663dc8985064c7_03680641',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '44ff7d69f90ee83f23481a60198fe4eb46c9d2bf' => 
    array (
      0 => '/Users/nikolaimv/Sites/yzb.loc/admin/templates/components/image-preview.tpl',
      1 => 1710480036,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_663dc8985064c7_03680641 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="card border shadow-sm"><div class="card-header d-flex flex-wrap"><h6 class="mb-0">Основное изображение</h6><div class="d-inline-flex ms-auto"><a class="text-body" data-card-action="collapse"><i class="ph-caret-down"></i></a></div></div><div class="collapse show"><div class="content-image content-image-preview" id="content-image-preview"><?php if (!empty($_smarty_tpl->tpl_vars['image']->value)) {?><div class="card-img-actions"><img class="img-fluid" src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['image']->value, ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
"><div class="card-img-actions-overlay"><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['image']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="btn btn-outline-white border-width-2" data-popup="lightbox">Просмотр</a></div></div><?php }?></div><div id="preview-image-footer" class="preview-image-footer card-footer d-sm-flex justify-content-sm-between align-items-sm-center"><button id="content-image-preview-add" type="button" class="btn btn-sm btn-primary btn-upload read-more" data-type="image" data-path="/" data-action="read_more"><i class="ph-image me-2"></i><?php if (empty($_smarty_tpl->tpl_vars['id']->value)) {?>Загрузить файл<?php } else { ?>Заменить файл<?php }?></button><?php if (!empty($_smarty_tpl->tpl_vars['id']->value)) {?><button id="content-image-preview-remove" type="button" class="btn btn-sm btn-danger" onclick="deletePreviewImage('<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
', '<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['module']->value, ENT_QUOTES, 'UTF-8', true);?>
');"><i class="ph-trash me-2"></i>Удалить</button><?php }?></div></div></div><?php }
}
