core/skin/virtual-nt.ru/inc/page.html

117 lines
6.9 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{* если id равно 1 (главная страница) *} {if ($page[0].id==1)} {include file=$header title="{$page[0].title}" keywords="{$page[0].keywords}" description="{$page[0].description}"} {if ($global_settings.show_slider==1)}
<div class="container" id="load_slider"></div>
{/if} {* ОБЛОЖКА *} {if $page[0].oblozhka_show=='1' && $page[0].oblozhka_big}
<img src="/img/pages/{$page[0].oblozhka_big}.jpg" style="width: 100%;" title="{$page[0].title}" alt="{$page[0].title}"><br><br> {/if}
<div class="container">
{if ($global_settins==1)} {$page[0].txt|lazyload} {else} {$page[0].txt} {/if}
</div>
{*$page[0].txt}{*тест*} {* если стоит настройка показа новостей... *} {if ($global_settings.show_news_main_page==1)}
<hr>
<table class="table table-news">
{section name=customer loop=$list} {if $list[customer].id}
<tr>
<td style="width: 150px;">
<a href="/page/{$list[customer].id}">
{if $list[customer].oblozhka}
{if ($global_settings.lazyload==1)}{* если абонент хочет - будет ленивая загрузка *}
<img src="/img/grey.gif" data-original="/img/pages/{$list[customer].oblozhka}.jpg"
class="thumbnail lazy" style="width:100%;" alt='{$list[customer].title}'>
{else}
<img src="/img/pages/{$list[customer].oblozhka}.jpg" class="thumbnail" style="width:100%;">
{/if}
{else}
<img src="/api/img/gray/png/no_image.png" class="thumbnail" style="width:100%;">
{/if}
</a></td>
<td style="padding: 10px;vertical-align:top;text-align: justify;">
<h5>{$list[customer].title}</h5>
{$list[customer].txt|substr:200}
<p><a href="/page/{$list[customer].id}">Подробнее</a><br><small>{$list[customer].dd}</small></p>
</td>
</tr>
{/if} {/section}
</table>
<small style="color: gray;" class="text-right"><a href="/news/">Все новости</a></small>
<hr> {/if} {* если страница не главня - то все как обычно *} {else} {include file=$header title="{$page[0].title}" h1="{$page[0].title}" keywords="{$page[0].keywords}" description="{$page[0].description}"} {if $page[0].oblozhka_show=='1' && $page[0].oblozhka_big}
<div class="container">
<img src="/img/pages/{$page[0].oblozhka_big}.jpg" style="width: 100%;" title="{$page[0].title}" alt="{$page[0].title}"><br><br> {/if} {* Картинки *}
</div>
<div class="lggal">
{if ($page[0].img1)}{* убрать индусский код *}
<a href="/img/pages/{$page[0].img1}.jpg" rel="lightgallery[flowers]">
<img src="/img/pages/{$page[0].img1}_min.jpg" alt="{$page[0].title}">
</a>
{/if} {if ($page[0].img2)}
<a href="/img/pages/{$page[0].img2}.jpg" rel="lightgallery[flowers]">
<img src="/img/pages/{$page[0].img2}_min.jpg" alt="{$page[0].title}">
</a>
{/if} {if ($page[0].img3)}
<a href="/img/pages/{$page[0].img3}.jpg" rel="lightgallery[flowers]">
<img src="/img/pages/{$page[0].img3}_min.jpg" alt="{$page[0].title}">
</a>
{/if} {if ($page[0].img4)}
<a href="/img/pages/{$page[0].img4}.jpg" rel="lightgallery[flowers]">
<img src="/img/pages/{$page[0].img4}_min.jpg" alt="{$page[0].title}">
</a>
{/if} {* картинки из таблы картинок *} {section name=customer loop=$img} {if $img[customer].id}
<a href="/img/pages/{$img[customer].img}.jpg" rel="lightgallery[flowers]">
<img src="/img/pages/{$img[customer].img}_270_200.jpg" alt="{$page[0].title}" style="width:270px;200px; margin-top:5px;">
</a>
{/if} {/section}
</div>
<div class="clear"></div>
<article class="container">
{if ($global_settings.h1_page==1)}
<h1 class="text-center">{$page[0].title}</h1>
{/if} {if ($global_settins==1)} {$page[0].txt|lazyload} {else} {$page[0].txt} {/if} {/if}
</article>
{* внешние ссылки *} {* Яндекс-диск *} {if ($page[0].link_yandex_disk)}
<table style="width: 100%;">
<tbody>
<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;"><strong><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></strong></td>
</tr>
</tbody>
</table>
{/if} {* Свое облако *} {if ($page[0].link_my_disk)}
<table style="width: 100%;">
<tbody>
<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;"><strong><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></strong></td>
</tr>
</tbody>
</table>
{/if} {if $page[0].sbor_deneg==1}
<div class="container">
{$sbor_deneg} {$sbor_deneg_txt}
</div>
{/if} {if ($page[0].show_soc_btn==1)}
<br><b>Понравилась статья? Поделитесь с друзьями:</b><br>
<script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" async="async"></script>
<script src="//yastatic.net/share2/share.js" async="async"></script>
<div class="ya-share2" data-services="collections,vkontakte,facebook,odnoklassniki,moimir,gplus" data-counter="" {if $page[0].oblozhka_show=='1' && $page[0].oblozhka_big} data-image="/img/pages/{$page[0].oblozhka_big}.jpg" {/if} data-title="{$page[0].title}"
data-description="{$page[0].description}"></div>
{/if} {if ($page[0].comments==1)} {if ($smarty.session.user_id)}
<hr>
<b>Оставить коментарий:</b><br>
<form action="/act/page" method="post" id="form_add_comment">
<input type="hidden" name="pages_id" value="{$page[0].id}">
<input type="hidden" name="act" value="add_comment">
<textarea style="height: 150px;" name="txt" id="textarea_txt"></textarea>
<input type="submit" name="ok" value="Добавить">
</form>
<div id="list_comments">
</div>
{/if} {/if} {include file=$footer plugins="
<script src='/api/jquery/plugins/lg/lightgallery.min.js'></script>
<link href='/api/jquery/plugins/lg/style.css' rel='stylesheet' type='text/css'>"}