Files
AtomicOld/design/atomic/html/post.tpl
2026-02-15 18:29:53 +03:00

173 lines
7.0 KiB
Smarty
Raw Permalink 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.
{* Страница отдельной записи блога *}
<!-- Хлебные крошки /-->
<ul class="breadcrumb">
<li><a href="/">Главная</a></li>
<li><a href="/{$page->url}/">{$page->name|escape}</a></li>
<li>{$post->name|escape}</li>
</ul>
<!-- Хлебные крошки #End /-->
<!-- Заголовок /-->
<h1 data-post="{$post->id}">{$post->name|escape}</h1>
<p>{$post->date|date|date_format:"%e %m %Y":"":"rus"}</p>
<!-- Тело поста /-->
{*if $post->image}
<div class="pull-right" style="margin: 0px 0px 15px 15px">
<a href="{$post->image|resizepost:1000:1000}" class="zoom w" data-rel="group"><img class="img-thumbnail" src="{$post->image|resizepost:380:380}" title="{$post->name|escape}" alt="{$post->name|escape}" /></a>
</div>
{/if*}
{*$post->text*}
{images_resize content=$post->text}
<!-- Соседние записи **/-->
{*
<div id="back_forward">
{if $prev_post}
←&nbsp;<a class="back" id="PrevLink" href="/tehinfo/{$prev_post->url}/">{$prev_post->name}</a>
{/if}
{if $next_post}
<a class="forward" id="NextLink" href="/tehinfo/{$next_post->url}/">{$next_post->name}</a>&nbsp;→
{/if}
</div>
*}
<div id="back_forward" style="margin-left: 0;" class="row">
<div class="col-sm-6">
{if $prev_post}
{*<a class="prev-strelka" href="/catalog/reshetki-radiatora/tovar-1217.html"><span class="fa fa-chevron-left"></span></a>*}
<div class="prev-next-title"><a href="/tehinfo/{$prev_post->url}/">←&nbsp;{$prev_post->name}</a></div>
<div style="float: none;" class="cell">
<a href="/tehinfo/{$prev_post->url}/">
<div class="wrap-pic2" style="width: 200px; height: 120px; overflow: hidden; float: left; border: 6px solid rgb(39, 39, 39); margin: 0px 5px 5px 0px;">
<img src="{$prev_post->image|resizepost:200:140}" alt="Решетка радиатора (4 поперечины)" style="width: 200px; margin-top: -9.5px; display: inline-block;">
</div>
</a>
</div>
{/if}
</div>
<div style="text-align: right;" class="col-sm-6">
{if $next_post}
<div class="prev-next-title"><a href="/tehinfo/{$next_post->url}/">{$next_post->name}&nbsp;→</a></div>
{*<a class="next-strelka" href="/catalog/reshetki-radiatora/tovar-3004.html"><span class="fa fa-chevron-right"></span></a>*}
<div style="float: none;display: inline-block;" class="cell">
<a href="/tehinfo/{$next_post->url}/">
<div class="wrap-pic2" style="width: 200px; height: 120px; overflow: hidden; float: left; border: 6px solid rgb(39, 39, 39); margin: 0px 5px 5px 0px;">
<img src="{$next_post->image|resizepost:200:140}" alt="Решетка радиатора Audi A4 B8 '07-11 с рамкой под номер, черная" style="width: 200px; margin-top: -3.5px; display: inline-block;">
</div>
</a>
</div>
{/if}
</div>
</div>
<h2>Получить консультацию</h2>
<div class="well">
<form class="comment_form2 form-horizontal" id="call_form" method="post" onsubmit="sendCallback();return false;">
<span class="form-group">
<label for="c_name" class="col-sm-2 control-label">Имя</label>
<span class="col-sm-10"><input class="input_name form-control" type="text" id="c_name" name="name" /></span>
</span>
<span class="form-group">
<label for="c_tel" class="col-sm-2 control-label">Телефон</label>
<span class="col-sm-10"><input class="input_name form-control" type="text" id="c_tel" name="tel" /></span>
</span>
<div style="margin-top:10px">
<input class="btn btn-danger pull-right" type="submit" id="c_submit" value="Отправить">
</div>
<input type="hidden" id="c_tema" value="{$post->name|escape}">
</form>
</div>
<!-- Комментарии -->
<div id="comments">
<h2>Комментарии</h2>
{if $comments}
<!-- Список с комментариями -->
<ul class="comment_list">
{foreach $comments as $comment}
<a name="comment_{$comment->id}"></a>
<li>
<!-- Имя и дата комментария-->
<div class="comment_header">
{$comment->name|escape} <i>{$comment->date|date}, {$comment->date|time}</i>
{if !$comment->approved}ожидает модерации</b>{/if}
</div>
<!-- Имя и дата комментария (The End)-->
<!-- Комментарий -->
{$comment->text|escape|nl2br}
<!-- Комментарий (The End)-->
</li>
{/foreach}
</ul>
<!-- Список с комментариями (The End)-->
{else}
<p>
Пока нет комментариев
</p>
{/if}
<!--Форма отправления комментария-->
<!--Подключаем js-проверку формы -->
<script src="/js/baloon/js/default.js" type="text/javascript"></script>
<script src="/js/baloon/js/validate.js" type="text/javascript"></script>
<script src="/js/baloon/js/baloon.js" type="text/javascript"></script>
<link href="/js/baloon/css/baloon.css" rel="stylesheet" type="text/css" />
<div class="well">
<form class="comment_form form-horizontal" method="post">
<span class="h22">Написать комментарий</span>
{if $error}
<div class="message_error">
{if $error=='captcha'}
Неверно введена капча
{elseif $error=='empty_name'}
Введите имя
{elseif $error=='empty_comment'}
Введите комментарий
{/if}
</div>
{/if}
<span class="form-group">
<label for="comment_text" class="col-sm-2 control-label">Комментарий</label>
<span class="col-sm-10"><textarea class="comment_textarea form-control" id="comment_text" name="text" data-format=".+" data-notice="Введите комментарий">{$comment_text}</textarea></span>
</span>
<span class="form-group">
<label for="comment_name" class="col-sm-2 control-label">Имя</label>
<span class="col-sm-10"><input class="input_name form-control" type="text" id="comment_name" name="name" value="{$comment_name}" data-format=".+" data-notice="Введите имя"/></span>
</span>
<div class="form-group">
<div class="col-sm-2"><p class="captcha"><img alt="" src="captcha/image.php?{math equation='rand(10,10000)'}" alt=""/></p></div>
<span class="col-sm-2"><input class="input_captcha form-control" id="comment_captcha" type="text" name="captcha_code" value="" data-format="\d\d\d\d" data-notice="Введите капчу"/></span>
</div>
<input class="btn btn-danger pull-right" type="submit" name="comment" value="Отправить">
</form>
</div>
<!--Форма отправления комментария (The End)-->
</div>
<!-- Комментарии (The End) -->
{* Скрипт для листания через ctrl → *}
{* Ссылки на соседние страницы должны иметь id PrevLink и NextLink *}
<script type="text/javascript" src="js/ctrlnavigate.js"></script>
{literal}
<script>
$(function() {
$("a.zoom").fancybox({ 'hideOnContentClick' : true });
$(".content img").addClass( 'img-thumbnail w' );
});
</script>
{/literal}