add public design files
This commit is contained in:
148
design/atomic/html/actions_post.tpl
Normal file
148
design/atomic/html/actions_post.tpl
Normal file
@@ -0,0 +1,148 @@
|
||||
{* Страница отдельной записи блога *}
|
||||
<!-- Хлебные крошки /-->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
<li><a href="/actions/">Акции</a></li>
|
||||
<li>{$post->name|escape}</li>
|
||||
</ul>
|
||||
<!-- Хлебные крошки #End /-->
|
||||
<!-- Заголовок /-->
|
||||
<h1 data-act="{$post->id}">{$post->name|escape}</h1>
|
||||
<p class="action-page-date">{$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}" alt="{$post->name|escape}" /></a>
|
||||
</div>
|
||||
{/if*}
|
||||
|
||||
{$post->text}
|
||||
|
||||
<!-- Соседние записи /-->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{foreach from=$action_photos item=ph}
|
||||
<div class="col-sm-4 col-xs-12" style="padding-bottom:20px;">
|
||||
<a class="fancybox" data-rel="details" href="{$ph->bigImage}" rel="details">
|
||||
<img class="img-thumbnail w" src="{$ph->image}" style="width:100%">
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{if $action_photos || $prev_post || $next_post}<div class="clearfix"></div><hr />{/if}
|
||||
|
||||
|
||||
|
||||
<div id="back_forward" class="row">
|
||||
<div class="col-sm-6">
|
||||
{if $prev_post}
|
||||
|
||||
<a class="back" id="PrevLink" href="/actions/{$prev_post->url}/">
|
||||
<img src="{$prev_post->image}" alt=""><br />
|
||||
← {$prev_post->name}
|
||||
</a>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
{if $next_post}
|
||||
<div class="col-sm-6" style="text-align:right;">
|
||||
<a class="forward" id="NextLink" href="/actions/{$next_post->url}/">
|
||||
<img src="{$next_post->image}" alt=""><br />
|
||||
{$next_post->name}
|
||||
</a> →
|
||||
</div>
|
||||
{/if}
|
||||
</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" language="JavaScript" type="text/javascript"></script>
|
||||
<script src="/js/baloon/js/validate.js" language="JavaScript" type="text/javascript"></script>
|
||||
<script src="/js/baloon/js/baloon.js" language="JavaScript" type="text/javascript"></script>
|
||||
<link href="/js/baloon/css/baloon.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
<span class="well">
|
||||
<form class="comment_form form-horizontal" method="post" role="form">
|
||||
<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_textarea" 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>
|
||||
<span class="form-group">
|
||||
<span class="col-sm-2"><p class="captcha"><img src="captcha/image.php?{math equation='rand(10,10000)'}" alt=""/></p></span>
|
||||
<span class="col-sm-2"><input class="input_captcha form-control" id="comment_captcha" type="text" name="captcha_code" value="" format="\d\d\d\d" data-notice="Введите капчу"/></span>
|
||||
</span>
|
||||
<input class="btn btn-danger pull-right" type="submit" name="comment" value="Отправить">
|
||||
</form>
|
||||
</span>
|
||||
<!--Форма отправления комментария (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}
|
||||
Reference in New Issue
Block a user