core/api/modules/page/index.html

68 lines
4.1 KiB
HTML
Raw Normal View History

2022-12-11 13:55:49 +05:00
{include file=$header title="{$page[0].title}" h1="{$page[0].title}" keywords="{$page[0].keywords}" description="{$page[0].description}"}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Главная</a></li>
{section name=customer loop=$breadcrumb}{if ($breadcrumb[customer].parent != 0)}
<li class="breadcrumb-item"><a href="/cat/{$breadcrumb[customer].id}">{$breadcrumb[customer].title}</a></li>
{/if}{/section}
<li class="breadcrumb-item active" aria-current="page">{$page[0].title}</li>
</ol>
</nav>
<!-- ********************* -->
<article class="container mt-2 mb-2">
{if $page[0].user_id==$smarty.session.user_id}
<input type="text" placeholder="Заголовок страницы" class="h1-edit hidden form-control" value="{$page[0].title}" style="margin: 0 auto;" title="Двойной клик - сохранит" required> {/if}
<h1>{$page[0].title}</h1>
{if $page[0].oblozhka_show=='1' && $page[0].oblozhka_big}
<img src="/api/img/gray/gif/gray.gif" data-original="/img/pages/{$page[0].oblozhka_big}.jpg" class="lazy" style="width: 100%;" title="{$page[0].title}" alt="{$page[0].title}"><br><br> {/if} {if ($global_settings.h1_page==1)}
<h1 class="text-center" style="margin-top: -20px;">{$page[0].title}</h1>
{/if} {$page[0].txt}
</article>
<!-- ********************* -->
{*include file='api/modules/page/page_info.html'*}
<!-- ********************* -->
{if $page[0].user_id==$smarty.session.user_id}
<div id="drop-area" class="container mt-2">
<form class="my-form">
<p>Загрузите дополнительные изображения</p>
<input type="file" id="fileElem" multiple accept="image/*" onchange="handleFiles(this.files)">
<label class="button" for="fileElem">Выбрать файлы</label>
</form>
<progress id="progress-bar" max=100 value=0></progress>
<div id="gallery"></div>
</div>
<!-- div class="note"><strong>Note: I've Removed the ability to actually upload files (it will error out silently since there is no error handler, so it'll still appear to work) because you guys were constantly filling up my Cloudinary account. Please <a href="https://cloudinary.com/invites/lpov9zyyucivvxsnalc5/j6iiupngdmwwwqspjtml">create your own account</a> and replace the "joezim007" and "ujpu6gyk" bits in the JavaScript with your own account's information.</strong></div -->
{/if}
<!-- ********************* -->
{* внешние ссылки *} {* Яндекс-диск *} {if ($page[0].link_yandex_disk)}
<table style="width: 100%;">
<tr>
<td style="width: 141px;">
<a href="{$page[0].link_yandex_disk}" title="{$page[0].link_yandex_disk_txt}" target="_blank" rel="nofollow"><img src="/api/img/oblaka/yadisk.jpg" width="141" height="141" title="{$page[0].link_yandex_disk_txt}" alt="{$page[0].link_yandex_disk_txt}" /></a>
</td>
<td style="vertical-align: middle;">
<b>
<a title="{$page[0].link_yandex_disk_txt}" href="{$page[0].link_yandex_disk}" target="_blank" rel="nofollow">{$page[0].link_yandex_disk_txt}</a>
</b>
</td>
</tr>
</table>
{/if} {* Свое облако *} {if ($page[0].link_my_disk)}
<table style="width: 100%;">
<tr>
<td style="width: 141px;">
<a href="{$page[0].link_my_disk}" title="{$page[0].link_my_disk_txt}" target="_blank" rel="nofollow"><img src="/api/img/oblaka/cloud141x141.png" width="141" height="141" title="{$page[0].link_my_disk_txt}" alt="{$page[0].link_my_disk_txt}" /></a>
</td>
<td style="vertical-align: middle;">
<b><a title="{$page[0].link_my_disk_txt}" href="{$page[0].link_my_disk}" target="_blank" rel="nofollow">{$page[0].link_my_disk_txt}</a></b>
</td>
</tr>
</table>
{/if}
{* ---- Проверяем, нужны ли социальные кнопки 14.11.2020 ---- *}
{include file=$footer plugins="<script src='/api/modules/page/mod.js'></script>"}