add public design files
This commit is contained in:
2
design/atomic/html/.htaccess
Normal file
2
design/atomic/html/.htaccess
Normal file
@@ -0,0 +1,2 @@
|
||||
order deny,allow
|
||||
deny from all
|
||||
50
design/atomic/html/actions.tpl
Normal file
50
design/atomic/html/actions.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{* Список записей блога *}
|
||||
<!-- Хлебные крошки /-->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
<li>{$page->name}</li>
|
||||
</ul>
|
||||
<!-- Хлебные крошки #End /-->
|
||||
<!-- Заголовок /-->
|
||||
<h1>{$page->header}</h1>
|
||||
{$page->body}
|
||||
{include file='pagination.tpl'}
|
||||
|
||||
{*
|
||||
<!-- Статьи /-->
|
||||
<div class="blog">
|
||||
{foreach $posts as $post}
|
||||
<div class="col-sm-12">
|
||||
<div class="blog-article">
|
||||
{if $post->image}<div class="blog-image"><a href="/actions/{$post->url}/" class="w"><img class="img-thumbnail" src="{$post->image|resizepost:100:100}" title="{$post->name|escape}" alt="{$post->name|escape}" id="blogimg"/></a></div>{/if}
|
||||
<div class="blog-title"><span class="badge">{$post->date|date|date_format:"%e %m %Y":"":"rus"}</span> <a data-act="{$post->id}" href="/actions/{$post->url}/">{$post->name|escape}</a></div>
|
||||
<div class="blog-annotation">{$post->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>*}
|
||||
<!-- Статьи #End /-->
|
||||
|
||||
|
||||
|
||||
<div class="row actions">
|
||||
{foreach $posts as $post}
|
||||
|
||||
<div class="service-unit action-item col-sm-3">
|
||||
<div class="service-box"><span class="badge d-none">{$post->date|date|date_format:"%e %m %Y":"":"rus"}</span>
|
||||
<a href="/actions/{$post->url}/" class="tumb">
|
||||
{if $post->image}
|
||||
<img src="{$post->image|resizepage:262:230:0:1}" title="{$post->name|escape}" alt="{$post->name|escape}" >
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" alt="{$post->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
<a class="service-name" href="/actions/{$post->url}/">{$post->name|escape}</a><div class="blog-annotation">{$post->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
|
||||
{include file='pagination.tpl'}
|
||||
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}
|
||||
41
design/atomic/html/advantage.tpl
Normal file
41
design/atomic/html/advantage.tpl
Normal file
File diff suppressed because one or more lines are too long
16
design/atomic/html/ajax_order.tpl
Normal file
16
design/atomic/html/ajax_order.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="dialog">
|
||||
{if $result}
|
||||
<h3 class="header" style="color:#000;">Заявка на предзаказ оформлена</h3>
|
||||
<p>Как только товар будет в наличии, менеджер магазина свяжется с Вами.</p>
|
||||
{else}
|
||||
<h3 class="header">Ошибка</h3>
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error == 'empty_name'}Введите Имя{/if}
|
||||
{if $error == 'empty_name2'}Введите Фамилию{/if}
|
||||
{if $error == 'empty_email'}Введите email{/if}
|
||||
{if $error == 'empty_phone'}Введите Телефон{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
6
design/atomic/html/ajax_price.tpl
Normal file
6
design/atomic/html/ajax_price.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
<div id="deliveries">
|
||||
<p>Конечная сумма доставки: <span class="delivprice">{$data->rsp->price} руб</span>. <br />
|
||||
Срок доставки составляет от {$data->rsp->term->min} до {$data->rsp->term->max} дней.</p>
|
||||
<input type="hidden" name="delivery_price" value="{$data->rsp->price}" />
|
||||
<p> </p>
|
||||
</div>
|
||||
199
design/atomic/html/article.tpl
Normal file
199
design/atomic/html/article.tpl
Normal file
@@ -0,0 +1,199 @@
|
||||
{* Страница отдельной записи блога *}
|
||||
|
||||
<!-- Хлебные крошки /-->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
<li><a href="/nashi-raboty/">Примеры работ</a></li>
|
||||
{foreach from=$article->category->path item=cat}
|
||||
<li><a href="/articles/{$cat->url}/">{$cat->name|escape}</a></li>
|
||||
{/foreach}
|
||||
<li>{$article->name|escape}</li>
|
||||
</ul>
|
||||
<!-- Хлебные крошки #End /-->
|
||||
|
||||
<!-- Заголовок /-->
|
||||
<h1>{$article->name|escape}</h1>
|
||||
<div class="row">
|
||||
<div class="col-sm-2 a-date">{$article->date|date|date_format:"%e %m %Y":"":"rus"}</div>
|
||||
|
||||
<div class="col-sm-10" style="text-align: right;">
|
||||
<button class="btn ask-a-zakaz big-btn" data-href="#service_form"><i class="fa fa-pencil-square" aria-hidden="true"></i> Заказать такую же работу</button>
|
||||
</div>
|
||||
</div>
|
||||
{*}
|
||||
{if $article->image}<a href="{$article->image|resizepost:800:800}" class="fancybox" data-rel="details"><img class="img-thumbnail" src="{$article->image|resizepost:100:100}" alt="{$article->name|escape}" /></a>{/if}
|
||||
|
||||
*}
|
||||
|
||||
<!-- Тело поста / -->
|
||||
{images_resize content=$article->text}
|
||||
<!-- / Тело поста -->
|
||||
|
||||
<!-- Соседние записи /-->
|
||||
{*
|
||||
<div id="back_forward">
|
||||
{if $prev_article}
|
||||
← <a class="back" id="PrevLink" href="/article/{$prev_article->url}/">{$prev_article->name}</a>
|
||||
{/if}
|
||||
{if $next_article}
|
||||
<a class="forward" id="NextLink" href="/article/{$next_article->url}/">{$next_article->name}</a> →
|
||||
{/if}
|
||||
</div>*}
|
||||
|
||||
{if $related_products}
|
||||
<h2>Связанные товары</h2>
|
||||
<ul>
|
||||
{foreach $related_products as $p}
|
||||
<li><a href="/products/{$p->url}/">{$p->name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<br/>
|
||||
|
||||
{/if}
|
||||
<br/>
|
||||
|
||||
{if $related_articles}
|
||||
<h2>Также советуем посмотреть</h2>
|
||||
<ul>
|
||||
{foreach $related_articles as $a}
|
||||
<li>
|
||||
{if $a->image}<a href="/article/{$a->url}/" class="w"><img class="img-thumbnail" src="{$a->image|resizepost:100:100}" title="{$a->name|escape}" alt="{$a->name|escape}" /></a>{/if}
|
||||
<a href="/article/{$a->url}/">{$a->name}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="row article-photos-block">
|
||||
{foreach from=$article_photos item=ph key=k}
|
||||
<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%" title="{$article->name|escape} - фото {$k + 1}" alt="{$article->name|escape} - фото {$k + 1}">
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{if $article_photos}<div class="clearfix"></div>{/if}
|
||||
<p>Количество просмотров: {$article->visited}</p> <div style="height:30px"><hr></div>
|
||||
<div id="back_forward" style="margin-left: 0;" class="row">
|
||||
<div class="col-sm-6">
|
||||
{if $prev_article}
|
||||
{*<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="/nashi-raboty/{$prev_article->url}/">← {$prev_article->name}</a></div>
|
||||
<div style="float: none;" class="cell">
|
||||
<a href="/nashi-raboty/{$prev_article->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_article->image|resizepost:200:140}" alt="" 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_article}
|
||||
<div style="float:left" class="prev-next-title"><a href="/nashi-raboty/{$next_article->url}/">{$next_article->name} →</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="/nashi-raboty/{$next_article->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_article->image|resizepost:200:140}" alt="" style="width: 200px; margin-top: -3.5px; display: inline-block;">
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Комментарии -->
|
||||
<div id="comments">
|
||||
|
||||
<h2>Комментарии</h2>
|
||||
|
||||
{if $comments}
|
||||
<!-- Список с комментариями -->
|
||||
<ul class="comment_list">
|
||||
{foreach $comments as $comment}
|
||||
|
||||
<li> <a name="comment_{$comment->id}"></a>
|
||||
<!-- Имя и дата комментария-->
|
||||
<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-проверку формы -->
|
||||
|
||||
<div class="title">Написать комментарий</div>
|
||||
<div class="well">
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponsefelback');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<form class="form-horizontal comment_form" method="post" action="{$smarty.server.REQUEST_URI}">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error=='captcha'}
|
||||
Неверно введена капча
|
||||
{elseif $error=='empty_name'}
|
||||
Введите имя
|
||||
{elseif $error=='empty_comment'}
|
||||
Введите комментарий
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_name">Комментарий</label>
|
||||
<div class="col-sm-10"><textarea class="comment_textarea form-control" id="comment_text" name="text" data-format=".+" data-notice="Введите комментарий">{$comment_text}</textarea></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_name">Имя</label>
|
||||
<div class="col-sm-10"><input class="input_name form-control" type="text" id="comment_name" name="name" value="{$comment_name}" data-format=".+" data-notice="Введите имя"/></div>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponsefelback">
|
||||
<input class="btn btn-danger pull-right" type="submit" name="comment" value="Отправить" />
|
||||
<input type="text" name="email" id="h_email">
|
||||
</form>
|
||||
</div>
|
||||
<!--Форма отправления комментария (The End)-->
|
||||
|
||||
</div>
|
||||
|
||||
{include file='forms/service.tpl'}
|
||||
<!-- Комментарии (The End) -->
|
||||
|
||||
{* Скрипт для листания через ctrl → *}
|
||||
{* Ссылки на соседние страницы должны иметь id PrevLink и NextLink *}
|
||||
<script type="text/javascript" src="js/ctrlnavigate.js"></script>
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
$("a.zoom").fancybox({ 'hideOnContentClick' : true });
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
157
design/atomic/html/articles.tpl
Normal file
157
design/atomic/html/articles.tpl
Normal file
@@ -0,0 +1,157 @@
|
||||
{* Список записей блога *}
|
||||
<!-- Хлебные крошки /-->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
{if $article_category}
|
||||
{foreach from=$article_category->path item=cat}
|
||||
{if $cat->id == 3} <li><a href="/nashi-raboty/">{$cat->name|escape}</a></li>
|
||||
{else} <li><a href="/nashi-raboty/{$cat->url}/">{$cat->name|escape}</a></li>
|
||||
{/if}
|
||||
|
||||
|
||||
{/foreach}
|
||||
{elseif $keyword}
|
||||
<li>Поиск</li>
|
||||
{/if}
|
||||
</ul>
|
||||
<!-- Хлебные крошки #End /-->
|
||||
{if $article_category}<h1>{$article_category->name}</h1>{/if}
|
||||
|
||||
{*if in_array($article_category->id, array(3))}
|
||||
<div id="hideContactForm" class="hide">
|
||||
{include file='contact_form_inline.tpl'}
|
||||
</div>
|
||||
{/if*}
|
||||
|
||||
|
||||
|
||||
<!-- Тело /-->
|
||||
{images_resize content=$article_category->description}
|
||||
<!--/ Тело -->
|
||||
|
||||
{* Костыль для статей, которые как бренды *}
|
||||
{if $article_category->id == 3}
|
||||
|
||||
|
||||
{if $smarty.get.page < 2}{include file='articles_like_brands.tpl'}{/if}
|
||||
|
||||
{else}
|
||||
|
||||
{include file='articles_like_category.tpl'}
|
||||
{*if $article_category->id != 3}
|
||||
{include file='articles_like_category.tpl'}
|
||||
{/if*}
|
||||
|
||||
{/if}
|
||||
|
||||
<!-- {* Рекурсивная функция вывода дерева категорий *}
|
||||
{function name=article_categories_tree}
|
||||
{if $categories}
|
||||
<ul>
|
||||
{foreach $categories as $c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible}
|
||||
<li>
|
||||
<a {if $category->id == $c->id}class="selected"{/if} href="/articles/{$c->url}/">{$c->name}</a>
|
||||
{article_categories_tree categories=$c->subcategories}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
|
||||
|
||||
{if !$article_category}
|
||||
{get_article_categories var=article_categories}
|
||||
<div class="article_categories">
|
||||
{article_categories_tree categories=$article_categories}
|
||||
|
||||
</div>
|
||||
|
||||
{else} -->
|
||||
{*<h1>{$article_category->name}</h1>*}
|
||||
|
||||
<!--<div class="article_categories">
|
||||
{article_categories_tree categories=$article_category->subcategories}
|
||||
</div> -->
|
||||
|
||||
|
||||
{if $markas}
|
||||
<div class="brands row">
|
||||
{foreach from=$markas item=b key=k}
|
||||
{assign var=img value="`$config->marka_images_dir``$b->image`"}
|
||||
<div class="brand col-sm-2 col-xs-6 w12-5 {if $k > 7 && $service_filter}brand-hidden{/if}" data-style="width:12.5%">
|
||||
<div class="brand-image">
|
||||
{if $b->image}<a class="w" href="/{$config->worksUrl}/{$b->url}/">
|
||||
<img class="img-thumbnail" src="{$img|resizeImg:117:117}" alt="{$b->name}"></a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="brand-name"><a class="w" href="/{$config->worksUrl}/{$b->url}/" >{$b->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{if $k > 7 && $service_filter}<div class="brand-all-btn"><button class="btn btn-link" onclick="$('.brand-hidden').slideToggle()">Все марки</button></div>{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
{include file='service_filter.tpl'}
|
||||
|
||||
|
||||
{if $article_category->id == 3 && $smarty.get.page < 2}
|
||||
<h2 style="margin-bottom:40px;">Все работы{if $smarty.get.page > 1} - страница {$smarty.get.page}{/if}</h2>
|
||||
{/if}
|
||||
|
||||
<div style="text-align:right">{include file='pagination_articles.tpl'}</div>
|
||||
<!-- Статьи /-->
|
||||
<div>
|
||||
<div class="blog row">
|
||||
{foreach $articles as $a}
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
<div class="blog-article">
|
||||
<div class="blog-image">{if $a->image}<a href="/{$config->worksUrl}/{$a->url}/" class="w">
|
||||
<img class="img-thumbnail" src="{$a->image|resizepost:247:200}" alt="{$a->name|escape}" /></a>{/if}</div>
|
||||
<div class="blog-title"><a href="/{$config->worksUrl}/{$a->url}/">{$a->name|escape}</a></div>
|
||||
<div class="blog-annotation">{$a->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<!-- Статьи #End /-->
|
||||
</div>
|
||||
<div style="text-align:right">{include file='pagination_articles.tpl'}</div>
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{*
|
||||
|
||||
{get_last_articles var=last_articles limit=5}
|
||||
{if $last_articles}
|
||||
<div class="blog_menu">
|
||||
|
||||
{foreach $last_articles as $a}
|
||||
<li><h4><a href="/article/{$a->url}/">{$a->name|escape}</a></h4></li>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
(The End) *}
|
||||
|
||||
<!-- Заголовок /-->
|
||||
|
||||
|
||||
|
||||
{*<h1>{if $page}{$page->name}{elseif $article_category}{$article_category->name}{else}Полезные статьи{/if}</h1>*}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
30
design/atomic/html/articles.tpl.txt
Normal file
30
design/atomic/html/articles.tpl.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
{* Рекурсивная функция вывода дерева категорий *}
|
||||
{function name=article_categories_tree}
|
||||
{if $categories}
|
||||
<ul>
|
||||
{foreach $categories as $c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible}
|
||||
<li>
|
||||
<a {if $category->id == $c->id}class="selected"{/if} href="/articles/{$c->url}/">{$c->name}</a>
|
||||
{article_categories_tree categories=$c->subcategories}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
|
||||
|
||||
{if !$article_category}
|
||||
{get_article_categories var=article_categories}
|
||||
<div class="article_categories">
|
||||
{article_categories_tree categories=$article_categories}
|
||||
</div>
|
||||
{else}
|
||||
|
||||
{if $article_category && ($article_category->parent_id == 5 )}<h1>{$article_category->name}</h1>{/if}
|
||||
|
||||
<div class="article_categories">
|
||||
{article_categories_tree categories=$article_category->subcategories}
|
||||
</div>
|
||||
13
design/atomic/html/articles_like_brands.tpl
Normal file
13
design/atomic/html/articles_like_brands.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{if $article_category->subcategories}
|
||||
<div class="brands row">
|
||||
{foreach from=$article_category->subcategories item=c}
|
||||
{if !$c->visible}{continue}{/if}
|
||||
<div class="brand col-sm-2 col-xs-4">
|
||||
<div class="brand-image">{if $c->image}<a class="w" href="/nashi-raboty/{$c->url}/" data-articlecategory="{$c->id}">
|
||||
<img class="img-thumbnail" src="{$c->image|resize:100:100}" title="{$c->name}" alt="{$c->name}"></a>{/if}</div>
|
||||
<div class="brand-name"><a class="w" href="/nashi-raboty/{$c->url}/" data-articlecategory="{$c->id}">{$c->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
13
design/atomic/html/articles_like_category.tpl
Normal file
13
design/atomic/html/articles_like_category.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{if $article_category->subcategories}
|
||||
<div class="articles row hhhhh">
|
||||
{foreach from=$article_category->subcategories item=c}
|
||||
{if $c->visible}
|
||||
<div class="article col-sm-4 col-xs-6">
|
||||
<div class="article-image">{if $c->image}<a class="w" href="/nashi-raboty/{$c->url}/" data-articlecategory="{$c->id}"><img class="img-thumbnail" src="{$c->image|resizepost:252:252}" title="{$c->name}" alt="{$c->name}"></a>{/if}</div>
|
||||
<div class="article-name" style="{$name_style}"><a class="w" href="/nashi-raboty/{$c->url}/" data-articlecategory="{$c->id}">{$c->name}</a></div>
|
||||
<div class="article-description">{$c->description}</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
23
design/atomic/html/banner/foot-left.banner.tpl
Normal file
23
design/atomic/html/banner/foot-left.banner.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{*Â ASSIGN ÓÊÀÆÈÒÅ ID ÍÎÌÅÐ ÃÐÓÏÏÛ {assign var='group' value='IDÃÐÓÏÏÛ'} *}
|
||||
|
||||
{assign var='group' value='2'}{get_banners group=$group}
|
||||
|
||||
{if $banners}
|
||||
{literal}<style>
|
||||
.foot-slider{
|
||||
position: relative;
|
||||
width:1000px; /************ÓÊÀÆÈÒÅ ÐÀÇÌÅÐÛ ÁÀÍÍÅÐÀ*****************/
|
||||
height:200px; /************ÓÊÀÆÈÒÅ ÐÀÇÌÅÐÛ ÁÀÍÍÅÐÀ*****************/
|
||||
}
|
||||
.foot-slider ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style: none;
|
||||
}
|
||||
</style>{/literal}
|
||||
<div class="foot-slider" id="Slide-{$group}">
|
||||
<ul>{foreach $banners as $banner}<li><a href="{$banner->url}" title="{$banner->name|escape}"><img src="{$banner->image}" alt=""></a></li>{/foreach}</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{literal}<script type="text/javascript">$('#Slide-{/literal}{$group}{literal}').smSlider({autoPlay:true,delay:3000,hoverPause:true,transition:'fader'});</script>{/literal}
|
||||
{/if}
|
||||
33
design/atomic/html/banner/foot.banner.tpl
Normal file
33
design/atomic/html/banner/foot.banner.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
{*Â ASSIGN ÓÊÀÆÈÒÅ ID ÍÎÌÅÐ ÃÐÓÏÏÛ {assign var='group' value='IDÃÐÓÏÏÛ'} *}
|
||||
|
||||
{assign var='group' value='2'}{get_banners group=$group}
|
||||
|
||||
{if $banners}
|
||||
<div style="display:table">
|
||||
{foreach $banners as $banner}
|
||||
<div style="display:table-cell;text-align:center;vertical-align:middle;">
|
||||
<a href="{$banner->url}" title="{$banner->name|escape}"><img src="{$banner->image}" alt=""></a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
{*
|
||||
{literal}<style>
|
||||
.head-slider{
|
||||
position: relative;
|
||||
width:700px; /************ÓÊÀÆÈÒÅ ÐÀÇÌÅÐÛ ÁÀÍÍÅÐÀ*****************/
|
||||
height:200px; /************ÓÊÀÆÈÒÅ ÐÀÇÌÅÐÛ ÁÀÍÍÅÐÀ*****************/
|
||||
}
|
||||
.head-slider ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style: none;
|
||||
}
|
||||
</style>{/literal}
|
||||
<div class="head-slider" id="Slide-{$group}">
|
||||
<ul>{foreach $banners as $banner}<li><a href="{$banner->url}" title="{$banner->name|escape}"><img src="{$banner->image}" alt=""></a></li>{/foreach}</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{literal}<script type="text/javascript">$('#Slide-{/literal}{$group}{literal}').smSlider({autoPlay:true,delay:3000,hoverPause:true,transition:'fader'});</script>{/literal}
|
||||
*}
|
||||
{/if}
|
||||
30
design/atomic/html/banner/left.banner.tpl
Normal file
30
design/atomic/html/banner/left.banner.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{*Â ASSIGN ÓÊÀÆÈÒÅ ID ÍÎÌÅÐ ÃÐÓÏÏÛ {assign var='group' value='IDÃÐÓÏÏÛ'} *}
|
||||
|
||||
{assign var='group' value='1'}{get_banners group=$group}
|
||||
|
||||
{if $banners}
|
||||
{foreach $banners as $banner}
|
||||
<a href="{$banner->url}" title="{$banner->name|escape}"><img src="{$banner->image}" alt=""></a><br>
|
||||
{/foreach}
|
||||
{*
|
||||
{literal}<style>
|
||||
.right-slider{
|
||||
position: relative;
|
||||
width:260px; /************ÓÊÀÆÈÒÅ ÐÀÇÌÅÐÛ ÁÀÍÍÅÐÀ*****************/
|
||||
height:260px; /************ÓÊÀÆÈÒÅ ÐÀÇÌÅÐÛ ÁÀÍÍÅÐÀ*****************/
|
||||
}
|
||||
.right-slider ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style: none;
|
||||
}
|
||||
</style>{/literal}
|
||||
<div class="right-slider" id="Slide-{$group}">
|
||||
<ul>{foreach $banners as $banner}<li><a href="{$banner->url}" title="{$banner->name|escape}"><img src="{$banner->image}" alt=""></a></li>{/foreach}</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{literal}<script type="text/javascript">$('#Slide-{/literal}{$group}{literal}').smSlider({autoPlay:true,delay:3000,hoverPause:true,transition:'fader'});</script>{/literal}
|
||||
*}
|
||||
|
||||
|
||||
{/if}
|
||||
27
design/atomic/html/blog.tpl
Normal file
27
design/atomic/html/blog.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
{* Список записей блога *}
|
||||
<!-- Хлебные крошки /-->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
<li>{$page->name}</li>
|
||||
</ul>
|
||||
<!-- Хлебные крошки #End /-->
|
||||
<!-- Заголовок /-->
|
||||
<h1>{$page->name}</h1>
|
||||
|
||||
{include file='pagination.tpl'}
|
||||
|
||||
<!-- Статьи /-->
|
||||
<div class="blog row">
|
||||
{foreach $posts as $post}
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<div class="blog-article">
|
||||
{if $post->image}<div class="blog-image"><a href="/tehinfo/{$post->url}/" class="w"><img class="img-thumbnail" src="{$post->image|resizepost:300:300}" title="{$post->name|escape}" alt="{$post->name|escape}" id="blogimg"/></a></div>{/if}
|
||||
<div class="blog-title"><span class="badge">{$post->date|date|date_format:"%e %m %Y":"":"rus"}</span> <a data-post="{$post->id}" href="/tehinfo/{$post->url}/">{$post->name|escape}</a></div>
|
||||
<div class="blog-annotation">{$post->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<!-- Статьи #End /-->
|
||||
|
||||
{include file='pagination.tpl'}
|
||||
10
design/atomic/html/brands.tpl
Normal file
10
design/atomic/html/brands.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
{if $category->brands}
|
||||
<div class="brands row">
|
||||
{foreach from=$category->brands item=b}
|
||||
<div class="brand col-sm-2 col-xs-4">
|
||||
<div class="brand-image">{if $b->image}<a class="w" href="/brands/{$b->url}/" data-brand="{$b->id}"><img class="img-thumbnail" src="/{$config->brands_images_dir}{$b->image}" alt="{$b->name}"></a>{/if}</div>
|
||||
<div class="brand-name"><a class="w" href="/brands/{$b->url}/" data-brand="{$b->id}">{$b->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
12
design/atomic/html/brands_all.tpl
Normal file
12
design/atomic/html/brands_all.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{get_brands var=all_brands}
|
||||
{if $all_brands}
|
||||
<div class="brands row jjjj">
|
||||
{foreach $all_brands as $b}
|
||||
{if !$b->visible}{continue}{/if}
|
||||
<div class="brand col-sm-2 col-xs-4" style="width: 12.5%">
|
||||
<div class="brand-image">{if $b->image}<a class="w" href="/brands/{$b->url}/" data-brand="{$b->id}"><img class="img-thumbnail" src="/{$config->brands_images_dir}{$b->image}" alt="{$b->name}"></a>{/if}</div>
|
||||
<div class="brand-name"><a class="w" href="/brands/{$b->url}/" data-brand="{$b->id}">{$b->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
40
design/atomic/html/callback.tpl
Normal file
40
design/atomic/html/callback.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
<div class="callBack"><div class="call-me"><a href="#call">Обратный звонок</a></div></div>
|
||||
|
||||
{if $call_sent}
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
alert("Ваша заявка принята. Мы свяжемся с Вами в ближайшее время");
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
<div style="display:none;">
|
||||
<div id="call">
|
||||
<br><h2 style="/*#a2062d;*/ font-size: 21px;" align=center>Заказ обратного звонка</h2>
|
||||
<form id="mail_form" class="form feedback_form" method="post" style="width: 38%;">
|
||||
<p class="reset-margin-padding callbacklines"></p>
|
||||
<label class="labe_txt">Имя</label>
|
||||
<div style="clear:both"></div>
|
||||
<input type="text" name="name" value="{$comment_name}" data-format=".+" data-notice="Введите имя" id="nickname_field" value="" class="input-text" style=""/><br/>
|
||||
|
||||
<label class="labe_txt">Номер телефона</label>
|
||||
<div style="clear:both"></div>
|
||||
<input data-format=".+" data-notice="Введите номер телефона" value="" name="phone" maxlength="255" type="text" class="input-text"/>
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<input class="button" type="submit" name="callback" value="Заказать" style="background: #99f; border: 0;padding: 3px;color: #fff;font-weight: bold; text-decoration:none;margin-top:10px;float:right;"/>
|
||||
</form>
|
||||
<br><br><br>
|
||||
<h3 align="center"> Введите пожалуйста ваше имя и телефон. <br>Наши менеджеры свяжутся с вами в ближайшее время.</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
$('.call-me a').fancybox();
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
543
design/atomic/html/cart.tpl
Normal file
543
design/atomic/html/cart.tpl
Normal file
@@ -0,0 +1,543 @@
|
||||
{* Шаблон корзины *}
|
||||
|
||||
<h1>
|
||||
{if $cart->purchases}В корзине {$cart->total_products} {$cart->total_products|plural:'товар':'товаров':'товара'}
|
||||
{else}Корзина пуста{/if}
|
||||
</h1>
|
||||
{if $cart->purchases}
|
||||
<form method="post" name="cart" class="_preorder">
|
||||
{* Список покупок *}
|
||||
<table id="purchases" class="table table-striped">
|
||||
<tr>
|
||||
<th>Изображение</th>
|
||||
<th>Наименование</th>
|
||||
<th>Цена</th>
|
||||
<th>Кол-во</th>
|
||||
<th>Итого</th>
|
||||
<th>Удалить</th>
|
||||
</tr>
|
||||
{literal} <script>$.yEcommerce = [];</script> {/literal}
|
||||
{foreach from=$cart->purchases item=purchase}
|
||||
{literal}
|
||||
<script>
|
||||
var x = {/literal}{$purchase->variant|@json_encode nofilter}{literal}
|
||||
x.product = {/literal}{$purchase->product|@json_encode nofilter}{literal}
|
||||
$.yEcommerce.push( x );
|
||||
</script>
|
||||
{/literal}
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseCart');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<tr>
|
||||
{* Изображение товара *}
|
||||
<td>
|
||||
{$image = $purchase->product->images|first}
|
||||
{if $image}
|
||||
<a href="/products/{$purchase->product->url}/"><img src="{$image->filename|resize:150:150}" alt="{$product->name|escape}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
{* Название товара *}
|
||||
<td style="font-size: 120%">
|
||||
<a href="/products/{$purchase->product->url}/">{$purchase->product->name|escape}</a>
|
||||
{$purchase->variant->name|escape}
|
||||
<div class="features">
|
||||
{foreach from=$purchase->options item=opt key=ok}
|
||||
{assign var=f value=$features[$ok]}
|
||||
{assign var=opts value=$purchase->features[$ok]}
|
||||
<p>
|
||||
<label>{$f->name} </label>
|
||||
<span>
|
||||
{$opt}
|
||||
</span>
|
||||
</p>
|
||||
{/foreach}
|
||||
</div>
|
||||
</td>
|
||||
{* Цена за единицу *}
|
||||
<td>
|
||||
{($purchase->variant->price)|convert} {$currency->sign}
|
||||
</td>
|
||||
{* Количество *}
|
||||
<td>
|
||||
<select name="amounts[{$purchase->variant->id}]" class="amounts form-control" onchange="document.cart.submit();">
|
||||
{section name=amounts start=1 loop=$purchase->variant->stock+1 step=1}
|
||||
<option value="{$smarty.section.amounts.index}" {if $purchase->amount==$smarty.section.amounts.index}selected{/if}>{$smarty.section.amounts.index} {$settings->units}</option>
|
||||
{/section}
|
||||
</select>
|
||||
</td>
|
||||
{* Цена *}
|
||||
<td>
|
||||
{($purchase->variant->price*$purchase->amount)|convert} {$currency->sign}
|
||||
</td>
|
||||
{* Удалить из корзины *}
|
||||
<td>
|
||||
<a class="remove-from-cart" data-id="{$purchase->variant->id}" href="/cart/remove/{$purchase->variant->id}/" style="color:red !important;">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
<!--<img src="design/{$settings->theme}/images/delete.png" title="Удалить из корзины" alt="Удалить из корзины">-->
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{if $user->discount}
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>скидка</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th>
|
||||
{$user->discount} %
|
||||
</th>
|
||||
<th class="remove"></th>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $coupon_request}
|
||||
<tr class="coupon">
|
||||
<th></th>
|
||||
<th colspan="3">Код купона или подарочного ваучера
|
||||
{if $coupon_error}
|
||||
<div class="message_error">
|
||||
{if $coupon_error == 'invalid'}Купон недействителен{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
<input type="text" name="coupon_code" value="{$cart->coupon->code|escape}" class="coupon_code">
|
||||
</div>
|
||||
{if $cart->coupon->min_order_price>0}(купон {$cart->coupon->code|escape} действует для заказов от {$cart->coupon->min_order_price|convert} {$currency->sign}){/if}
|
||||
<div>
|
||||
<input type="button" name="apply_coupon" value="Применить купон" onclick="document.cart.submit();">
|
||||
</div>
|
||||
</th>
|
||||
<th>
|
||||
{if $cart->coupon_discount>0}
|
||||
−{$cart->coupon_discount|convert} {$currency->sign}
|
||||
{/if}
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
{literal}
|
||||
<script>
|
||||
$("input[name='coupon_code']").keypress(function(event){
|
||||
if(event.keyCode == 13){
|
||||
$("input[name='name']").attr('data-format', '');
|
||||
$("input[name='email']").attr('data-format', '');
|
||||
document.cart.submit();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th class="price" colspan="4">
|
||||
Итого:
|
||||
<span id="sub_price" style="display: inline;">{$cart->total_price}</span>
|
||||
<span id="subtotal_price"></span> {$currency->sign}
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
{* Связанные товары *}
|
||||
{*
|
||||
{if $related_products}
|
||||
<h2>Так же советуем посмотреть</h2>
|
||||
<!-- Список каталога товаров-->
|
||||
<ul class="tiny_products">
|
||||
{foreach $related_products as $product}
|
||||
<!-- Товар-->
|
||||
<li class="product">
|
||||
<!-- Фото товара -->
|
||||
{if $product->image}
|
||||
<div class="image">
|
||||
<a href="/products/{$product->url}"><img src="{$product->image->filename|resize:200:200}" alt="{$product->name|escape}"/></a>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Фото товара (The End) -->
|
||||
<!-- Название товара -->
|
||||
<h3><a data-product="{$product->id}" href="/products/{$product->url}">{$product->name|escape}</a></h3>
|
||||
<!-- Название товара (The End) -->
|
||||
{if $product->variants|count == 1}
|
||||
<!-- Выбор варианта товара -->
|
||||
<table>
|
||||
{foreach $product->variants as $v}
|
||||
<tr class="variant">
|
||||
<td>
|
||||
{if $v->name}<label class="variant_name" for="related_{$v->id}">{$v->name}</label>{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $v->compare_price > 0}<span class="compare_price">{$v->compare_price|convert}</span>{/if}
|
||||
<span class="price">{$v->price|convert} <span class="currency">{$currency->sign|escape}</span></span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/cart?variant={$v->id}">в корзину</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
{else}
|
||||
Нет в наличии
|
||||
{/if}
|
||||
</li>
|
||||
<!-- Товар (The End)-->
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
*}
|
||||
{*/*order-on-one-page*/*}
|
||||
{literal}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#deliveries .first").click();
|
||||
});
|
||||
function change_payment_method($id) {
|
||||
$("#delivery_payment_"+$id+" .pay_first").attr('checked','checked');
|
||||
$(".delivery_payment").css("display","none");
|
||||
$("#delivery_payment_"+$id).css("display","block");
|
||||
if($id == 2 || $id == 5){
|
||||
$('._hide2').show();
|
||||
$('._hide').hide();
|
||||
|
||||
$('._hide input').each(function(){
|
||||
var t = $(this).attr('data-format');
|
||||
$(this).attr('data-format2',t);
|
||||
$(this).removeAttr('data-format');
|
||||
});
|
||||
}else{
|
||||
$('._hide').show();
|
||||
$('._hide2').show();
|
||||
$('._hide input').each(function(){
|
||||
var t = $(this).attr('data-format2');
|
||||
$(this).attr('data-format',t);
|
||||
$(this).removeAttr('data-format2');
|
||||
});
|
||||
}
|
||||
if($id == 1){
|
||||
$('._hide2').hide();
|
||||
$('._hide2 input').each(function(){
|
||||
var t = $(this).attr('data-format');
|
||||
$(this).attr('data-format2',t);
|
||||
$(this).removeAttr('data-format');
|
||||
});
|
||||
}else{
|
||||
if($id != 2 && $id != 5){
|
||||
$('._hide').show();
|
||||
$('._hide2').show();
|
||||
$('._hide2 input').each(function(){
|
||||
var t = $(this).attr('data-format2');
|
||||
$(this).attr('data-format',t);
|
||||
$(this).removeAttr('data-format2');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
{*/*/order-on-one-page*/*}
|
||||
{* Доставка *}
|
||||
{if $deliveries}
|
||||
<h2>Выберите способ доставки:</h2>
|
||||
<div id="deliveries" class="list-group well">
|
||||
{foreach $deliveries as $delivery}
|
||||
<div class="radio">
|
||||
<label for="deliveries_{$delivery->id}">
|
||||
<input {*/*order-on-one-page*/*}{if $delivery@first}class="first"{/if} onclick="change_payment_method({$delivery->id})"{*/*/order-on-one-page*/*} type="radio" name="delivery_id" value="{$delivery->id}" {if $delivery_id==$delivery->id}checked{elseif $delivery@first}checked{/if} id="deliveries_{$delivery->id}">
|
||||
{$delivery->name}
|
||||
{if $cart->total_price < $delivery->free_from && $delivery->price > 0}
|
||||
<span id="delivery_price_{$delivery->id}" class="price">({$delivery->price})</span> {$currency->sign}
|
||||
{elseif $cart->total_price >= $delivery->free_from}
|
||||
<span id="delivery_price_{$delivery->id}" class="price">(бесплатно)</span>
|
||||
{else}
|
||||
<span id="delivery_price_{$delivery->id}" class="price">{if $delivery->ems==1}(Выберите город){/if}</span>
|
||||
{/if}
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
{if $delivery->ems==1}
|
||||
<div class="list-group-item">
|
||||
<p>Тарифы и сроки доставки можно рассчитать ниже: </p>
|
||||
<input type="hidden" name="weight" id="weight" value="{$cart->total_weight}" />
|
||||
<label for="city2">Выберите пункт назначения</label>
|
||||
<div class="col-sm-4">
|
||||
<select name="city2" id="city2" class="form-control">
|
||||
<option value="">Выбирать</option>
|
||||
{foreach $acity AS $k=>$c}
|
||||
<option value="{$k}">{$c}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
<div id="ajax">
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
{if $delivery->description}<div class="list-group-item">{$delivery->description}</div>{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="title" id="total" style="text-align:right;">Итого: <span>{$cart->subtotal_price|convert}</span> {$currency->sign}</div>
|
||||
{*/*order-on-one-page*/*}
|
||||
{if $deliveries}
|
||||
{foreach $deliveries as $delivery}
|
||||
{if $delivery->payment_methods}
|
||||
<div class="delivery_payment {if $delivery@first}first{/if}" id="delivery_payment_{$delivery->id}" style="display:none" >
|
||||
<h2>Выберите способ оплаты</h2>
|
||||
<div id="deliveries" class="list-group well">
|
||||
{foreach $delivery->payment_methods as $payment_method}
|
||||
|
||||
<div class="radio">
|
||||
{$total_price_with_delivery = $cart->total_price}
|
||||
{if !$delivery->separate_payment && $cart->total_price < $delivery->free_from}
|
||||
{$total_price_with_delivery = $cart->total_price + $delivery->price}
|
||||
{/if}
|
||||
<label for="payment_{$delivery->id}_{$payment_method->id}">
|
||||
<input class="{if $payment_method@first}pay_first{/if}" type=radio name=payment_method_id value='{$payment_method->id}' {if $payment_method@first}checked{/if} id=payment_{$delivery->id}_{$payment_method->id}>
|
||||
{$payment_method->name}, к оплате <span class="ems_price">{$total_price_with_delivery|convert:$payment_method->currency_id}</span> {$all_currencies[$payment_method->currency_id]->sign}</label>
|
||||
</div>
|
||||
<div class="description">
|
||||
{if $payment_method->description}<div class="list-group-item">{$payment_method->description}</div>{/if}
|
||||
</div>
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{*/*/order-on-one-page*/*}
|
||||
{* Выбор способа оплаты *}
|
||||
{*if $payment_methods && !$payment_method}
|
||||
<h2>Выберите способ оплаты:</h2>
|
||||
<ul id="deliveries" class="costs">
|
||||
{foreach $payment_methods as $payment_method}
|
||||
<li>
|
||||
<div class="checkbox">
|
||||
<input type=radio name=payment_method_id value='{$payment_method->id}' {if $payment_method@first}checked{/if} id=payment_{$payment_method->id}>
|
||||
</div>
|
||||
<h3><label for=payment_{$payment_method->id}> {$payment_method->name}{*, к оплате {$cart->total_price|convert:$payment_method->currency_id} {$all_currencies[$payment_method->currency_id]->sign}*}</label></h3>
|
||||
{*<div class="description">
|
||||
{$payment_method->description}
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if*}
|
||||
<div class="title">Адрес получателя</div>
|
||||
<div id="adrcart" class="well">
|
||||
<div class="form-horizontal cart_form" style="overflow: hidden;">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error == 'empty_name'}Введите Имя{/if}
|
||||
{if $error == 'empty_name2'}Введите Фамилию{/if}
|
||||
{if $error == 'empty_email'}Введите email{/if}
|
||||
{if $error == 'empty_phone'}Введите Телефон{/if}
|
||||
{if $error == 'empty_country'}Введите Страну{/if}
|
||||
{if $error == 'empty_region'}Введите Регион{/if}
|
||||
{if $error == 'empty_city'}Введите Город{/if}
|
||||
{if $error == 'empty_city2'}Введите город в EMS{/if}
|
||||
{if $error == 'empty_indx'}Введите Индекс{/if}
|
||||
{if $error == 'empty_adress'}Введите Адрес Доставки{/if}
|
||||
{if $error == 'captcha'}Капча введена неверно{/if}
|
||||
{if $error == 'recaptcha'}Вы не прошли проверку защиты{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Имя*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="name" type="text" value="{$user->name}" data-format=".+" data-notice="Введите имя"/></div>
|
||||
</div>
|
||||
<div class="form-group _hide _hide2">
|
||||
<label for="name2" class="col-sm-2 control-label">Фамилия*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="name2" type="text" value="{$user->name2}" data-format=".+" data-notice="Введите фамилию" /></div>
|
||||
</div>
|
||||
<div class="form-group _hide">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="email" type="text" value="{$user->email}"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone" class="col-sm-2 control-label">Телефон*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="phone" type="text" value="{$user->phone}" data-format=".+" data-notice="Введите телефон"/></div>
|
||||
</div>
|
||||
<div class="form-group _hide _hide2">
|
||||
<label for="country" class="col-sm-2 control-label">Страна*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="country" type="text" value="{$user->country}" data-format=".+" data-notice="Введите страну"/></div>
|
||||
</div>
|
||||
<div class="form-group _hide _hide2">
|
||||
<label for="region" class="col-sm-2 control-label">Регион*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="region" type="text" value="{$user->region}" data-format=".+" data-notice="Введите регион"/></div>
|
||||
</div>
|
||||
<div class="form-group _hide">
|
||||
<label for="city" class="col-sm-2 control-label">Город*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="city" type="text" value="{$user->city}" data-format=".+" data-notice="Введите город"/></div>
|
||||
</div>
|
||||
<div class="form-group _hide _hide2">
|
||||
<label for="indx" class="col-sm-2 control-label">Индекс*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="indx" type="text" value="{$user->indx}" data-format=".+" data-notice="Введите индекс" /></div>
|
||||
</div>
|
||||
<div class="form-group _hide">
|
||||
<label for="address" class="col-sm-2 control-label" style="padding-left: 0;padding-right: 10px;">Адрес доставки*</label>
|
||||
<div class="col-sm-10"><input class="form-control" name="address" type="text" value="{$user->adress}" data-format=".+" data-notice="Введите адрес"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="comment" class="col-sm-2 control-label">Комментарий к заказу</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" name="comment" id="order_comment"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<!--<div class="col-sm-2"><div class="captcha"><img src="captcha/image.php?{math equation='rand(10,10000)'}" alt='captcha'/></div></div>
|
||||
<div 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="Введите капчу"/></div>
|
||||
</div>-->
|
||||
<input type="hidden" name="cart-form" value="1">
|
||||
<input type="submit" name="checkout" class="button btn btn-danger pull-right" value="Оформить заказ" style="margin-right: 15px;">
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseCart">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{else}
|
||||
В корзине нет товаров
|
||||
{/if}
|
||||
</div>
|
||||
<script>
|
||||
/*function select_delivery_method(method_id)
|
||||
{
|
||||
radiobuttons = document.getElementsByName('delivery_id');
|
||||
for(var i=0;i<radiobuttons.length;i++)
|
||||
{
|
||||
if(radiobuttons[i].value == method_id)
|
||||
{
|
||||
radiobuttons[i].checked = 1;
|
||||
}
|
||||
}
|
||||
var subtotal = parseFloat(document.getElementById('sub_price').innerHTML);
|
||||
var delivery = 0;
|
||||
if(document.getElementById('delivery_price_'+method_id))
|
||||
delivery = parseFloat(document.getElementById('delivery_price_'+method_id).innerHTML);
|
||||
total = subtotal+delivery;
|
||||
document.getElementById('subtotal_price').innerHTML = total;
|
||||
}*/
|
||||
</script>
|
||||
<script>
|
||||
//select_delivery_method(1);
|
||||
</script>
|
||||
<script>
|
||||
{literal}
|
||||
$(function() {
|
||||
/*$('.deliver li').click(function(){
|
||||
if ($(this).is(":nth-child(2)")) {
|
||||
$('.costs li:first-child').slideUp("slow");
|
||||
$('#payment_11').attr('checked', false);
|
||||
$('#payment_8').attr('checked', true);
|
||||
}
|
||||
else {
|
||||
$('.costs li:first-child').slideDown("slow");
|
||||
$('#payment_8').attr('checked', false);
|
||||
$('#payment_11').attr('checked', true);
|
||||
}
|
||||
})
|
||||
*/
|
||||
$('select#city2').change(function(){
|
||||
$("div#ajax").html("Загрузка...");
|
||||
$('select#city2').parents('li').find('label span.price').text("Загрузка...");
|
||||
var city2 = $( "select#city2 option:selected" ).val();
|
||||
$.ajax({
|
||||
data: {to: city2, weight: $('input[name="weight"]').val()},
|
||||
url: "ajax/ems.php",
|
||||
dataType: 'json',
|
||||
success: function(data){
|
||||
var html = $(data);
|
||||
//var pr = parseInt(html.find('p span').text().replace(/\s+/g, ''));
|
||||
var pr = html.find('p span').text();
|
||||
$("div#ajax").html("");
|
||||
$("#ajax").append(data);
|
||||
$('select#city2').parents('li').find('label span.price').text(pr);
|
||||
calctotal();
|
||||
}
|
||||
});
|
||||
});
|
||||
function calctotal(){
|
||||
var total = parseInt($('table th.price > span').text().replace(/\s+/g, '')), radio;
|
||||
total = total?total:0;
|
||||
if (radio = $("input[type='radio']:checked")){
|
||||
var add = parseInt($(radio).parents('li').find('span.price').text().replace(/\s+/g, ''));
|
||||
//alert(add );
|
||||
add = (add)?(add):(0);
|
||||
total+=add;
|
||||
delivery_id = radio.val();
|
||||
if (delivery_id == 3) {
|
||||
$('#delivery_payment_' + delivery_id + ' span.ems_price').html(total);
|
||||
}
|
||||
}
|
||||
$('#total > span').text(total);
|
||||
}
|
||||
$('input[type=radio]').change(function() {
|
||||
calctotal();
|
||||
});
|
||||
calctotal();
|
||||
});
|
||||
|
||||
var __form = {};
|
||||
setInterval(function(){
|
||||
|
||||
var phone = $('._preorder input[name=phone]').val();
|
||||
var email = $('._preorder input[name=email]').val();
|
||||
if(phone.length < 4 && email.length < 4) return;
|
||||
|
||||
var form = $('._preorder').serializeArray(), _form = {};
|
||||
for(var i in form) _form[form[i].name] = form[i].value;
|
||||
$.each(_form, function(k, v){
|
||||
if(typeof __form[k] != 'undefined' && __form[k] == v) return;
|
||||
__form = _form;
|
||||
$.post('/ajax/orderTrack.php', _form );
|
||||
return false;
|
||||
});
|
||||
|
||||
}, 2000);
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
$('.remove-from-cart').click(function(e){
|
||||
e.preventDefault();
|
||||
var id = $(this).attr('data-id');
|
||||
var href = $(this).attr('href');
|
||||
dataLayer.push({
|
||||
"ecommerce": {
|
||||
"remove": {
|
||||
"products": [eCommerceFindProductRemove(id, $.yEcommerce)]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
document.location.href = href;
|
||||
});
|
||||
|
||||
|
||||
function eCommerceFindProductRemove(id, products){
|
||||
var res = {};
|
||||
$.each(products, function(k, item){ if(item.id == id) res = item });
|
||||
return {
|
||||
id: id,
|
||||
name: res.product && res.product.name ? res.product.name : res.name
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
new sxValidator({$el: '._preorder'});
|
||||
})
|
||||
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
31
design/atomic/html/cart_informer.tpl
Normal file
31
design/atomic/html/cart_informer.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{* Информера корзины (отдаётся аяксом) *}
|
||||
|
||||
{if $cart->total_products>0}
|
||||
<table id="top-cart-informer" class="notempty">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td rowspan="2" class="icon"><span class="glyphicon glyphicon-shopping-cart"></span></td>
|
||||
<td class="bsk_item">товаров: </td>
|
||||
<td class="bsk_value"><span id="b_count3">{$cart->total_products} {$cart->total_products|plural:'шт':'шт':'шт'}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bsk_item">на сумму: </td>
|
||||
<td class="bsk_value"><span id="b_sum3">{$cart->total_price|convert} {$currency->sign|escape}</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
<table id="top-cart-informer" class="empty">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td rowspan="2" class="icon"><span class="glyphicon glyphicon-shopping-cart"></span></td>
|
||||
<td class="bsk_item">товаров: </td>
|
||||
<td class="bsk_value"><span id="b_count3">0 шт.</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bsk_item">на сумму: </td>
|
||||
<td class="bsk_value"><span id="b_sum3">0 руб.</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/if}
|
||||
11
design/atomic/html/cart_payment.tpl
Normal file
11
design/atomic/html/cart_payment.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
{foreach $payment_methods as $payment_method}
|
||||
<li>
|
||||
<div class="checkbox">
|
||||
<input type=radio name=payment_method_id value='{$payment_method->id}' {if $payment_method@first}checked{/if} id=payment_{$payment_method->id}>
|
||||
</div>
|
||||
<h3><label for=payment_{$payment_method->id}> {$payment_method->name}{*, ê îïëàòå {$cart->total_price|convert:$payment_method->currency_id} {$all_currencies[$payment_method->currency_id]->sign}*}</label></h3>
|
||||
<div class="description">
|
||||
{$payment_method->description}
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
77
design/atomic/html/category.tpl
Normal file
77
design/atomic/html/category.tpl
Normal file
@@ -0,0 +1,77 @@
|
||||
{if $category->id != 488 && $category->id != 556}
|
||||
{if $category->subcategories && $category->how2show == 1}
|
||||
<div class="categories row">
|
||||
{foreach from=$category->subcategories item=c}
|
||||
{* Показываем только видимые категории *}
|
||||
{*if $c->visible && $c->menu*}
|
||||
{if $c->visible}
|
||||
<div class="category col-sm-4 col-xs-6">
|
||||
<div class="category-image">
|
||||
<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
|
||||
{if $c->image}
|
||||
<img class="img-thumbnail" src="{$c->image|resize_category:263}" title="{$c->name}" alt="{$c->name}">
|
||||
{else}
|
||||
<img src="/images/zag2.jpg" alt="">
|
||||
{/if}
|
||||
</a></div>
|
||||
<div class="category-name">
|
||||
<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a>
|
||||
<div class="category_anons">{$c->anons}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $category->subcategories && $category->how2show == 2}
|
||||
<div class="brands row">
|
||||
{foreach from=$category->subcategories item=c}
|
||||
{if $c->visible}
|
||||
<div class="brand col-sm-2 col-xs-4">
|
||||
<div class="brand-image">
|
||||
<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
|
||||
{if $c->image}
|
||||
<img class="img-thumbnail" src="{$c->image|resize_category:116:77:1}" alt="{$c->name}"></a>
|
||||
{else}
|
||||
<img src="/images/zag2.jpg" alt="">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="brand-name"><a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $category->subcategories && $category->how2show == 3}
|
||||
<div class="brands row">
|
||||
{foreach from=$category->subcategories item=c}
|
||||
{if $c->visible}
|
||||
<div class="col-sm-4 col-xs-6" style="margin-bottom: 10px;">
|
||||
<div class="brand-name" style="text-align: center;"><a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
{else}
|
||||
<div class="brands row">
|
||||
{foreach from=$category->subcategories item=c}
|
||||
{if $c->visible && $c->menu}
|
||||
<div class="brand col-sm-2 col-xs-4">
|
||||
<div class="brand-image">{if $c->image}<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
|
||||
<img class="img-thumbnail" src="/{$config->categories_images_dir}{$c->image}" alt="{$c->name}"></a>{/if}</div>
|
||||
<div class="brand-name"><a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
13
design/atomic/html/category_like_brands.tpl
Normal file
13
design/atomic/html/category_like_brands.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{if $category->subcategories}
|
||||
<div class="brands row">
|
||||
{foreach from=$category->subcategories item=c}
|
||||
{if $c->visible && $c->menu}
|
||||
<div class="brand col-sm-2 col-xs-4">
|
||||
<div class="brand-image">{if $c->image}<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
|
||||
<img class="img-thumbnail" src="/{$config->categories_images_dir}{$c->image}" title="{$c->name}" alt="{$c->name}"></a>{/if}</div>
|
||||
<div class="brand-name"><a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
55
design/atomic/html/contact_form_and_social.tpl
Normal file
55
design/atomic/html/contact_form_and_social.tpl
Normal file
@@ -0,0 +1,55 @@
|
||||
<div class="h4">Сервис на карте</div>
|
||||
<div class="row mb">
|
||||
<div class="col-sm-9">map here</div>
|
||||
|
||||
<div class="col-sm-3"><div class="pull-right"><img alt="" src="/files/uploads/ch-logo1.png" />
|
||||
<div class="text-center"><span style="font-size:16px;"><span style="color: rgb(255, 255, 255);">ул. Победы Коммунизма д. 1</span></span></div>
|
||||
</div></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="social-and-form row">
|
||||
<div class="col-sm-4 vk">
|
||||
<div class="h3">Мы в социальных сетях</div>
|
||||
{* <div id="vk_groups"></div> *}
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="h3" id="chRequestFormHeader">Оставьте заявку</div>
|
||||
<div class="well">
|
||||
<form id="chRequestForm" class="clearfix">
|
||||
<input type="text" class="hide" name="user" placeholder="user">
|
||||
<div class="row">
|
||||
<div class="col-sm-12" style="padding-bottom: 4px;">Оставьте свой телефон или электронный адрес и мы свяжемся с Вами.</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="name" name="Имя" placeholder="Имя">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control" id="phone" name="Телефон" placeholder="Телефон" data-validation="phone">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="email" class="form-control" id="mail" name="E-mail" placeholder="E-mail" data-validation="email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<textarea id="message" name="Комментарии" class="form-control" style="height: 145px" placeholder="Комментарии"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" name="submit" onclick="yaCounter23568694.reachGoal('zayavka');" class="form-submit btn btn-danger btn-block">Оставить заявку</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="id" value="{$page->id}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{literal}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#chRequestForm').sendForm({'header' : '#chRequestFormHeader'});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
51
design/atomic/html/contact_form_inline.tpl
Normal file
51
design/atomic/html/contact_form_inline.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseform');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div class="contact-form well">
|
||||
<div class="col-xs-12 h3" id="chCallbackFormHeader">Заказать услугу: {$page->header|escape}</div>
|
||||
<form id="chCallbackForm2" class="clearfix">
|
||||
<input type="text" class="hide" name="user" placeholder="user">
|
||||
<div class="form-group col-sm-3">
|
||||
<label class="sr-only"></label>
|
||||
<input type="text" class="form-control" name="Имя" placeholder="Ваше имя">
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label class="sr-only"></label>
|
||||
<input required type="text" class="form-control" name="Телефон" placeholder="Телефон для связи" data-validation="phone">
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label class="sr-only"></label>
|
||||
<input type="text" class="form-control" name="Марка и модель авто" placeholder="Марка и модель авто">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<button type="button" name="submit" class="form-submit btn btn-danger btn-block">Отправить</button>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseform">
|
||||
<input type="hidden" name="id" value="{$page->id}">
|
||||
</form>
|
||||
</div>
|
||||
{literal}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#chCallbackForm2').sendForm({
|
||||
'header' : '#chCallbackFormHeader',
|
||||
callback: function(){ yandexReachGoal('zakazuslugi'); }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div class="contact-form well">
|
||||
<img loading="lazy" style="float:left; margin-right: 5%" src="/design/atomic/images/service_img.png" alt="{$page->header|escape} в СПБ" width="70" height="70">
|
||||
<span style="color: #ff0000; font-size: 18px;">Есть вопросы по услуге {$page->header|escape}? Задайте нашему эксперту</span>
|
||||
<span style="color: #0000ff; font-size: 18px;"><a title="Позвонить" href="tel:+79219589000">+7(921)958-90-00</a> </span>| <span style="color: #339966; font-size: 18px;"> <a style="color: #339966; font-size: 18px;" title="WhatsApp" href="https://wa.me/79219589000">WhatsApp</a></span> | <span style="color: #0000ff; font-size: 18px;"><a style="color: #2481cc;" title="Telegram" href="https://t.me/Atomicgarage">Telegram</a></span>
|
||||
</div>
|
||||
187
design/atomic/html/email_order.tpl
Normal file
187
design/atomic/html/email_order.tpl
Normal file
@@ -0,0 +1,187 @@
|
||||
{* Шаблон письма пользователю о заказе *}
|
||||
|
||||
{$subject = "Заказ №`$order->id`" scope=parent}
|
||||
<h1 style="font-weight:normal;font-family:arial;">
|
||||
<a href="{$config->root_url}/order/{$order->url}">Ваш заказ №{$order->id}</a>
|
||||
на сумму {$order->total_price|convert:$currency->id} {$currency->sign}
|
||||
{if $order->paid == 1}оплачен{else}еще не оплачен{/if},
|
||||
{if $order->status == 0}ждет обработки{elseif $order->status == 1}в обработке{elseif $order->status == 2}выполнен{/if}
|
||||
</h1>
|
||||
{if $additional_message}
|
||||
{$additional_message}
|
||||
{/if}
|
||||
<table cellpadding="6" cellspacing="0" style="border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Статус
|
||||
</td>
|
||||
<td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{if $order->status == 0}
|
||||
ждет обработки
|
||||
{elseif $order->status == 1}
|
||||
в обработке
|
||||
{elseif $order->status == 2}
|
||||
выполнен
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Оплата
|
||||
</td>
|
||||
<td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{if $order->paid == 1}
|
||||
<font color="green">оплачен</font>
|
||||
{else}
|
||||
не оплачен
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $order->name}
|
||||
<tr>
|
||||
<td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Имя, фамилия
|
||||
</td>
|
||||
<td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->name|escape} {$order->name2|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->email}
|
||||
<tr>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Email
|
||||
</td>
|
||||
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->email|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->phone}
|
||||
<tr>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Телефон
|
||||
</td>
|
||||
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->phone|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->address}
|
||||
<tr>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Страна, Регион, Город, адрес доставки,индекс
|
||||
</td>
|
||||
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->country|escape}, {$order->region|escape}, {$order->city|escape}, {$order->address|escape}, {$order->indx|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->comment}
|
||||
<tr>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Комментарий
|
||||
</td>
|
||||
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->comment|escape|nl2br}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Дата
|
||||
</td>
|
||||
<td style="padding:6px; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->date|date} {$order->date|time}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h1 style="font-weight:normal;font-family:arial;">Вы заказали:</h1>
|
||||
|
||||
<table cellpadding="6" cellspacing="0" style="border-collapse: collapse;">
|
||||
|
||||
{foreach name=purchases from=$purchases item=purchase}
|
||||
<tr>
|
||||
<td align="center" style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$image = $purchase->product->images[0]}
|
||||
<a href="{$config->root_url}/products/{$purchase->product->url}"><img border="0" src="{$image->filename|resize:50:50}"></a>
|
||||
</td>
|
||||
<td style="padding:6px; width:250; padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
<a href="{$config->root_url}/products/{$purchase->product->url}">{$purchase->product_name}</a>
|
||||
{$purchase->variant_name}
|
||||
{if $order->paid && $purchase->variant->attachment}
|
||||
<br>
|
||||
<a href="{$config->root_url}/order/{$order->url}/{$purchase->variant->attachment}"><font color="green">Скачать {$purchase->variant->attachment}</font></a>
|
||||
{/if}
|
||||
<div class="features">
|
||||
{foreach from=$purchase->options item=opt key=ok}
|
||||
{assign var=f value=$features[$ok]}
|
||||
<p>
|
||||
<label>{$f->name} </label>
|
||||
<span>
|
||||
{$opt}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td align=right style="padding:6px; text-align:right; width:150; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$purchase->amount} {$settings->units} × {$purchase->price|convert:$currency->id} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{if $order->discount}
|
||||
<tr>
|
||||
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Скидка
|
||||
</td>
|
||||
<td align=right style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->discount} %
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $order->coupon_discount>0}
|
||||
<tr>
|
||||
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
Купон {$order->coupon_code}
|
||||
</td>
|
||||
<td align=right style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
−{$order->coupon_discount} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $delivery && !$order->separate_delivery}
|
||||
<tr>
|
||||
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$delivery->name}
|
||||
</td>
|
||||
<td align="right" style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
|
||||
{$order->delivery_price|convert:$currency->id} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
|
||||
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;font-weight:bold;">
|
||||
Итого
|
||||
</td>
|
||||
<td align="right" style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;font-weight:bold;">
|
||||
{$order->total_price|convert:$currency->id} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
Вы всегда можете проверить состояние заказа по ссылке:<br>
|
||||
<a href="{$config->root_url}/order/{$order->url}">{$config->root_url}/order/{$order->url}</a>
|
||||
<br>
|
||||
13
design/atomic/html/email_password_remind.tpl
Normal file
13
design/atomic/html/email_password_remind.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{* Письмо восстановления пароля *}
|
||||
|
||||
{$subject = 'Новый пароль' scope=parent}
|
||||
<html>
|
||||
<body>
|
||||
<p>{$user->name|escape}, на сайте <a href='http://{$config->root_url}/'>{$settings->site_name}</a> был сделан запрос на восстановление вашего пароля.</p>
|
||||
<p>Вы можете изменить пароль, перейдя по следующей ссылке:</p>
|
||||
<p><a href='{$config->root_url}/user/password_remind/{$code}'>Изменить пароль</a></p>
|
||||
<p>Эта ссылка действует в течение нескольких минут.</p>
|
||||
<p>Если это письмо пришло вам по ошибке, проигнорируйте его.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
57
design/atomic/html/feedback.tpl
Normal file
57
design/atomic/html/feedback.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseFeedback');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{* Страница с формой обратной связи *}
|
||||
<h1>{$page->name|escape}</h1>
|
||||
{$page->body}
|
||||
<div class="title">Обратная связь</div>
|
||||
<div class="well">
|
||||
{if $message_sent}
|
||||
{$name|escape}, ваше сообщение отправлено.
|
||||
{else}
|
||||
<form class="form feedback_form form-horizontal" method="post">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error=='captcha'}
|
||||
Неверно введена капча
|
||||
{elseif $error=='empty_name'}
|
||||
Введите имя
|
||||
{elseif $error=='empty_email'}
|
||||
Введите email
|
||||
{elseif $error=='empty_text'}
|
||||
Введите сообщение
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Имя</label>
|
||||
<div class="col-sm-10">
|
||||
<input class="form-control" data-format=".+" data-notice="Введите имя" value="{$name|escape}" name="name" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10">
|
||||
<input required class="form-control" data-format="email" data-notice="Введите email" value="{$email|escape}" name="email" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message" class="col-sm-2 control-label">Сообщение</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" data-format=".+" data-notice="Введите сообщение" value="{$message|escape}" name="message">{$message|escape}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseFeedback">
|
||||
<input class="btn btn-danger pull-right" type="submit" name="feedback" value="Отправить" />
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
41
design/atomic/html/feedback/edit.tpl
Normal file
41
design/atomic/html/feedback/edit.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
<h2>Редактировать отзыв</h2>
|
||||
<form id="f_form2">
|
||||
<div class="form-group">
|
||||
<label>Ваше имя*</label>
|
||||
<input type="text" class="form-control" name="name" value="{$feed_row->name}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="text" class="form-control" name="email" value="{$feed_row->email}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Комментарий*</label>
|
||||
<textarea class="form-control" name="text">{$feed_row->text}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="well">
|
||||
<div id="f_images2">
|
||||
{foreach from=$feedback_imgs[$feed_row->id] item=row4 key=i}
|
||||
<div class="f-preview" data-id="{$i}">
|
||||
<a href="/feedback/images/{$row4->name}" class="fancybox" rel="gal{$row4->id}"><img src="{$row4->img}"></a>
|
||||
<div><button data-id="{$i}" data-bid="{$row4->id}" class="btn btn-danger btn-xs f-image-remove" type="button"><b>X</b></button></div>
|
||||
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<span class="btn btn-success fileinput-btn" ><i class="fa fa-plus"> Добавить фото</i>
|
||||
<input type="file" multiple name="img"></span>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-danger f-error" id="f_name_error2" style="display: none;">Укажите ваше имя</div>
|
||||
<div class="alert alert-danger f-error" id="f_text_error2" style="display: none;">введите текст комментария</div>
|
||||
|
||||
<button type="submit" class="btn btn-default" id="f_submit_btn2"><i class="fa fa-check"></i> Отправить</button>
|
||||
<p class="help-block">*Обязательное поле</p>
|
||||
<input type="hidden" name="id" value="{$feed_row->id}">
|
||||
<input type="hidden" name="url" value="edit_save">
|
||||
</form>
|
||||
48
design/atomic/html/feedback/form.tpl
Normal file
48
design/atomic/html/feedback/form.tpl
Normal file
@@ -0,0 +1,48 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseFeedback');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
<div class="h3" id="set_feedback">Оставить отзыв</div>
|
||||
<form id="f_form">
|
||||
<div class="form-group">
|
||||
<label>Ваше имя*</label>
|
||||
<input type="text" class="form-control" name="name">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="text" class="form-control" name="email">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Комментарий*</label>
|
||||
<textarea class="form-control" name="text"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="well">
|
||||
<div id="f_images"></div>
|
||||
<div class="clearfix"></div>
|
||||
<span class="btn btn-default fileinput-btn"><i class="fa fa-plus"></i> Добавить фото
|
||||
<input type="file" multiple name="img"></span>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-danger f-error" id="f_name_error" style="display: none;">Укажите ваше имя</div>
|
||||
<div class="alert alert-danger f-error" id="f_text_error" style="display: none;">введите текст комментария (не меньше 10 символов)</div>
|
||||
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseFeedback">
|
||||
|
||||
<button type="submit" class="btn btn-danger" id="f_submit_btn"><i class="fa fa-check"></i> Отправить</button>
|
||||
<p class="help-block"></p>
|
||||
<input type="hidden" name="parent_id" value="0">
|
||||
</form>
|
||||
|
||||
<div class="alert alert-success" id="f_success" style="display: none;">Спасибо за Ваше мнение. Ваш отзыв будет опубликован после проверки модератором.</div>
|
||||
79
design/atomic/html/feedback/main.tpl
Normal file
79
design/atomic/html/feedback/main.tpl
Normal file
@@ -0,0 +1,79 @@
|
||||
<div style="margin: 10px 0 10px 0;"><a class="btn btn-danger" href="/otzyvy/#f_form">Оставить отзыв</a></div>
|
||||
|
||||
{foreach from=$feedback item=row}
|
||||
|
||||
<div class="well {$row->style} feed_{$row->id}" style="margin-bottom: 4px;">
|
||||
|
||||
|
||||
<div class="h4" style="margin-bottom: 5px;">
|
||||
<span><span>{$row->name}</span></span>
|
||||
<span style="font-size: 11px;">{$row->date}</span>
|
||||
{if $smarty.session.admin == 'admin' && $row->email}<span style="font-size:12px"> [{$row->email}]</span>{/if}
|
||||
</div>
|
||||
|
||||
<span>{$row->text}</span>
|
||||
|
||||
<div>
|
||||
{foreach from=$feedback_imgs[$row->id] item=row2}
|
||||
<div class="f-preview" style="margin-top: 5px;">
|
||||
<a href="/feedback/images/{$row2->name}" class="fancybox" data-rel="gal{$row->id}"><img alt="" src="{$row2->img}"></a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
||||
|
||||
{if $smarty.session.admin == 'admin'}
|
||||
<br>
|
||||
<a class="btn btn-primary btn-mini" style="padding: 3px;font-size: 11px;" href="/otzyvy/?edit={$row->id}">Изменить</a>
|
||||
<a class="btn btn-warning btn-mini" style="padding: 3px;font-size: 11px;" href="/otzyvy/?reply={$row->id}">Ответить</a>
|
||||
{if $row->active == 0}
|
||||
<button class="btn btn-success btn-mini f_activate" style="padding: 3px;font-size: 11px;" data-id="{$row->id}">Включить</button>
|
||||
{/if}
|
||||
<button class="btn btn-danger btn-mini f_remove" style="padding: 3px;font-size: 11px;" data-id="{$row->id}">Удалить</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
{foreach from=$feedback_replies item=row3}
|
||||
{if $row3->parent_id == $row->id}
|
||||
<div class="well feed_{$row3->id}" style="margin-bottom: 4px;margin-left:60px;">
|
||||
|
||||
|
||||
<div class="h4" style="margin-bottom: 5px;">
|
||||
<span><span>{$row3->name}</span></span>
|
||||
<span style="font-size: 11px;">{$row3->date}</span>
|
||||
</div>
|
||||
|
||||
<span>{$row3->text}</span>
|
||||
|
||||
<div>
|
||||
{foreach from=$feedback_imgs[$row3->id] item=row4}
|
||||
<div class="f-preview" style="margin-top: 5px;">
|
||||
<a href="/feedback/images/{$row4->name}" class="fancybox" data-rel="gal{$row3->id}"><img src="{$row4->img}" alt=""></a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
||||
|
||||
{if $smarty.session.admin == 'admin'}
|
||||
<br>
|
||||
<a class="btn btn-primary btn-mini" style="padding: 3px;font-size: 11px;" href="/otzyvy/?edit={$row3->id}">Изменить</a>
|
||||
<button class="btn btn-danger btn-mini f_remove" style="padding: 3px;font-size: 11px;" data-id="{$row3->id}">Удалить</button>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{/foreach}
|
||||
|
||||
{include file='pagination_new.tpl'}
|
||||
|
||||
{include file='feedback/form.tpl'}
|
||||
|
||||
<script src="/feedback/js/jquery-ui.min.js"></script>
|
||||
<script src="/feedback/js/uploader.js"></script>
|
||||
<script src="/feedback/js/feedback.js"></script>
|
||||
25
design/atomic/html/feedback/reply.tpl
Normal file
25
design/atomic/html/feedback/reply.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
<h2>Ответ на отзыв</h2>
|
||||
<i>{$feed_row->name}</i><br>{$feed_row->text}
|
||||
<form id="f_form2" style="margin-top: 20px;">
|
||||
|
||||
<div class="form-group">
|
||||
<label>Комментарий*</label>
|
||||
<textarea class="form-control" name="text"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="well">
|
||||
<div id="f_images2"></div>
|
||||
<div class="clearfix"></div>
|
||||
<span class="btn btn-success fileinput-btn" ><i class="fa fa-plus"> Добавить фото</i>
|
||||
<input type="file" multiple name="img"></span>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-danger f-error" id="f_text_error2" style="display: none;">введите текст комментария</div>
|
||||
|
||||
<button type="submit" class="btn btn-default" id="f_submit_btn2"><i class="fa fa-check"></i> Отправить</button>
|
||||
<p class="help-block">*Обязательное поле</p>
|
||||
<input type="hidden" name="parent_id" value="{$feed_row->id}">
|
||||
<input type="hidden" name="name" value="Ответ">
|
||||
<input type="hidden" name="email" value="">
|
||||
<input type="hidden" name="url" value="save_reply">
|
||||
</form>
|
||||
61
design/atomic/html/form_order.tpl
Normal file
61
design/atomic/html/form_order.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseOrder');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{* Страница с формой обратной связи *}
|
||||
<div class="title">Обратная связь</div>
|
||||
|
||||
{if $message_sent}
|
||||
{$name|escape}, ваше сообщение отправлено.
|
||||
{else}
|
||||
<form class="form feedback_form form-horizontal" method="post">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error=='captcha'}
|
||||
Неверно введена капча
|
||||
{elseif $error=='empty_name'}
|
||||
Введите имя
|
||||
{elseif $error=='empty_email'}
|
||||
Введите email
|
||||
{elseif $error=='empty_text'}
|
||||
Введите сообщение
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Имя</label>
|
||||
<div class="col-sm-12">
|
||||
<input class="form-control" placeholder="Имя" data-format=".+" data-notice="Введите имя" value="{$name|escape}" name="name" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone" class="col-sm-2 control-label">Телефон</label>
|
||||
<div class="col-sm-12">
|
||||
<input class="form-control" placeholder="Телефон" data-format="phone" data-notice="Введите телефон" value="{$email|escape}" name="phone" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-12">
|
||||
<input class="form-control" placeholder="Email" data-format="email" data-notice="Введите email" value="{$email|escape}" name="email" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message" class="col-sm-2 control-label">Сообщение</label>
|
||||
<div class="col-sm-12">
|
||||
<textarea class="form-control" placeholder="Сообщение" data-format=".+" data-notice="Введите сообщение" value="{$message|escape}" name="message">{$message|escape}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseOrder">
|
||||
<input class="btn pull-right form-submit" type="submit" name="feedback" value="Отправить" />
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
56
design/atomic/html/forms/bottom.tpl
Normal file
56
design/atomic/html/forms/bottom.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseBottom');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
<div class="title">Обратная связь</div>
|
||||
<div id="bottomForm">
|
||||
<form class="form form-horizontal" method="post">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Имя</label>
|
||||
<div class="col-sm-12">
|
||||
<input class="form-control" placeholder="Имя" name="name" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Телефон</label>
|
||||
<div class="col-sm-12">
|
||||
<input required class="form-control" placeholder="Телефон" name="phone" maxlength="255" type="text" data-min="5"/>
|
||||
<div class="help-block err phone-error">Введите телефон</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-12">
|
||||
<input class="form-control" placeholder="Email" name="email" maxlength="255" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Сообщение</label>
|
||||
<div class="col-sm-12">
|
||||
<textarea class="form-control" placeholder="Сообщение" name="message"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<button class="btn callback-submit "type="submit">Отправить</button>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseBottom">
|
||||
<input type="hidden" name="_url" value="/modal-form/bottom_send.php">
|
||||
<input type="hidden" name="page_link">
|
||||
<input type="hidden" name="page_name">
|
||||
|
||||
</form>
|
||||
|
||||
<div class="callback-success alert alert-success" style="font-size: 15px;display:none;margin-top:210px;">Ваше сообщение отправлено</div>
|
||||
|
||||
</div>
|
||||
52
design/atomic/html/forms/callback.tpl
Normal file
52
design/atomic/html/forms/callback.tpl
Normal file
@@ -0,0 +1,52 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseCallback');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div id="callback_form" style="display:none;" class="modal-forms">
|
||||
|
||||
<form class="form-horizontal" data-style="width: 550px;">
|
||||
|
||||
<div class="callback-header h2" style="font-size: 18px;">Заявка на обратный звонок</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Имя</label>
|
||||
<div class="col-sm-9">
|
||||
<input name="name" class="form-control" placeholder="Как к Вам обращаться">
|
||||
<div class="help-block err name-error"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Телефон *</label>
|
||||
<div class="col-sm-9">
|
||||
<input required name="phone" class="form-control" data-min="5" placeholder="Телефон для связи">
|
||||
<div class="help-block err phone-error">Телефон должен быть указан</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Комментарий</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea name="comment" class="form-control" placeholder="Комментарий"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseCallback">
|
||||
<div class="form-group" style="padding-left: 20px;">
|
||||
<button class="btn btn-default callback-submit" type="submit">Отправить</button>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="_url" value="/modal-form/callback_send.php">
|
||||
|
||||
|
||||
</form>
|
||||
<div class="callback-success alert alert-success" style="font-size: 15px;display:none;">Ваше сообщение отправлено</div>
|
||||
</div>
|
||||
56
design/atomic/html/forms/question.tpl
Normal file
56
design/atomic/html/forms/question.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseBottoque');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div id="question_form" style="display:none;" class="modal-forms">
|
||||
|
||||
<form class="form-horizontal">
|
||||
|
||||
<div class="callback-header h2" style="font-size: 18px;">Задать вопрос</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Ваше имя</label>
|
||||
<div class="col-sm-9">
|
||||
<input name="name" class="form-control">
|
||||
<div class="help-block err name-error">Введите Ваше имя</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Телефон*</label>
|
||||
<div class="col-sm-9">
|
||||
<input required name="phone" class="form-control" data-min="5">
|
||||
<div class="help-block err phone-error">Введите телефон</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Комментарий</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea name="comment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="padding-left: 20px;">
|
||||
<button class="btn btn-default callback-submit" type="submit">Отправить</button>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseBottoque">
|
||||
|
||||
<input type="hidden" name="_url" value="/modal-form/question_send.php">
|
||||
<input type="hidden" name="page_link">
|
||||
<input type="hidden" name="page_name">
|
||||
|
||||
|
||||
</form>
|
||||
<div class="callback-success alert alert-success" style="font-size: 15px;display:none;">Ваше сообщение отправлено</div>
|
||||
</div>
|
||||
58
design/atomic/html/forms/service.tpl
Normal file
58
design/atomic/html/forms/service.tpl
Normal file
@@ -0,0 +1,58 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseBottser');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div id="service_form" style="display:none;" class="modal-forms">
|
||||
|
||||
<form class="form-horizontal">
|
||||
|
||||
<div class="callback-header h2" style="font-size: 18px;">Заказать такую же работу</div>
|
||||
|
||||
<div class="service-form-link-header"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Ваше имя</label>
|
||||
<div class="col-sm-9">
|
||||
<input name="name" class="form-control">
|
||||
<div class="help-block err name-error">Введите Ваше имя</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Телефон*</label>
|
||||
<div class="col-sm-9">
|
||||
<input required name="phone" class="form-control" data-min="5">
|
||||
<div class="help-block err phone-error">Введите телефон</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Комментарий</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea name="comment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="padding-left: 20px;">
|
||||
<button class="btn btn-default callback-submit" type="submit">Отправить</button>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseBottser">
|
||||
|
||||
<input type="hidden" name="_url" value="/modal-form/service_send.php">
|
||||
<input type="hidden" name="page_link">
|
||||
<input type="hidden" name="page_name">
|
||||
|
||||
|
||||
</form>
|
||||
<div class="callback-success alert alert-success" style="font-size: 15px;display:none;">Ваше сообщение отправлено</div>
|
||||
</div>
|
||||
71
design/atomic/html/forms/zakaz.tpl
Normal file
71
design/atomic/html/forms/zakaz.tpl
Normal file
@@ -0,0 +1,71 @@
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseBottzakaz');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div id="zakaz_form" style="display:none;" class="modal-forms">
|
||||
|
||||
<form class="form-horizontal" >
|
||||
|
||||
<div class="callback-header h2" style="font-size: 18px;">Заказать с установкой</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Ваше имя</label>
|
||||
<div class="col-sm-9">
|
||||
<input name="name" class="form-control">
|
||||
<div class="help-block err name-error">Введите Ваше имя</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Телефон*</label>
|
||||
<div class="col-sm-9">
|
||||
<input required name="phone" class="form-control" data-min="5">
|
||||
<div class="help-block err phone-error">Введите телефон</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Марка авто</label>
|
||||
<div class="col-sm-9">
|
||||
<input name="marka" class="form-control">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Модель авто</label>
|
||||
<div class="col-sm-9">
|
||||
<input name="model" class="form-control">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Комментарий</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea name="comment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="padding-left: 20px;">
|
||||
<button class="btn btn-default callback-submit" type="submit">Отправить</button>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseBottzakaz">
|
||||
|
||||
<input type="hidden" name="_url" value="/modal-form/zakaz_send.php">
|
||||
<input type="hidden" name="page_link">
|
||||
<input type="hidden" name="page_name">
|
||||
|
||||
|
||||
</form>
|
||||
<div class="callback-success alert alert-success" style="font-size: 15px;display:none;">Ваше сообщение отправлено</div>
|
||||
</div>
|
||||
66
design/atomic/html/graphic_block_services.tpl
Normal file
66
design/atomic/html/graphic_block_services.tpl
Normal file
File diff suppressed because one or more lines are too long
97
design/atomic/html/hits.tpl
Normal file
97
design/atomic/html/hits.tpl
Normal file
@@ -0,0 +1,97 @@
|
||||
{* Для того чтобы обернуть центральный блок в шаблон, отличный от index.tpl *}
|
||||
{* Укажите нужный шаблон строкой ниже. Это работает и для других модулей *}
|
||||
{$wrapper = 'index.tpl' scope=parent}
|
||||
|
||||
{* Заголовок страницы *}
|
||||
|
||||
|
||||
{* Тело страницы *}
|
||||
{$page->body}
|
||||
|
||||
{if $products}
|
||||
<!-- Список товаров-->
|
||||
<ul id="catalog">
|
||||
|
||||
{foreach $products as $product}
|
||||
<!-- Товар-->
|
||||
<li class="product">
|
||||
|
||||
<!-- Фото товара -->
|
||||
{if $product->image}
|
||||
<div class="image">
|
||||
<a href="/products/{$product->url}/"><img src="{$product->image->filename|resize:200:200}" alt="{$product->name|escape}"/></a>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Фото товара (The End) -->
|
||||
|
||||
<!-- Название товара -->
|
||||
<h3><a product_id="{$product->id}" href="/products/{$product->url}/">{$product->name|escape}</a></h3>
|
||||
<!-- Название товара (The End) -->
|
||||
|
||||
<!-- Описание товара -->
|
||||
<div>{$product->annotation}</div>
|
||||
<!-- Описание товара (The End) -->
|
||||
|
||||
{if $product->variants|count > 0}
|
||||
<!-- Цена и заказ товара -->
|
||||
<form class="cart" method="get" action="cart">
|
||||
|
||||
<!-- Выбор варианта товара -->
|
||||
{* Не показывать выбор варианта, если он один и без названия *}
|
||||
<select name="variant" {if $product->variants|count==1 && !$product->variant->name}style='display:none;'{/if}>
|
||||
{foreach $product->variants as $v}
|
||||
<option value="{$v->id}" {if $v->compare_price > 0}compare_price="{$v->compare_price|convert}"{/if} price="{$v->price|convert}">
|
||||
{$v->name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
|
||||
<!-- Цена товара -->
|
||||
<div class="price">
|
||||
<strike>
|
||||
{if $product->variant->compare_price > 0}
|
||||
{$product->variant->compare_price|convert}
|
||||
{/if}
|
||||
</strike>
|
||||
<span>{$product->variant->price|convert}</span>
|
||||
<i>{$currency->sign|escape}</i>
|
||||
</div>
|
||||
<!-- Цена товара (The End) -->
|
||||
|
||||
<!-- В корзину -->
|
||||
<input type="submit" class="add_to_cart" value="В корзину" added_text="Добавлено"/>
|
||||
<!-- В корзину (The End) -->
|
||||
|
||||
</form>
|
||||
<!-- Цена и заказ товара (The End)-->
|
||||
{/if}
|
||||
|
||||
</li>
|
||||
<!-- Товар (The End)-->
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
{/if}
|
||||
<!--Каталог товаров (The End)-->
|
||||
|
||||
<!-- Аяксовая корзина -->
|
||||
<script src="js/ajax-cart.js"></script>
|
||||
|
||||
<script>
|
||||
{literal}
|
||||
$(function() {
|
||||
// Выбор вариантов
|
||||
$('select[name=variant]').change(function() {
|
||||
price = $(this).find('option:selected').attr('price');
|
||||
compare_price = '';
|
||||
if(typeof $(this).find('option:selected').attr('compare_price') == 'string')
|
||||
compare_price = $(this).find('option:selected').attr('compare_price');
|
||||
$(this).find('option:selected').attr('compare_price');
|
||||
$(this).closest('form').find('span').html(price);
|
||||
$(this).closest('form').find('strike').html(compare_price);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
640
design/atomic/html/index.tpl
Normal file
640
design/atomic/html/index.tpl
Normal file
@@ -0,0 +1,640 @@
|
||||
<!doctype html>
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||
<head>
|
||||
|
||||
{if !$additional_title}{assign var="additional_title" value=""}{/if}
|
||||
|
||||
<base href="https://atomicgarage.ru/">
|
||||
<title>{$meta_title|escape}{if !$no_additional_title}{$additional_title}{/if}{if $smarty.get.page > 1} | страница {$smarty.get.page}{/if}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
|
||||
<meta name="description" content="{$meta_description|escape}{if $smarty.get.page > 1} - страница {$smarty.get.page}{/if}" >
|
||||
<meta name="keywords" content="{$meta_keywords|escape}{if $smarty.get.page > 1}, страница {$smarty.get.page}{/if}" >
|
||||
<meta name="yandex-verification" content="7f52b2de3668af02" />
|
||||
<meta property="og:title" content="{if $module == 'ProductsView' || $module == 'ProductView'}{$product->name|escape}{else}{$page->header|escape}{/if}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{$config->root_url}{url}" />
|
||||
<meta property="og:image" content="{if $module == 'ProductsView' || $module == 'ProductView'}{$product->image->filename|resize:330:300}{else}https://atomicgarage.ru/design/atomic/images/ch-logo.png{/if}" />
|
||||
{if $module == 'ProductsView' || $module == 'ProductView'}<meta property="og:description" content="{$product->annotation|strip_tags}" />{/if}
|
||||
{*<link rel="apple-touch-icon" href="/design/{$settings->theme|escape}/favicon.png">
|
||||
<link rel="icon" href="/design/{$settings->theme|escape}/favicon.png"> *}
|
||||
{*<link rel="icon" href="/design/{$settings->theme|escape}/images/ch-logo.png">*}
|
||||
<link rel="icon" href="/favicon.png">
|
||||
|
||||
{*<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/slate/bootstrap.min.css">*}
|
||||
|
||||
{*<link href="/twentytwenty-master/css/foundation.css" rel="stylesheet" type="text/css" />*}
|
||||
{*<link href="/twentytwenty-master/css/twentytwenty.css" rel="stylesheet" type="text/css" />*}
|
||||
|
||||
{if $detect->isMobile()}
|
||||
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/styles.css?{uniqid()}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/mobile.css?{uniqid()}">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
|
||||
{else}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/styles.css?{uniqid()}">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/desktop.css?{uniqid()}">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
|
||||
<script src="/sovetnik-killer.js?v=5"></script>
|
||||
{/if}
|
||||
|
||||
|
||||
{*if $detect->isMobile()}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/mobile.css?{uniqid()}">
|
||||
{else}
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/desktop.css?{uniqid()}">
|
||||
{/if*}
|
||||
|
||||
|
||||
|
||||
|
||||
{if $rel_canonical}<link rel="canonical" href="{$rel_canonical}"/>{/if}
|
||||
|
||||
</head>
|
||||
<body class="{if $detect->isMobile()}{if $detect->isTablet()}mobile tablet{else}mobile{/if}{else}desktop{/if}">
|
||||
<div class="container wrapper">
|
||||
|
||||
<header>
|
||||
<div class="row top-block hidden-xs">
|
||||
<div class="col-sm-12 col-xs-12 top-menu">
|
||||
<ul>
|
||||
<li><a href="/oplata/">Способы оплаты</a></li>
|
||||
<li><a href="/o-kompanii/">О компании</a></li>
|
||||
<li><a href="/rabota-s-ur-litsami/">Работа с юр. лицами</a></li>
|
||||
<li><a href="/actions/">Акции и скидки</a></li>
|
||||
<li><a href="/sertifikaty/">Сертификаты</a></li>
|
||||
<li><a href="/video-rabot/">Видео</a></li>
|
||||
<li><a href="/user/">Личный Кабинет</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<a href="/" class="logo"><img src="/design/{$settings->theme|escape}/images/ch-logo.png" alt="logo"></a>
|
||||
</div>
|
||||
<div class="col-sm-8 col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 col-xs-12 hidden-xs top-contacts">
|
||||
<div class="phone"><a href="tel:+79219589000">+7 921 958-90-00</a>
|
||||
<a href="https://wa.me/79219589000"><img src="images/wa2.png" width="20"
|
||||
height="20"></a>
|
||||
<a href="https://t.me/+79219589000"><img src="images/tg2.png" width="20"
|
||||
height="20"></a>
|
||||
<a href="https://max.ru/u/f9LHodD0cOJElQ3ZzGTPZfS21kjMv_li_FVmLAOx7r451dVhFjScoYpZTfo"><img src="images/Max_logo_2025.png" width="20"
|
||||
height="20"></a>
|
||||
</div>
|
||||
|
||||
<div class="phone"><a href="tel:+79219589100">+7 921 958-91-00</a>
|
||||
<a href="https://wa.me/79219589100"><img src="images/wa2.png" width="20"
|
||||
height="20"></a>
|
||||
<a href="https://t.me/+79219589100"><img src="images/tg2.png" width="20"
|
||||
height="20"></a>
|
||||
</div>
|
||||
|
||||
<!-- автосервис -->
|
||||
<div class="phone"><a href="tel:+79219589200">+7 921 958-92-00</a>
|
||||
|
||||
<a href="https://t.me/+79219589200"><img src="images/tg2.png" width="20"
|
||||
height="20"></a> <span style="font-size:12px; margin-right:5px">отдел автосервиса</span>
|
||||
</div>
|
||||
|
||||
<!-- div class="address">Санкт-Петербург, Кондратьевский пр. , д. 17 к2к</div -->
|
||||
|
||||
<div class="address">Санкт-Петербург, Нижняя полевая улица, д.1</div>
|
||||
<div class="email"><span style="font-size:12px; margin-right:5px">ПН-ВС 10:00 - 20:00</span> <a href="mailto:info@atomicgarage.ru">info@atomicgarage.ru</a></div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12 ai-callback">
|
||||
|
||||
{if $user}
|
||||
<span id="username"><a href="/user">{$user->name}</a>{if $group->discount>0}, ваша скидка — {$group->discount}%{/if} </span> / <a id="logout" href="/user/logout/">выйти</a>
|
||||
{else}
|
||||
<!-- noindex --><a rel="nofollow" href="/user/login/">вход</a> / <a rel="nofollow" id="register" href="/user/register/">регистрация</a><!-- /noindex -->
|
||||
{/if}
|
||||
|
||||
<button data-href="#callback_form" class="callme_viewform">обратный звонок</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row second-line">
|
||||
<div class="col-sm-44 col-xs-12">
|
||||
<form action="/search/" style="padding:10px 0px;" class="hidden-xs" method="get">
|
||||
|
||||
<div class="input-group top-serch">
|
||||
<span class="input-group-btn"><button class="btn btn-danger btn-sm" type="submit"><span class="glyphicon glyphicon-search"></span></button></span>
|
||||
<input type="text" class="input-sm input_search" name="keyword" value="{$keyword|escape}" placeholder="Поиск по сайту">
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<ul class="social">
|
||||
<li><a href="https://wa.me/79219589000" rel="nofollow" target="_blank"><img src="images/wa1.png" width="40" height="40" alt="WhatsApp"></a>
|
||||
<li><a href="https://www.drive2.ru/o/AtomicGarage/" rel="nofollow" target="_blank"><img src="/design/atomic/images/d-logo.png" alt="Drive2"></a></li>
|
||||
<!--<li><a href="https://www.instagram.com/atomicgaragespb/" rel="nofollow" target="_blank"><img src="/design/atomic/images/instagram-logo.png" alt="Instagram"></a></li>-->
|
||||
<li><a href="https://vk.com/tuningatomicgarage" rel="nofollow" target="_blank"><img src="/design/atomic/images/vk-logo.png" alt="VK"></a></li>
|
||||
<li><a href="https://www.youtube.com/channel/UCjrEqy9OL8BX15knZJA1Gtw?view_as=subscriber" rel="nofollow" target="_blank"><img src="/design/atomic/images/youtube-logo.png" alt="YouTube"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
{if $detect->isMobile()}
|
||||
|
||||
<div class="panel panel-danger collapse-panel" style="margin-bottom:0;">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="#">Основное меню</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
<ul>
|
||||
<li><a href="/">Главная</a></li>
|
||||
{foreach name=page from=$pages item=p}
|
||||
{if $p->menu_id == 1 and $p->name|escape != "Главная"}
|
||||
<li{if ($page && $page->id == $p->id) or $p->url == ' '} class="active"{/if}>
|
||||
<a href="/{$p->url}{if ($p->url != '')}/{/if}">{$p->name|escape}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
{*<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-home"></span></a>*}
|
||||
</div>
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li><a href="/">Главная</a></li>
|
||||
|
||||
{foreach name=page from=$pages item=p}
|
||||
{* Выводим только страницы из первого меню *}
|
||||
{if $p->menu_id == 1 and $p->name|escape != "Главная"}
|
||||
|
||||
|
||||
<li{if ($page && $page->id == $p->id) or $p->url == ' '} class="active"{/if}>
|
||||
<a href="/{$p->url}{if ($p->url != '')}/{/if}">{$p->name|escape}</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
{*<!--
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<form action="products?" style="width:185px; padding:10px 0px;">
|
||||
<input type="hidden" name="{if $keyword}{$keyword}{else}_keyword{/if}" value="search">
|
||||
<input type="hidden" name="keyword" value="">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control input-sm input_search" name="keyword" value="{$keyword|escape}" placeholder="">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-danger btn-sm" type="submit"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</span> </div>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
-->*}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{* MOBILE *}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
|
||||
{if $services_view}
|
||||
<div class="sidebar clearfix">
|
||||
{include file='sidebar_catalog.tpl'}
|
||||
</div>
|
||||
<div class="content clearfix">
|
||||
{include file='services.tpl'}
|
||||
</div>
|
||||
{else}
|
||||
<div class="sidebar clearfix">
|
||||
{include file='sidebar_catalog.tpl'}
|
||||
</div>
|
||||
<div class="content clearfix">
|
||||
{$content}
|
||||
{include file='banner/foot.banner.tpl'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* / MOBILE *}
|
||||
{else}
|
||||
{* DESKTOP *}
|
||||
|
||||
{if $services_view}
|
||||
{include file='services.tpl'}
|
||||
{else}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!-- content -->
|
||||
<div class="content">
|
||||
|
||||
{$content}
|
||||
|
||||
</div>
|
||||
<!-- /content -->
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{* DESKTOP *}
|
||||
<div class="push"></div>
|
||||
|
||||
</div>
|
||||
{if $smarty.server.REQUEST_URI!="/otzyvy/"}
|
||||
<div class="ai-form">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<span class="map">
|
||||
<!--<script async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A59660b7030da2b410048f4751d51fe7b7c957a1120f3f2f99997df438c345256&width=535&height=350&lang=ru_RU&scroll=true"></script>-->
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
<a href="/contact/">
|
||||
<img src="/images/footer-map2.jpg">
|
||||
<!--<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A59660b7030da2b410048f4751d51fe7b7c957a1120f3f2f99997df438c345256&width=368&height=311&lang=ru_RU&scroll=false"></script>-->
|
||||
</a>
|
||||
{else}
|
||||
<!-- script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A59660b7030da2b410048f4751d51fe7b7c957a1120f3f2f99997df438c345256&width=535&height=350&lang=ru_RU&scroll=true"></script -->
|
||||
|
||||
<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A5ea0cf38057404db92287e2a2c7c5c0118da61e32779ab8ffd0c1ca991a0e49d&width=535&height=350&lang=ru_RU&scroll=true"></script>
|
||||
|
||||
{/if}
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{*include file='form_order.tpl'*}
|
||||
{include file='forms/bottom.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<img class="bottom-logo" src="/design/{$settings->theme|escape}/images/ch-logo.png" alt="logo">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="/o-kompanii/">О тюнинг центре</a></li>
|
||||
<li><a href="/rekvizity/">Наши реквизиты</a></li>
|
||||
<li><a href="/rabota-s-ur-litsami/">Работа с юр. лицами</a></li>
|
||||
<li><a href="/actions/">Акции и скидки</a></li>
|
||||
<li><a href="/vakansii/">Вакансии</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="javascript:void(0)" class="callme_viewform">Связаться с нами</a></li>
|
||||
<li><a href="/oplata/">Способы оплаты</a></li>
|
||||
<li><a href="/garantiya-na-uslugi/">Гарантии на услуги</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="/user/">Личный Кабинет</a></li>
|
||||
<li><a href="/sitemap/">Карта сайта</a></li>
|
||||
<li><a href="/politika-konfidentsialnosti/">Политика конфиденциальности</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="/tuning-centr/bronirovanie-far/">Бронирование фар</a></li>
|
||||
<li><a href="/tuning-centr/polirovka-far/">Полировка фар</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-signalizacii-na-avtomobil/">Установка сигнализации</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-sabvuferov/">Установка сабвуферов</a></li>
|
||||
<li><a href="/tuning-centr/bronirovanie-plenkoj-avtomobilja/">Оклейка антигравийной пленкой</a></li>
|
||||
<li><a href="/tuning-centr/shumoizoljacija-avto/">Шумоизоляция</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row ai-padding">
|
||||
<div class="col-sm-3">
|
||||
<div class="bottom-contacts" itemscope itemtype="http://schema.org/Organization">
|
||||
<meta itemprop="name" content="Тюнинг центр Atomic Garage">
|
||||
<div class="phone"><a href="tel:+79219589000" itemprop="telephone">+7 921 958-90-00</a></div>
|
||||
<div class="phone"><a href="tel:+79219589100" itemprop="telephone">+7 921 958-91-00</a></div>
|
||||
|
||||
<div class="email"><a href="mailto:info@atomicgarage.ru" itemprop="email">info@atomicgarage.ru</a></div>
|
||||
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<div class="address" itemprop="addressLocality">194292, Санкт-Петербург,</div>
|
||||
<!-- div class="address" itemprop="streetAddress">Кондратьевский пр. , д. 17 к2к</div -->
|
||||
|
||||
<div class="address" itemprop="streetAddress">Нижняя Полевая ул., д.1</div>
|
||||
<div class="address" itemprop="streetAddress">Пн-Вс 10:00 - 20:00</div>
|
||||
<div class="address" itemprop="streetAddress">ИНН 780231374980</div>
|
||||
<div class="address" itemprop="streetAddress">ОГРНИП 312784710800101</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<img src="/design/{$settings->theme|escape}/images/card-icons.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<ul class="social">
|
||||
<li><a href="https://www.drive2.ru/o/AtomicGarage/" rel="nofollow" target="_blank"><img src="/design/atomic/images/d-logo.png" alt="Drive2"></a></li>
|
||||
<!--<li><a href="https://www.instagram.com/atomicgaragespb/" rel="nofollow" target="_blank"><img src="/design/atomic/images/instagram-logo.png" alt="Instagram"></a></li>-->
|
||||
<li><a href="https://vk.com/tuningatomicgarage" rel="nofollow" target="_blank"><img src="/design/atomic/images/vk-logo.png" alt="VK"></a></li>
|
||||
<li><a href="https://www.youtube.com/channel/UCjrEqy9OL8BX15knZJA1Gtw?view_as=subscriber" rel="nofollow" target="_blank"><img src="/design/atomic/images/youtube-logo.png" alt="YouTube"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12 ai-copyright">
|
||||
<div class="copyright text-center">© <span>Тюнинг центр ATOMICGARAGE 2017-{date("Y")} </span><br>Тюнинг и ремонт автомобильной оптики любой сложности.<br>Восстановление и улучшение качества света.<br>Комплексное обслуживание авто.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="back-top"><i class="fa fa-chevron-up"></i></div>
|
||||
</footer>
|
||||
|
||||
|
||||
{*if $detect->isMobile()}
|
||||
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/styles.css?{uniqid()}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/mobile.css?{uniqid()}">
|
||||
<cript src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
|
||||
|
||||
<script src="/sovetnik-killer.js?v=5"></script>
|
||||
{/if*}
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.css" media="screen">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.js"></script>
|
||||
|
||||
<!--
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/js/fancybox3/jquery.fancybox.css" media="screen">
|
||||
<script src="/js/fancybox3/jquery.fancybox.min.js"></script>
|
||||
-->
|
||||
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/js/sm.slider/smslider.css" media="screen">
|
||||
{*<link rel="stylesheet" property="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">*}
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/lib/font-awesome-4.7.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/js/baloon/css/baloon.css">
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" async></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="/design/{$settings->theme|escape}/js/jquery.flexslider-min.js"></script>
|
||||
<script>
|
||||
{literal}
|
||||
|
||||
$('.content table:not("form table")').removeAttr('style').removeAttr('class').removeAttr('border').removeAttr('cellpadding').removeAttr('cellspacing').removeAttr('align').addClass('table table-striped table-bordered');
|
||||
|
||||
$(function() {
|
||||
$('[data-js-style]').each(function(){
|
||||
$(this).attr('style', $(this).attr('data-js-style'));
|
||||
});
|
||||
$('.flexslider').flexslider();
|
||||
$('.flex-control-nav').addClass('pagination pagination-sm');
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
$("#back-top").hide();
|
||||
// fade in #back-top
|
||||
$(window).scroll(function () {
|
||||
if ($(this).scrollTop() > 100)
|
||||
{
|
||||
$('#back-top').fadeIn();
|
||||
if ($('#bas_items').text() != "пока нет товаров")
|
||||
{
|
||||
$('#xcart').addClass("flatrow");
|
||||
$('.tableFloatingHeader').css('top','50px');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#back-top').fadeOut();
|
||||
$('#xcart').removeClass("flatrow");
|
||||
$('.tableFloatingHeader').css('top','0px');
|
||||
}
|
||||
});
|
||||
// scroll body to 0px on click
|
||||
$('#back-top').click(function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: 0
|
||||
}, 800);
|
||||
});
|
||||
|
||||
</script>
|
||||
<script src="/lib/jquery.maskedinput.min.js" async></script>
|
||||
<script src="/design/{$settings->theme|escape}/js/extra.js?v=262"></script>
|
||||
{*<script src="//vk.com/js/api/openapi.js?115"></script>*}
|
||||
<script src="/js/ctrlnavigate.js" async></script>
|
||||
<!--<script src="/design/{$settings->theme|escape}/js/jquery-ui.min.js"></script>-->
|
||||
|
||||
<script src="/design/{$settings->theme|escape}/js/ajax_cart.js?v=2"></script>
|
||||
<script src="/design/{$settings->theme|escape}/js/shopcart-view.js?{uniqid()}"></script>
|
||||
<script src="/js/baloon/js/baloon.js?v=2" async></script>
|
||||
{*
|
||||
<link property="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>
|
||||
*}
|
||||
<script src="/feedback/js/jquery-ui.min.js"></script>
|
||||
<script src="/feedback/js/uploader.js"></script>
|
||||
<script src="/feedback/js/feedback.js"></script>
|
||||
<script src="/js/autocomplete/jquery.autocomplete-min.js"></script>
|
||||
<script src="/design/{$settings->theme|escape}/js/sm.slider/jquery.smslider.min.js"></script>
|
||||
{if $smarty.session.admin == 'admin'}
|
||||
<script src="/js/admintooltip/admintooltip.js" async></script>
|
||||
{/if}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
<script src="/design/{$settings->theme|escape}/js/collapse-panel.js?v=42" async></script>
|
||||
{/if}
|
||||
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
$('a.fancybox').each(function(){
|
||||
var $this = $(this);
|
||||
if(typeof $this.attr('data-rel') != 'undefined') $this.attr('rel', $this.attr('data-rel'));
|
||||
})
|
||||
|
||||
$('.fancybox').fancybox({
|
||||
helpers: {
|
||||
overlay: {
|
||||
locked: false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//console.log(Notification);
|
||||
});
|
||||
</script>
|
||||
|
||||
{/literal}
|
||||
|
||||
{*
|
||||
<script src="/feedback/js/jquery-ui.min.js"></script>
|
||||
<script src="/feedback/js/uploader.js"></script>
|
||||
<script src="/feedback/js/feedback.js"></script>*}
|
||||
|
||||
|
||||
|
||||
|
||||
{if !$detect->isMobile()}
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/design/carheart/js/bxslider/jquery.bxslider.min.css">
|
||||
<script src="/design/carheart/js/bxslider/jquery.bxslider.min.js"></script>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
{if $smarty.session.admin == 'admin'}<script src="/feedback/feedback_admin.js"></script>{/if}
|
||||
|
||||
{*
|
||||
<a href="/catalog/" id="right-cat-btn" style="display:none" rel="nofollow" target="_blank">
|
||||
<span>Каталог продукции</span>
|
||||
</a> *}
|
||||
<script src="/modal-form/mask.js"></script>
|
||||
<script src="/modal-form/callbackForm.js?v=324"></script>
|
||||
{include file='forms/callback.tpl'}
|
||||
{literal}
|
||||
<!-- noindex -->
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript" >
|
||||
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||
|
||||
ym(47497642, "init", {
|
||||
id:47497642,
|
||||
clickmap:true,
|
||||
trackLinks:true,
|
||||
accurateTrackBounce:true,
|
||||
webvisor:true,
|
||||
ecommerce:"dataLayer"
|
||||
});
|
||||
</script>
|
||||
<noscript><div><img src="https://mc.yandex.ru/watch/47497642" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113336118-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-113336118-1');
|
||||
</script>
|
||||
|
||||
{/literal}
|
||||
{*
|
||||
<div style="display:none;">
|
||||
<!--LiveInternet counter--><script>
|
||||
document.write("<a href='//www.liveinternet.ru/click' "+
|
||||
"target=_blank><img src='//counter.yadro.ru/hit?t41.5;r"+
|
||||
escape(document.referrer)+((typeof(screen)=="undefined")?"":
|
||||
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
|
||||
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||||
";h"+escape(document.title.substring(0,150))+";"+Math.random()+
|
||||
"' alt='' title='LiveInternet' "+
|
||||
"border='0' width='31' height='31'><\/a>")
|
||||
</script><!--/LiveInternet-->
|
||||
</div>
|
||||
<!-- Top100 (Kraken) Counter -->
|
||||
<script>
|
||||
(function (w, d, c) {
|
||||
(w[c] = w[c] || []).push(function() {
|
||||
var options = {
|
||||
project: 5753275,
|
||||
};
|
||||
try {
|
||||
w.top100Counter = new top100(options);
|
||||
} catch(e) { }
|
||||
});
|
||||
var n = d.getElementsByTagName("script")[0],
|
||||
s = d.createElement("script"),
|
||||
f = function () { n.parentNode.insertBefore(s, n); };
|
||||
s.type = "text/javascript";
|
||||
s.async = true;
|
||||
s.src =
|
||||
(d.location.protocol == "https:" ? "https:" : "http:") +
|
||||
"//st.top100.ru/top100/top100.js";
|
||||
|
||||
if (w.opera == "[object Opera]") {
|
||||
d.addEventListener("DOMContentLoaded", f, false);
|
||||
} else { f(); }
|
||||
})(window, document, "_top100q");
|
||||
</script>
|
||||
<noscript>
|
||||
<img src="//counter.rambler.ru/top100.cnt?pid=5753275" alt="" />
|
||||
</noscript>
|
||||
<!-- END Top100 (Kraken) Counter -->
|
||||
*}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
function yandexReachGoal(target){ //console.log(target); // _ym_debug=1
|
||||
if(typeof ym != 'undefined') ym(47497642, 'reachGoal', target);
|
||||
}
|
||||
</script>
|
||||
<script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
|
||||
<script src="https://yastatic.net/share2/share.js"></script>
|
||||
|
||||
<!-- /noindex -->
|
||||
{/literal}
|
||||
|
||||
<script src="/js/sxValidator.js?v=22"></script>
|
||||
|
||||
{if $smarty.session.admin == 'admin'}
|
||||
<link rel="stylesheet" type="text/css" href="/js/admintooltip/css/admintooltip.css" >
|
||||
{/if}
|
||||
|
||||
<!-- Begin Verbox {literal} -->
|
||||
<script id="supportScript" async="" src="//admin.verbox.ru/support/support.js?h=8345a3da2b2f80737b77e8bac7ab1528"></script>
|
||||
<!-- {/literal} End Verbox -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
651
design/atomic/html/index_back.tpl
Normal file
651
design/atomic/html/index_back.tpl
Normal file
@@ -0,0 +1,651 @@
|
||||
<!doctype html>
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||
<head>
|
||||
|
||||
{if !$additional_title}{assign var="additional_title" value=""}{/if}
|
||||
|
||||
<base href="https://atomicgarage.ru/">
|
||||
<title>{$meta_title|escape}{if !$no_additional_title}{$additional_title}{/if}{if $smarty.get.page > 1} | страница {$smarty.get.page}{/if}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
|
||||
<meta name="description" content="{$meta_description|escape}{if $smarty.get.page > 1} - страница {$smarty.get.page}{/if}" >
|
||||
<meta name="keywords" content="{$meta_keywords|escape}{if $smarty.get.page > 1}, страница {$smarty.get.page}{/if}" >
|
||||
<meta name="yandex-verification" content="7f52b2de3668af02" />
|
||||
<meta property="og:title" content="{if $module == 'ProductsView' || $module == 'ProductView'}{$product->name|escape}{else}{$page->header|escape}{/if}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{$config->root_url}{url}" />
|
||||
<meta property="og:image" content="{if $module == 'ProductsView' || $module == 'ProductView'}{$product->image->filename|resize:330:300}{else}https://atomicgarage.ru/design/atomic/images/ch-logo.png{/if}" />
|
||||
{if $module == 'ProductsView' || $module == 'ProductView'}<meta property="og:description" content="{$product->annotation|strip_tags}" />{/if}
|
||||
{*<link rel="apple-touch-icon" href="/design/{$settings->theme|escape}/favicon.png">
|
||||
<link rel="icon" href="/design/{$settings->theme|escape}/favicon.png"> *}
|
||||
{*<link rel="icon" href="/design/{$settings->theme|escape}/images/ch-logo.png">*}
|
||||
<link rel="icon" href="/favicon.png">
|
||||
|
||||
{*<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/slate/bootstrap.min.css">*}
|
||||
|
||||
{*<link href="/twentytwenty-master/css/foundation.css" rel="stylesheet" type="text/css" />*}
|
||||
{*<link href="/twentytwenty-master/css/twentytwenty.css" rel="stylesheet" type="text/css" />*}
|
||||
|
||||
{if $detect->isMobile()}
|
||||
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/styles.css?{uniqid()}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/mobile.css?{uniqid()}">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
|
||||
{else}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/styles.css?{uniqid()}">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/desktop.css?{uniqid()}">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
|
||||
<script src="/sovetnik-killer.js?v=5"></script>
|
||||
{/if}
|
||||
|
||||
|
||||
{*if $detect->isMobile()}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/mobile.css?{uniqid()}">
|
||||
{else}
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/desktop.css?{uniqid()}">
|
||||
{/if*}
|
||||
|
||||
|
||||
|
||||
|
||||
{if $rel_canonical}<link rel="canonical" href="{$rel_canonical}"/>{/if}
|
||||
|
||||
</head>
|
||||
<body class="{if $detect->isMobile()}{if $detect->isTablet()}mobile tablet{else}mobile{/if}{else}desktop{/if}">
|
||||
<div class="container wrapper">
|
||||
|
||||
<header>
|
||||
<div class="row top-block hidden-xs">
|
||||
<div class="col-sm-12 col-xs-12 top-menu">
|
||||
<ul>
|
||||
<li><a href="/oplata/">Способы оплаты</a></li>
|
||||
<li><a href="/o-kompanii/">О компании</a></li>
|
||||
<li><a href="/rabota-s-ur-litsami/">Работа с юр. лицами</a></li>
|
||||
<li><a href="/actions/">Акции и скидки</a></li>
|
||||
<li><a href="/sertifikaty/">Сертификаты</a></li>
|
||||
<li><a href="/video-rabot/">Видео</a></li>
|
||||
<li><a href="/user/">Личный Кабинет</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<a href="/" class="logo"><img src="/design/{$settings->theme|escape}/images/ch-logo.png" alt="logo"></a>
|
||||
</div>
|
||||
<div class="col-sm-8 col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 col-xs-12 hidden-xs top-contacts">
|
||||
<div class="phone"><a href="tel:+79219589000">+7 921 958-90-00</a>
|
||||
<a href="https://wa.me/79219589000"><img src="images/wa1.png" width="30"
|
||||
height="30"></a>
|
||||
</div>
|
||||
<div class="phone"><a href="tel:+79219589100">+7 921 958-91-00</a></div>
|
||||
<div class="phone"><a href="tel:+79219589200">+7 921 958-92-00</a></div>
|
||||
<!-- div class="address">Санкт-Петербург, Кондратьевский пр. , д. 17 к2к</div -->
|
||||
|
||||
<div class="address">Санкт-Петербург, Нижняя полевая улица, д.1</div>
|
||||
<div class="email"><span style="font-size:12px; margin-right:5px">ПН-ВС 10:00 - 20:00</span> <a href="mailto:info@atomicgarage.ru">info@atomicgarage.ru</a></div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12 ai-callback">
|
||||
|
||||
{if $user}
|
||||
<span id="username"><a href="/user">{$user->name}</a>{if $group->discount>0}, ваша скидка — {$group->discount}%{/if} </span> / <a id="logout" href="/user/logout/">выйти</a>
|
||||
{else}
|
||||
<!-- noindex --><a rel="nofollow" href="/user/login/">вход</a> / <a rel="nofollow" id="register" href="/user/register/">регистрация</a><!-- /noindex -->
|
||||
{/if}
|
||||
|
||||
<button data-href="#callback_form" class="callme_viewform">обратный звонок</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row second-line">
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<form action="/search/" style="padding:10px 0px;" class="hidden-xs" method="get">
|
||||
|
||||
<div class="input-group top-serch">
|
||||
<span class="input-group-btn"><button class="btn btn-danger btn-sm" type="submit"><span class="glyphicon glyphicon-search"></span></button></span>
|
||||
<input type="text" class="input-sm input_search" name="keyword" value="{$keyword|escape}" placeholder="Поиск по сайту">
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<div id="hidden-cart" class="hidden-xs">
|
||||
<div id="top-shopcart" class="cart">
|
||||
<div class="mobile__header--phone">
|
||||
<div class="mobile__header--phone-link">
|
||||
<a href="tel:+79219589000">+7-921-958-90-00</a>
|
||||
</div>
|
||||
<div class="mobile__header--phone-link">
|
||||
<a href="tel:+79219589100">+7-921-958-91-00</a>
|
||||
</div>
|
||||
<div class="mobile__header--phone-link">
|
||||
<a href="tel:+79219589200 ">+7-921-958-92-00</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cart-info">
|
||||
<div onclick="javascript: window.location.href='/cart/';" style="cursor: pointer;" title="Оформить покупки">
|
||||
<div id="basket_ajax">
|
||||
<div id="cart_informer">
|
||||
{* Обновляемая аяксом корзина должна быть в отдельном файле *}
|
||||
{include file='cart_informer.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<ul class="social">
|
||||
<li><a href="https://wa.me/79219589000" rel="nofollow" target="_blank"><img src="images/wa1.png" width="40" height="40" alt="WhatsApp"></a>
|
||||
<li><a href="https://www.drive2.ru/o/AtomicGarage/" rel="nofollow" target="_blank"><img src="/design/atomic/images/d-logo.png" alt="Drive2"></a></li>
|
||||
<!--<li><a href="https://www.instagram.com/atomicgaragespb/" rel="nofollow" target="_blank"><img src="/design/atomic/images/instagram-logo.png" alt="Instagram"></a></li>-->
|
||||
<li><a href="https://vk.com/tuningatomicgarage" rel="nofollow" target="_blank"><img src="/design/atomic/images/vk-logo.png" alt="VK"></a></li>
|
||||
<li><a href="https://www.youtube.com/channel/UCjrEqy9OL8BX15knZJA1Gtw?view_as=subscriber" rel="nofollow" target="_blank"><img src="/design/atomic/images/youtube-logo.png" alt="YouTube"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
{if $detect->isMobile()}
|
||||
|
||||
<div class="panel panel-danger collapse-panel" style="margin-bottom:0;">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="#">Основное меню</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
<ul>
|
||||
<li><a href="/">Главная</a></li>
|
||||
{foreach name=page from=$pages item=p}
|
||||
{if $p->menu_id == 1 and $p->name|escape != "Главная"}
|
||||
<li{if ($page && $page->id == $p->id) or $p->url == ' '} class="active"{/if}>
|
||||
<a href="/{$p->url}{if ($p->url != '')}/{/if}">{$p->name|escape}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
{*<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-home"></span></a>*}
|
||||
</div>
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li><a href="/">Главная</a></li>
|
||||
|
||||
{foreach name=page from=$pages item=p}
|
||||
{* Выводим только страницы из первого меню *}
|
||||
{if $p->menu_id == 1 and $p->name|escape != "Главная"}
|
||||
|
||||
|
||||
<li{if ($page && $page->id == $p->id) or $p->url == ' '} class="active"{/if}>
|
||||
<a href="/{$p->url}{if ($p->url != '')}/{/if}">{$p->name|escape}</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
{*<!--
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<form action="products?" style="width:185px; padding:10px 0px;">
|
||||
<input type="hidden" name="{if $keyword}{$keyword}{else}_keyword{/if}" value="search">
|
||||
<input type="hidden" name="keyword" value="">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control input-sm input_search" name="keyword" value="{$keyword|escape}" placeholder="">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-danger btn-sm" type="submit"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</span> </div>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
-->*}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{* MOBILE *}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
|
||||
{if $services_view}
|
||||
<div class="sidebar clearfix">
|
||||
{include file='sidebar_catalog.tpl'}
|
||||
</div>
|
||||
<div class="content clearfix">
|
||||
{include file='services.tpl'}
|
||||
</div>
|
||||
{else}
|
||||
<div class="sidebar clearfix">
|
||||
{include file='sidebar_catalog.tpl'}
|
||||
</div>
|
||||
<div class="content clearfix">
|
||||
{$content}
|
||||
{include file='banner/foot.banner.tpl'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* / MOBILE *}
|
||||
{else}
|
||||
{* DESKTOP *}
|
||||
|
||||
{if $services_view}
|
||||
{include file='services.tpl'}
|
||||
{else}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!-- content -->
|
||||
<div class="content">
|
||||
|
||||
{$content}
|
||||
|
||||
</div>
|
||||
<!-- /content -->
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{* DESKTOP *}
|
||||
<div class="push"></div>
|
||||
|
||||
</div>
|
||||
{if $smarty.server.REQUEST_URI!="/otzyvy/"}
|
||||
<div class="ai-form">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<span class="map">
|
||||
<!--<script async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A59660b7030da2b410048f4751d51fe7b7c957a1120f3f2f99997df438c345256&width=535&height=350&lang=ru_RU&scroll=true"></script>-->
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
<a href="/contact/">
|
||||
<img src="/images/footer-map2.jpg">
|
||||
<!--<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A59660b7030da2b410048f4751d51fe7b7c957a1120f3f2f99997df438c345256&width=368&height=311&lang=ru_RU&scroll=false"></script>-->
|
||||
</a>
|
||||
{else}
|
||||
<!-- script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A59660b7030da2b410048f4751d51fe7b7c957a1120f3f2f99997df438c345256&width=535&height=350&lang=ru_RU&scroll=true"></script -->
|
||||
|
||||
<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A5ea0cf38057404db92287e2a2c7c5c0118da61e32779ab8ffd0c1ca991a0e49d&width=535&height=350&lang=ru_RU&scroll=true"></script>
|
||||
|
||||
{/if}
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{*include file='form_order.tpl'*}
|
||||
{include file='forms/bottom.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<img class="bottom-logo" src="/design/{$settings->theme|escape}/images/ch-logo.png" alt="logo">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="/o-kompanii/">О тюнинг центре</a></li>
|
||||
<li><a href="/rekvizity/">Наши реквизиты</a></li>
|
||||
<li><a href="/rabota-s-ur-litsami/">Работа с юр. лицами</a></li>
|
||||
<li><a href="/actions/">Акции и скидки</a></li>
|
||||
<li><a href="/vakansii/">Вакансии</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="javascript:void(0)" class="callme_viewform">Связаться с нами</a></li>
|
||||
<li><a href="/oplata/">Способы оплаты</a></li>
|
||||
<li><a href="/garantiya-na-uslugi/">Гарантии на услуги</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="/user/">Личный Кабинет</a></li>
|
||||
<li><a href="/sitemap/">Карта сайта</a></li>
|
||||
<li><a href="/politika-konfidentsialnosti/">Политика конфиденциальности</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<ul class="bottom-nav">
|
||||
<li><a href="/tuning-centr/bronirovanie-far/">Бронирование фар</a></li>
|
||||
<li><a href="/tuning-centr/polirovka-far/">Полировка фар</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-signalizacii-na-avtomobil/">Установка сигнализации</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-sabvuferov/">Установка сабвуферов</a></li>
|
||||
<li><a href="/tuning-centr/bronirovanie-plenkoj-avtomobilja/">Оклейка антигравийной пленкой</a></li>
|
||||
<li><a href="/tuning-centr/shumoizoljacija-avto/">Шумоизоляция</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row ai-padding">
|
||||
<div class="col-sm-3">
|
||||
<div class="bottom-contacts" itemscope itemtype="http://schema.org/Organization">
|
||||
<meta itemprop="name" content="Тюнинг центр Atomic Garage">
|
||||
<div class="phone"><a href="tel:+79219589000" itemprop="telephone">+7 921 958-90-00</a></div>
|
||||
<div class="phone"><a href="tel:+79219589100" itemprop="telephone">+7 921 958-91-00</a></div>
|
||||
<div class="phone"><a href="tel:+79219589200" itemprop="telephone">+7 921 958-92-00</a></div>
|
||||
<div class="email"><a href="mailto:info@atomicgarage.ru" itemprop="email">info@atomicgarage.ru</a></div>
|
||||
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<div class="address" itemprop="addressLocality">194292, Санкт-Петербург,</div>
|
||||
<!-- div class="address" itemprop="streetAddress">Кондратьевский пр. , д. 17 к2к</div -->
|
||||
|
||||
<div class="address" itemprop="streetAddress">Нижняя Полевая ул., д.1</div>
|
||||
<div class="address" itemprop="streetAddress">Пн-Вс 10:00 - 20:00</div>
|
||||
<div class="address" itemprop="streetAddress">ИНН 780231374980</div>
|
||||
<div class="address" itemprop="streetAddress">ОГРНИП 312784710800101</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<img src="/design/{$settings->theme|escape}/images/card-icons.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<ul class="social">
|
||||
<li><a href="https://www.drive2.ru/o/AtomicGarage/" rel="nofollow" target="_blank"><img src="/design/atomic/images/d-logo.png" alt="Drive2"></a></li>
|
||||
<!--<li><a href="https://www.instagram.com/atomicgaragespb/" rel="nofollow" target="_blank"><img src="/design/atomic/images/instagram-logo.png" alt="Instagram"></a></li>-->
|
||||
<li><a href="https://vk.com/tuningatomicgarage" rel="nofollow" target="_blank"><img src="/design/atomic/images/vk-logo.png" alt="VK"></a></li>
|
||||
<li><a href="https://www.youtube.com/channel/UCjrEqy9OL8BX15knZJA1Gtw?view_as=subscriber" rel="nofollow" target="_blank"><img src="/design/atomic/images/youtube-logo.png" alt="YouTube"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12 ai-copyright">
|
||||
<div class="copyright text-center">© <span>Тюнинг центр ATOMICGARAGE 2017-2023 </span><br>Тюнинг и ремонт автомобильной оптики любой сложности.<br>Восстановление и улучшение качества света.<br>Комплексное обслуживание авто.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="back-top"><i class="fa fa-chevron-up"></i></div>
|
||||
</footer>
|
||||
|
||||
|
||||
{*if $detect->isMobile()}
|
||||
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/styles.css?{uniqid()}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/css/mobile.css?{uniqid()}">
|
||||
<cript src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
|
||||
|
||||
<script src="/sovetnik-killer.js?v=5"></script>
|
||||
{/if*}
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.css" media="screen">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.js"></script>
|
||||
|
||||
<!--
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/js/fancybox3/jquery.fancybox.css" media="screen">
|
||||
<script src="/js/fancybox3/jquery.fancybox.min.js"></script>
|
||||
-->
|
||||
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/design/{$settings->theme|escape}/js/sm.slider/smslider.css" media="screen">
|
||||
{*<link rel="stylesheet" property="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">*}
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/lib/font-awesome-4.7.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/js/baloon/css/baloon.css">
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" async></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="/design/{$settings->theme|escape}/js/jquery.flexslider-min.js"></script>
|
||||
<script>
|
||||
{literal}
|
||||
|
||||
$('.content table:not("form table")').removeAttr('style').removeAttr('class').removeAttr('border').removeAttr('cellpadding').removeAttr('cellspacing').removeAttr('align').addClass('table table-striped table-bordered');
|
||||
|
||||
$(function() {
|
||||
$('[data-js-style]').each(function(){
|
||||
$(this).attr('style', $(this).attr('data-js-style'));
|
||||
});
|
||||
$('.flexslider').flexslider();
|
||||
$('.flex-control-nav').addClass('pagination pagination-sm');
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
$("#back-top").hide();
|
||||
// fade in #back-top
|
||||
$(window).scroll(function () {
|
||||
if ($(this).scrollTop() > 100)
|
||||
{
|
||||
$('#back-top').fadeIn();
|
||||
if ($('#bas_items').text() != "пока нет товаров")
|
||||
{
|
||||
$('#xcart').addClass("flatrow");
|
||||
$('.tableFloatingHeader').css('top','50px');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#back-top').fadeOut();
|
||||
$('#xcart').removeClass("flatrow");
|
||||
$('.tableFloatingHeader').css('top','0px');
|
||||
}
|
||||
});
|
||||
// scroll body to 0px on click
|
||||
$('#back-top').click(function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: 0
|
||||
}, 800);
|
||||
});
|
||||
|
||||
</script>
|
||||
<script src="/lib/jquery.maskedinput.min.js" async></script>
|
||||
<script src="/design/{$settings->theme|escape}/js/extra.js?v=262"></script>
|
||||
{*<script src="//vk.com/js/api/openapi.js?115"></script>*}
|
||||
<script src="/js/ctrlnavigate.js" async></script>
|
||||
<!--<script src="/design/{$settings->theme|escape}/js/jquery-ui.min.js"></script>-->
|
||||
|
||||
<script src="/design/{$settings->theme|escape}/js/ajax_cart.js?v=2"></script>
|
||||
<script src="/design/{$settings->theme|escape}/js/shopcart-view.js?{uniqid()}"></script>
|
||||
<script src="/js/baloon/js/baloon.js?v=2" async></script>
|
||||
{*
|
||||
<link property="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>
|
||||
*}
|
||||
<script src="/feedback/js/jquery-ui.min.js"></script>
|
||||
<script src="/feedback/js/uploader.js"></script>
|
||||
<script src="/feedback/js/feedback.js"></script>
|
||||
<script src="/js/autocomplete/jquery.autocomplete-min.js"></script>
|
||||
<script src="/design/{$settings->theme|escape}/js/sm.slider/jquery.smslider.min.js"></script>
|
||||
{if $smarty.session.admin == 'admin'}
|
||||
<script src="/js/admintooltip/admintooltip.js" async></script>
|
||||
{/if}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
<script src="/design/{$settings->theme|escape}/js/collapse-panel.js?v=42" async></script>
|
||||
{/if}
|
||||
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
$('a.fancybox').each(function(){
|
||||
var $this = $(this);
|
||||
if(typeof $this.attr('data-rel') != 'undefined') $this.attr('rel', $this.attr('data-rel'));
|
||||
})
|
||||
|
||||
$('.fancybox').fancybox({
|
||||
helpers: {
|
||||
overlay: {
|
||||
locked: false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//console.log(Notification);
|
||||
});
|
||||
</script>
|
||||
|
||||
{/literal}
|
||||
|
||||
{*
|
||||
<script src="/feedback/js/jquery-ui.min.js"></script>
|
||||
<script src="/feedback/js/uploader.js"></script>
|
||||
<script src="/feedback/js/feedback.js"></script>*}
|
||||
|
||||
|
||||
|
||||
|
||||
{if !$detect->isMobile()}
|
||||
<link rel="stylesheet" property="stylesheet" type="text/css" href="/design/carheart/js/bxslider/jquery.bxslider.min.css">
|
||||
<script src="/design/carheart/js/bxslider/jquery.bxslider.min.js"></script>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
{if $smarty.session.admin == 'admin'}<script src="/feedback/feedback_admin.js"></script>{/if}
|
||||
|
||||
{*
|
||||
<a href="/catalog/" id="right-cat-btn" style="display:none" rel="nofollow" target="_blank">
|
||||
<span>Каталог продукции</span>
|
||||
</a> *}
|
||||
<script src="/modal-form/mask.js"></script>
|
||||
<script src="/modal-form/callbackForm.js?v=324"></script>
|
||||
{include file='forms/callback.tpl'}
|
||||
{literal}
|
||||
<!-- noindex -->
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript" >
|
||||
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||
|
||||
ym(47497642, "init", {
|
||||
id:47497642,
|
||||
clickmap:true,
|
||||
trackLinks:true,
|
||||
accurateTrackBounce:true,
|
||||
webvisor:true,
|
||||
ecommerce:"dataLayer"
|
||||
});
|
||||
</script>
|
||||
<noscript><div><img src="https://mc.yandex.ru/watch/47497642" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113336118-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-113336118-1');
|
||||
</script>
|
||||
|
||||
{/literal}
|
||||
{*
|
||||
<div style="display:none;">
|
||||
<!--LiveInternet counter--><script>
|
||||
document.write("<a href='//www.liveinternet.ru/click' "+
|
||||
"target=_blank><img src='//counter.yadro.ru/hit?t41.5;r"+
|
||||
escape(document.referrer)+((typeof(screen)=="undefined")?"":
|
||||
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
|
||||
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||||
";h"+escape(document.title.substring(0,150))+";"+Math.random()+
|
||||
"' alt='' title='LiveInternet' "+
|
||||
"border='0' width='31' height='31'><\/a>")
|
||||
</script><!--/LiveInternet-->
|
||||
</div>
|
||||
<!-- Top100 (Kraken) Counter -->
|
||||
<script>
|
||||
(function (w, d, c) {
|
||||
(w[c] = w[c] || []).push(function() {
|
||||
var options = {
|
||||
project: 5753275,
|
||||
};
|
||||
try {
|
||||
w.top100Counter = new top100(options);
|
||||
} catch(e) { }
|
||||
});
|
||||
var n = d.getElementsByTagName("script")[0],
|
||||
s = d.createElement("script"),
|
||||
f = function () { n.parentNode.insertBefore(s, n); };
|
||||
s.type = "text/javascript";
|
||||
s.async = true;
|
||||
s.src =
|
||||
(d.location.protocol == "https:" ? "https:" : "http:") +
|
||||
"//st.top100.ru/top100/top100.js";
|
||||
|
||||
if (w.opera == "[object Opera]") {
|
||||
d.addEventListener("DOMContentLoaded", f, false);
|
||||
} else { f(); }
|
||||
})(window, document, "_top100q");
|
||||
</script>
|
||||
<noscript>
|
||||
<img src="//counter.rambler.ru/top100.cnt?pid=5753275" alt="" />
|
||||
</noscript>
|
||||
<!-- END Top100 (Kraken) Counter -->
|
||||
*}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
function yandexReachGoal(target){ //console.log(target); // _ym_debug=1
|
||||
if(typeof ym != 'undefined') ym(47497642, 'reachGoal', target);
|
||||
}
|
||||
</script>
|
||||
<script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
|
||||
<script src="https://yastatic.net/share2/share.js"></script>
|
||||
|
||||
<!-- /noindex -->
|
||||
{/literal}
|
||||
|
||||
<script src="/js/sxValidator.js?v=22"></script>
|
||||
|
||||
{if $smarty.session.admin == 'admin'}
|
||||
<link rel="stylesheet" type="text/css" href="/js/admintooltip/css/admintooltip.css" >
|
||||
{/if}
|
||||
|
||||
<!-- Begin Verbox {literal} -->
|
||||
<script id="supportScript" async="" src="//admin.verbox.ru/support/support.js?h=8345a3da2b2f80737b77e8bac7ab1528"></script>
|
||||
<!-- {/literal} End Verbox -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
39
design/atomic/html/login.tpl
Normal file
39
design/atomic/html/login.tpl
Normal file
@@ -0,0 +1,39 @@
|
||||
{* Страница входа пользователя *}
|
||||
{$meta_title = "Вход" scope=parent}
|
||||
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseLogin');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div class="title">Вход</div>
|
||||
<div class="well">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error == 'recaptcha'}Вы не прошли проверку защиты
|
||||
{elseif $error == 'login_incorrect'}Неверный логин или пароль
|
||||
{elseif $error == 'user_disabled'}Ваш аккаунт еще не активирован.
|
||||
{else}{$error}{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form class="form login_form form-horizontal" method="post">
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10"><input class="form-control" type="text" name="email" data-format="email" data-notice="Введите email" value="{$email|escape}" maxlength="255" /></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">Пароль (<a href="/user/password_remind/">напомнить</a>)</label>
|
||||
<div class="col-sm-10"><input class="form-control" type="password" name="password" data-format=".+" data-notice="Введите пароль" value="" /></div>
|
||||
</div>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseLogin">
|
||||
<input type="submit" class="btn btn-danger pull-right" name="login" value="Войти">
|
||||
</form>
|
||||
</div>
|
||||
266
design/atomic/html/main.tpl
Normal file
266
design/atomic/html/main.tpl
Normal file
@@ -0,0 +1,266 @@
|
||||
{* Главная страница магазина *}
|
||||
{* Слайдер *}
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
|
||||
{if !$detect->isMobile()}
|
||||
<div class="menu-service">
|
||||
<div class="header"><a href="/tuning-centr/">Услуги тюнинг центра</a></div>
|
||||
<ul>
|
||||
<li><a href="/tuning-centr/tuning-optiki/">Работа с оптикой</a></li>
|
||||
<li><a href="/tuning-centr/interernye-raboty/">Интерьерные работы</a></li>
|
||||
<li><a href="/tuning-centr/ehksterernye-raboty/">Экстерьерные работы</a></li>
|
||||
<li><a href="/tuning-centr/dopolnitelnoe-oborudovanie/">Дополнительное оборудование</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="flexslider">
|
||||
<ul class="slides">
|
||||
|
||||
<!-- <li style="background-size: contain !important; background: #1c1e23 url(/design/atomic/images/pereezd.jpg) no-repeat right center !important">
|
||||
</li> -->
|
||||
<!-- <li style="background: #1c1e23 url(/design/atomic/images/slider-1.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font">Замена стекол фар</span>
|
||||
на BMW F10, BMW X5, BMW X6
|
||||
<span class="big-font">25 000 рублей</span>
|
||||
<a href="/actions/zamena-stekol-far-bmw-x5-x6-f10/" class="ai-more">подробнее</a>
|
||||
|
||||
</p>
|
||||
</li> -->
|
||||
<!-- <li style="background: #1c1e23 url(/design/atomic/images/slider-2.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font">Замена ксеноновых линз на <br>биксеноновые Hella 3R<br> 20000 рублей </span>
|
||||
Для Subaru Outback B14 и Mitsubishi Pajero 4
|
||||
<a href="/actions/zamena-vygorevshih-shtatnyh-linz-v-farah-na-hella-3r/" class="ai-more">подробнее</a>
|
||||
|
||||
</p>
|
||||
</li> -->
|
||||
|
||||
<!-- <li style="background: #1c1e23 url(/design/atomic/images/slider-3.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font">Ремонт запотевания фар</span>
|
||||
|
||||
<span class="big-font"> от 3000 рублей</span>
|
||||
<a href="/tuning-centr/ustranenie-zapotevanija-far/" class="ai-more">подробнее</a>
|
||||
</p>
|
||||
</li> -->
|
||||
|
||||
<li style="background: #1c1e23 url(/design/atomic/images/avroservice.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<!--<span class="less-big-font"> Открыт отдел автосервиса</span>-->
|
||||
<span class="big-font"> Открыт отдел автосервиса</span>
|
||||
|
||||
|
||||
<!-- <a href="/tuning-centr/polirovka-kuzova-avtomobilya/" class="ai-more">подробнее</a> -->
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<!-- <li style="background: #1c1e23 url(/design/atomic/images/photo_2022-10-18_11-25-02.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font"></span>
|
||||
<span class="big-font"></span>
|
||||
</p>
|
||||
</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{* Для того чтобы обернуть центральный блок в шаблон, отличный от index.tpl *}
|
||||
{* Укажите нужный шаблон строкой ниже. Это работает и для других модулей *}
|
||||
{$wrapper = 'index.tpl' scope=parent}
|
||||
{* Заголовок страницы *}
|
||||
{*<h1>$page->header</h1>*}
|
||||
{* Тело страницы *}
|
||||
{* $page->body *}
|
||||
{* Рекомендуемые товары *}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
{assign var="x" value=4}
|
||||
{else}
|
||||
{assign var="x" value=3}
|
||||
{/if}
|
||||
{get_featured_products var=featured_products limit=$x}
|
||||
{if $featured_products}
|
||||
<!-- Список товаров-->
|
||||
<div class="title">Рекомендуемые товары</div>
|
||||
<div class="home-output row">
|
||||
{foreach $featured_products as $product}
|
||||
<!-- Товар22-->
|
||||
<div class="product col-sm-3 col-xs-6">
|
||||
<!-- Фото товара22 -->
|
||||
{if $product->image}
|
||||
<div class="product-image">
|
||||
<a href="/products/{$product->url}/" class="w"><img class="img-thumbnail"
|
||||
src="{$product->image->filename|resize:242:128}"
|
||||
alt="{$product->name|escape}"></a>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Фото товара (The End) -->
|
||||
<!-- Название товара -->
|
||||
<a class="product-name" data-product="{$product->id}"
|
||||
href="/products/{$product->url}/">{$product->name|escape}</a>
|
||||
<!-- Название товара (The End) -->
|
||||
{if $product->variants|count > 0}
|
||||
<!-- Выбор варианта товара -->
|
||||
{*<formss class="variants" action="/cart">*}
|
||||
{foreach $product->variants as $v}
|
||||
{if $v@first || $v->price<$pmin}
|
||||
{assign var="pmin" value=$v->price}
|
||||
{assign var="vmin" value=$v->id}
|
||||
{assign var="nmin" value=$v->name}
|
||||
{assign var="smin" value=$v->stock}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<form class="variants" action="/cart">
|
||||
<input style="display:none" name="variant" value="{$vmin}" type="radio" checked>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<span class="product-price"><small>от</small> {$pmin|convert} <small>{$currency->sign|escape}</small></span>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{if $smin !='0'}
|
||||
<input type="submit" class="btn btn-danger" value="в корзину"
|
||||
data-result-text="добавлено">
|
||||
{else}
|
||||
<input type="button" class="btn btn-danger preorder"
|
||||
data-id="{$product->variant->id}" value="Предзаказ">
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
{else}
|
||||
<p>Нет в наличии</p>
|
||||
<input type="button" class="btn btn-danger preorder" data-id="{$product->variant->id}"
|
||||
value="Предзаказ">
|
||||
{/if}
|
||||
<div class="none" style="display: none">
|
||||
<div class="modal2 dialog amount well" id="amount{$product->variant->id}">
|
||||
<form class="ajaxform preorder form-horizontal" action="ajax/preorder.php"
|
||||
method="post">
|
||||
<input name="variant" value="{$product->variant->id}" type="hidden"/>
|
||||
<input name="comment" value="Предзаказ на {$product->name|escape:'html'}"
|
||||
type="hidden"/>
|
||||
<span class="header h22">Предзаказ</span>
|
||||
<p><a href="/products/{$product->url}/">{$product->name|escape}</a></p>
|
||||
<p>Как только товар будет в наличии, наш менеджер свяжется с Вами.</p>
|
||||
<div class="line form">
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Имя</label>
|
||||
<span class=" col-sm-9"><input name="name" class="form-control" type="text"
|
||||
value="{$name|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Фамилия</label>
|
||||
<span class=" col-sm-9"><input name="name2" class="form-control" type="text"
|
||||
value="{$name2|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Email</label>
|
||||
<span class=" col-sm-9"><input name="email" class="form-control" type="text"
|
||||
value="{$email|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Телефон</label>
|
||||
<span class=" col-sm-9"><input name="phone" class="form-control" type="text"
|
||||
value="{$phone|escape}"/></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="clear"></p>
|
||||
<p class="pull-right"><input class="button btn btn-danger" type="submit"
|
||||
value="Отправить"/></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Товар (The End)-->
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- Меню услуг -->
|
||||
{* Услуги на главной *}
|
||||
{if $home_services}
|
||||
{*<div class="title">Популярные услуги</div>*}
|
||||
{foreach $home_services as $top}
|
||||
<div class="title">{$top->name|escape}</div>
|
||||
<div class="row">
|
||||
{foreach $top->children as $s}
|
||||
<div class="service-unit col-sm-3">
|
||||
<div class="service-box">
|
||||
<a href="/{$services_root}{$s->url}/" class="tumb">
|
||||
{if $s->image}
|
||||
<img src="{$s->image|resizepage:270:235:0:1}" alt="{$s->name|escape}">
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" alt="{$s->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
<a class="service-name" href="/{$services_root}{$s->url}/">{$s->name|escape}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="service-link"><a href="/{$services_root}{$top->url}/">все услуги</a></div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<!-- Меню услуг (The End) -->
|
||||
|
||||
{if $page->body}
|
||||
<div>{$page->body}</div>{/if}
|
||||
|
||||
<!-- Меню статей -->
|
||||
{* Выбираем в переменную $last_articles последние записи *}
|
||||
{get_last_articles var=last_articles limit=6}
|
||||
{if $last_articles}
|
||||
<div class="title">Последние выполненные работы</div>
|
||||
<div class="blog-menu row" style="margin-bottom:0">
|
||||
{foreach $last_articles as $a}
|
||||
<div class="col-sm-4">
|
||||
<div class="blog-unit">
|
||||
<a href="/nashi-raboty/{$a->url}/" class="w"><span class="img">
|
||||
|
||||
{if $a->image}
|
||||
<img src="{$a->image|resizepage:360:232:0:1}" alt="{$a->name|escape}">
|
||||
|
||||
|
||||
{else}
|
||||
|
||||
|
||||
<img src="/files/page/default365x235.jpg" alt="{$a->name|escape}">
|
||||
{/if}
|
||||
</span>
|
||||
<span class="name">{$a->name|escape}</span></a>
|
||||
<div class="blog-annotation">{$a->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="service-link"><a href="/nashi-raboty/">Смотреть все работы</a></div>
|
||||
{/if}
|
||||
<!-- Меню статей (The End) -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-9 col-xs-12">
|
||||
{* Новинки *}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
{assign var="x" value=4}
|
||||
{else}
|
||||
{assign var="x" value=6}
|
||||
{/if}
|
||||
{get_new_products var=new_products limit=$x}
|
||||
{if $new_products}
|
||||
<!-- Список товаров-->
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
364
design/atomic/html/main_back.tpl
Normal file
364
design/atomic/html/main_back.tpl
Normal file
@@ -0,0 +1,364 @@
|
||||
{* Главная страница магазина *}
|
||||
{* Слайдер *}
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
|
||||
{if !$detect->isMobile()}
|
||||
<div class="menu-service">
|
||||
<div class="header"><a href="/tuning-centr/">Услуги тюнинг центра</a></div>
|
||||
<ul>
|
||||
<li><a href="/tuning-centr/tuning-optiki/">Работа с оптикой</a></li>
|
||||
<li><a href="/tuning-centr/interernye-raboty/">Интерьерные работы</a></li>
|
||||
<li><a href="/tuning-centr/ehksterernye-raboty/">Экстерьерные работы</a></li>
|
||||
<li><a href="/tuning-centr/dopolnitelnoe-oborudovanie/">Дополнительное оборудование</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="flexslider">
|
||||
<ul class="slides">
|
||||
|
||||
<!-- <li style="background-size: contain !important; background: #1c1e23 url(/design/atomic/images/pereezd.jpg) no-repeat right center !important">
|
||||
</li> -->
|
||||
<!-- <li style="background: #1c1e23 url(/design/atomic/images/slider-1.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font">Замена стекол фар</span>
|
||||
на BMW F10, BMW X5, BMW X6
|
||||
<span class="big-font">25 000 рублей</span>
|
||||
<a href="/actions/zamena-stekol-far-bmw-x5-x6-f10/" class="ai-more">подробнее</a>
|
||||
|
||||
</p>
|
||||
</li> -->
|
||||
<!-- <li style="background: #1c1e23 url(/design/atomic/images/slider-2.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font">Замена ксеноновых линз на <br>биксеноновые Hella 3R<br> 20000 рублей </span>
|
||||
Для Subaru Outback B14 и Mitsubishi Pajero 4
|
||||
<a href="/actions/zamena-vygorevshih-shtatnyh-linz-v-farah-na-hella-3r/" class="ai-more">подробнее</a>
|
||||
|
||||
</p>
|
||||
</li> -->
|
||||
|
||||
<li style="background: #1c1e23 url(/design/atomic/images/slider-3.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font">Ремонт запотевания фар</span>
|
||||
|
||||
<span class="big-font"> от 3000 рублей</span>
|
||||
<a href="/tuning-centr/ustranenie-zapotevanija-far/" class="ai-more">подробнее</a>
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<!-- li style="background: #1c1e23 url(/design/atomic/images/photo_2022-10-18_11-25-02.jpg) no-repeat right center !important">
|
||||
<p>
|
||||
<span class="big-font"></span>
|
||||
<span class="big-font"></span>
|
||||
</p>
|
||||
</li -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{* Для того чтобы обернуть центральный блок в шаблон, отличный от index.tpl *}
|
||||
{* Укажите нужный шаблон строкой ниже. Это работает и для других модулей *}
|
||||
{$wrapper = 'index.tpl' scope=parent}
|
||||
{* Заголовок страницы *}
|
||||
{*<h1>$page->header</h1>*}
|
||||
{* Тело страницы *}
|
||||
{* $page->body *}
|
||||
{* Рекомендуемые товары *}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
{assign var="x" value=4}
|
||||
{else}
|
||||
{assign var="x" value=3}
|
||||
{/if}
|
||||
{get_featured_products var=featured_products limit=$x}
|
||||
{if $featured_products}
|
||||
<!-- Список товаров-->
|
||||
<div class="title">Рекомендуемые товары</div>
|
||||
<div class="home-output row">
|
||||
{foreach $featured_products as $product}
|
||||
<!-- Товар22-->
|
||||
<div class="product col-sm-3 col-xs-6">
|
||||
<!-- Фото товара22 -->
|
||||
{if $product->image}
|
||||
<div class="product-image">
|
||||
<a href="/products/{$product->url}/" class="w"><img class="img-thumbnail"
|
||||
src="{$product->image->filename|resize:242:128}"
|
||||
alt="{$product->name|escape}"></a>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Фото товара (The End) -->
|
||||
<!-- Название товара -->
|
||||
<a class="product-name" data-product="{$product->id}"
|
||||
href="/products/{$product->url}/">{$product->name|escape}</a>
|
||||
<!-- Название товара (The End) -->
|
||||
{if $product->variants|count > 0}
|
||||
<!-- Выбор варианта товара -->
|
||||
{*<formss class="variants" action="/cart">*}
|
||||
{foreach $product->variants as $v}
|
||||
{if $v@first || $v->price<$pmin}
|
||||
{assign var="pmin" value=$v->price}
|
||||
{assign var="vmin" value=$v->id}
|
||||
{assign var="nmin" value=$v->name}
|
||||
{assign var="smin" value=$v->stock}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<form class="variants" action="/cart">
|
||||
<input style="display:none" name="variant" value="{$vmin}" type="radio" checked>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<span class="product-price"><small>от</small> {$pmin|convert} <small>{$currency->sign|escape}</small></span>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{if $smin !='0'}
|
||||
<input type="submit" class="btn btn-danger" value="в корзину"
|
||||
data-result-text="добавлено">
|
||||
{else}
|
||||
<input type="button" class="btn btn-danger preorder"
|
||||
data-id="{$product->variant->id}" value="Предзаказ">
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
{else}
|
||||
<p>Нет в наличии</p>
|
||||
<input type="button" class="btn btn-danger preorder" data-id="{$product->variant->id}"
|
||||
value="Предзаказ">
|
||||
{/if}
|
||||
<div class="none" style="display: none">
|
||||
<div class="modal2 dialog amount well" id="amount{$product->variant->id}">
|
||||
<form class="ajaxform preorder form-horizontal" action="ajax/preorder.php"
|
||||
method="post">
|
||||
<input name="variant" value="{$product->variant->id}" type="hidden"/>
|
||||
<input name="comment" value="Предзаказ на {$product->name|escape:'html'}"
|
||||
type="hidden"/>
|
||||
<span class="header h22">Предзаказ</span>
|
||||
<p><a href="/products/{$product->url}/">{$product->name|escape}</a></p>
|
||||
<p>Как только товар будет в наличии, наш менеджер свяжется с Вами.</p>
|
||||
<div class="line form">
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Имя</label>
|
||||
<span class=" col-sm-9"><input name="name" class="form-control" type="text"
|
||||
value="{$name|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Фамилия</label>
|
||||
<span class=" col-sm-9"><input name="name2" class="form-control" type="text"
|
||||
value="{$name2|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Email</label>
|
||||
<span class=" col-sm-9"><input name="email" class="form-control" type="text"
|
||||
value="{$email|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Телефон</label>
|
||||
<span class=" col-sm-9"><input name="phone" class="form-control" type="text"
|
||||
value="{$phone|escape}"/></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="clear"></p>
|
||||
<p class="pull-right"><input class="button btn btn-danger" type="submit"
|
||||
value="Отправить"/></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Товар (The End)-->
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- Меню услуг -->
|
||||
{* Услуги на главной *}
|
||||
{if $home_services}
|
||||
{*<div class="title">Популярные услуги</div>*}
|
||||
{foreach $home_services as $top}
|
||||
<div class="title">{$top->name|escape}</div>
|
||||
<div class="row">
|
||||
{foreach $top->children as $s}
|
||||
<div class="service-unit col-sm-3">
|
||||
<div class="service-box">
|
||||
<a href="/{$services_root}{$s->url}/" class="tumb">
|
||||
{if $s->image}
|
||||
<img src="{$s->image|resizepage:270:235:0:1}" alt="{$s->name|escape}">
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" alt="{$s->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
<a class="service-name" href="/{$services_root}{$s->url}/">{$s->name|escape}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="service-link"><a href="/{$services_root}{$top->url}/">все услуги</a></div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<!-- Меню услуг (The End) -->
|
||||
|
||||
{if $page->body}
|
||||
<div>{$page->body}</div>{/if}
|
||||
|
||||
<!-- Меню статей -->
|
||||
{* Выбираем в переменную $last_articles последние записи *}
|
||||
{get_last_articles var=last_articles limit=6}
|
||||
{if $last_articles}
|
||||
<div class="title">Последние выполненные работы</div>
|
||||
<div class="blog-menu row" style="margin-bottom:0">
|
||||
{foreach $last_articles as $a}
|
||||
<div class="col-sm-4">
|
||||
<div class="blog-unit">
|
||||
<a href="/nashi-raboty/{$a->url}/" class="w"><span class="img">
|
||||
|
||||
{if $a->image}
|
||||
<img src="{$a->image|resizepage:360:232:0:1}" alt="{$a->name|escape}">
|
||||
|
||||
|
||||
{else}
|
||||
|
||||
|
||||
<img src="/files/page/default365x235.jpg" alt="{$a->name|escape}">
|
||||
{/if}
|
||||
</span>
|
||||
<span class="name">{$a->name|escape}</span></a>
|
||||
<div class="blog-annotation">{$a->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="service-link"><a href="/nashi-raboty/">Смотреть все работы</a></div>
|
||||
{/if}
|
||||
<!-- Меню статей (The End) -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
{include file='sidebar_catalog.tpl'}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-12">
|
||||
{* Новинки *}
|
||||
{if $detect->isMobile() && !$detect->isTablet()}
|
||||
{assign var="x" value=4}
|
||||
{else}
|
||||
{assign var="x" value=6}
|
||||
{/if}
|
||||
{get_new_products var=new_products limit=$x}
|
||||
{if $new_products}
|
||||
<div class="title">Новинки</div>
|
||||
<!-- Список товаров-->
|
||||
<div class="home-output row">
|
||||
{foreach $new_products as $product}
|
||||
<!-- Товар-->
|
||||
<div class="col-sm-4 col-xs-6">
|
||||
<div class="product">
|
||||
<!-- Фото товара -->
|
||||
|
||||
<div class="product-image">
|
||||
<a href="/products/{$product->url}/" class="w">
|
||||
{if $product->image}<img class="img-thumbnail"
|
||||
src="{$product->image->filename|resizeProduct:221:168:1}"
|
||||
alt="{$product->name|escape}">
|
||||
{else}
|
||||
<img src="/images/zag2.jpg" class="img-thumbnail" alt="">
|
||||
{/if}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Фото товара (The End) -->
|
||||
<!-- Название товара -->
|
||||
<a class="product-name" data-product="{$product->id}"
|
||||
href="/products/{$product->url}/">{$product->name|escape}</a>
|
||||
<!-- Название товара (The End) -->
|
||||
{if $product->variants|count > 0}
|
||||
<!-- Выбор варианта товара4 -->
|
||||
|
||||
{foreach $product->variants as $v}
|
||||
{if $v@first || $v->price<$pmin}
|
||||
{assign var="pmin" value=$v->price}
|
||||
{assign var="vmin" value=$v->id}
|
||||
{assign var="nmin" value=$v->name}
|
||||
{assign var="smin" value=$v->stock}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<form class="variants" action="/cart">
|
||||
<input style="display:none" name="variant" value="{$vmin}" type="radio" checked>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<span class="product-price"> {$pmin|convert} <small>{$currency->sign|escape}</small></span>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
{if $smin !='0'}
|
||||
<button type="submit" class="btn cart-btn" data-result-text="добавлено">
|
||||
в корзину
|
||||
</button>
|
||||
{else}
|
||||
<button type="button" class="btn preorder cart-btn"
|
||||
data-id="{$product->variant->id}">Предзаказ
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
{else}
|
||||
<p>Нет в наличии</p>
|
||||
<input type="button" class="btn btn-danger preorder"
|
||||
data-id="{$product->variant->id}" value="Предзаказ">
|
||||
{/if}
|
||||
<div class="none" style="display: none">
|
||||
<div class="modal2 dialog amount well" id="amount{$product->variant->id}">
|
||||
<form class="ajaxform preorder form-horizontal" action="ajax/preorder.php"
|
||||
method="post">
|
||||
<input name="variant" value="{$product->variant->id}" type="hidden"/>
|
||||
<input name="comment" value="Предзаказ на {$product->name|escape:'html'}"
|
||||
type="hidden"/>
|
||||
<span class="header h22">Предзаказ</span>
|
||||
<p><a href="/products/{$product->url}/">{$product->name|escape}</a></p>
|
||||
<div class="line form">
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Имя</label>
|
||||
<span class=" col-sm-9"><input name="name" class="form-control"
|
||||
type="text" value="{$name|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Фамилия</label>
|
||||
<span class=" col-sm-9"><input name="name2" class="form-control"
|
||||
type="text" value="{$name2|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Email</label>
|
||||
<span class=" col-sm-9"><input name="email" class="form-control"
|
||||
type="text" value="{$email|escape}"/></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Телефон</label>
|
||||
<span class=" col-sm-9"><input name="phone" class="form-control"
|
||||
type="text" value="{$phone|escape}"/></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="clear"></p>
|
||||
<p class="pull-right"><input class="button btn btn-danger" type="submit"
|
||||
value="Отправить"/></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Товар (The End)-->
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
43
design/atomic/html/marka.tpl
Normal file
43
design/atomic/html/marka.tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
<li><a href="/{$config->worksUrl}/">Примеры работ</a></li>
|
||||
<li>{$marka->name|escape}</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h1>{$h1}</h1>
|
||||
<!-- Тело страницы -->
|
||||
{$marka->description}
|
||||
|
||||
{if $models}
|
||||
<div class="brands row">
|
||||
{foreach from=$models item=b}
|
||||
<div class="brand col-sm-2 col-xs-6" data-style="width:12.5%">
|
||||
<div class="brand-image">
|
||||
{if $b->image}<a class="w" href="/{$config->worksUrl}/{$marka->url}/{$b->url}/">
|
||||
<img class="img-thumbnail" src="/{$config->model_images_dir}{$b->image}" alt="{$b->name}"></a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="brand-name"><a class="w" href="/{$config->worksUrl}/{$marka->url}/{$b->url}/" >{$marka->name} {$b->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{include file='service_filter.tpl'}
|
||||
<!-- Статьи /-->
|
||||
<div>
|
||||
<div class="blog row">
|
||||
{foreach $articles as $a}
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
<div class="blog-article">
|
||||
<div class="blog-image">{if $a->image}<a href="/{$config->worksUrl}/{$a->url}/" class="w">
|
||||
<img class="img-thumbnail" src="{$a->image|resizepost:247:200}" alt="{$a->name|escape}" /></a>{/if}</div>
|
||||
<div class="blog-title"><a href="/{$config->worksUrl}/{$a->url}/">{$a->name|escape}</a></div>
|
||||
<div class="blog-annotation">{$a->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<!-- Статьи #End /-->
|
||||
</div>
|
||||
30
design/atomic/html/model.tpl
Normal file
30
design/atomic/html/model.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
<li><a href="/{$config->worksUrl}/">Примеры работ</a></li>
|
||||
<li><a href="/{$config->worksUrl}/{$model->marka->url}/">{$model->marka->name}</a></li>
|
||||
<li>{$model->name|escape}</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h1>{$h1}</h1>
|
||||
<!-- Тело страницы -->
|
||||
{$model->description}
|
||||
|
||||
{include file='service_filter.tpl'}
|
||||
|
||||
<!-- Статьи /-->
|
||||
<div>
|
||||
<div class="blog row">
|
||||
{foreach $articles as $a}
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
<div class="blog-article">
|
||||
<div class="blog-image">{if $a->image}<a href="/{$config->worksUrl}/{$a->url}/" class="w">
|
||||
<img class="img-thumbnail" src="{$a->image|resizepost:247:200}" alt="{$a->name|escape}" /></a>{/if}</div>
|
||||
<div class="blog-title"><a href="/{$config->worksUrl}/{$a->url}/">{$a->name|escape}</a></div>
|
||||
<div class="blog-annotation">{$a->annotation}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<!-- Статьи #End /-->
|
||||
</div>
|
||||
280
design/atomic/html/order.tpl
Normal file
280
design/atomic/html/order.tpl
Normal file
@@ -0,0 +1,280 @@
|
||||
{* Страница заказа *}
|
||||
|
||||
{$meta_title = "Ваш заказ №`$order->id`" scope=parent}
|
||||
|
||||
<h1>Ваш заказ №{$order->id}
|
||||
{if $order->status == 0}принят{/if}
|
||||
{if $order->status == 1}в обработке{elseif $order->status == 2}выполнен{/if}
|
||||
{if $order->paid == 1}, оплачен{else}{/if}
|
||||
</h1>
|
||||
|
||||
{* Список покупок *}
|
||||
{literal} <script>$.yEcommerce = [];</script> {/literal}
|
||||
<table id="purchases">
|
||||
|
||||
{foreach $purchases as $purchase}
|
||||
{literal}
|
||||
<script>
|
||||
var x = {/literal}{$purchase->variant|@json_encode nofilter}{literal}
|
||||
x.product = {/literal}{$purchase->product|@json_encode nofilter}{literal}
|
||||
x.amount = {/literal}{$purchase->amount|@json_encode nofilter}{literal}
|
||||
$.yEcommerce.push( x );
|
||||
</script>
|
||||
{/literal}
|
||||
<tr>
|
||||
{* Изображение товара *}
|
||||
<td class="image">
|
||||
{$image = $purchase->product->images|first}
|
||||
{if $image}
|
||||
<a href="/products/{$purchase->product->url}"><img src="{$image->filename|resize:50:50}" alt="{$product->name|escape}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
{* Название товара *}
|
||||
<td class="name">
|
||||
<a href="/products/{$purchase->product->url}">{$purchase->product_name|escape}</a>
|
||||
{$purchase->variant_name|escape}
|
||||
{if $order->paid && $purchase->variant->attachment}
|
||||
<a class="download_attachment" href="/order/{$order->url}/{$purchase->variant->attachment}/">скачать файл</a>
|
||||
{/if}
|
||||
<div class="features">
|
||||
{foreach from=$purchase->options item=opt key=ok}
|
||||
{assign var=f value=$features[$ok]}
|
||||
<p>
|
||||
<label>{$f->name} {$ok}</label>
|
||||
<span>
|
||||
{$opt}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{* Цена за единицу *}
|
||||
<td class="price">
|
||||
{($purchase->price)|convert} {$currency->sign}
|
||||
</td>
|
||||
|
||||
{* Количество *}
|
||||
<td class="amount">
|
||||
× {$purchase->amount} {$settings->units}
|
||||
</td>
|
||||
|
||||
{* Цена *}
|
||||
<td class="price">
|
||||
{($purchase->price*$purchase->amount)|convert} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{* Скидка, если есть *}
|
||||
{if $order->discount > 0}
|
||||
<tr>
|
||||
<th class="image"></th>
|
||||
<th class="name">скидка</th>
|
||||
<th class="price"></th>
|
||||
<th class="amount"></th>
|
||||
<th class="price">
|
||||
{$order->discount} %
|
||||
</th>
|
||||
</tr>
|
||||
{/if}
|
||||
{* Если стоимость доставки входит в сумму заказа *}
|
||||
{if !$order->separate_delivery && $order->delivery_price>0}
|
||||
<tr>
|
||||
<td class="image>"</td>
|
||||
<td class="name">{$delivery->name|escape}</td>
|
||||
<td class="price"></td>
|
||||
<td class="amount"></td>
|
||||
<td class="price">
|
||||
{$order->delivery_price|convert} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{* Итого *}
|
||||
<tr>
|
||||
<th class="image"></th>
|
||||
<th class="name">итого</th>
|
||||
<th class="price"></th>
|
||||
<th class="amount"></th>
|
||||
<th class="price">
|
||||
{$order->total_price|convert} {$currency->sign}
|
||||
</th>
|
||||
</tr>
|
||||
{* Если стоимость доставки не входит в сумму заказа *}
|
||||
{if $order->separate_delivery}
|
||||
<tr>
|
||||
<td class="image>"</td>
|
||||
<td class="name">{$delivery->name|escape}</td>
|
||||
<td class="price"></td>
|
||||
<td class="amount"></td>
|
||||
<td class="price">
|
||||
{$order->delivery_price|convert} {$currency->sign}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
<p> </p>
|
||||
{* Детали заказа *}
|
||||
<h2 align="center">Детали заказа</h2>
|
||||
<table id="order_info" width="70%" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
Дата заказа
|
||||
</td>
|
||||
<td>
|
||||
{$order->date|date} в
|
||||
{$order->date|time}
|
||||
</td>
|
||||
</tr>
|
||||
{if $order->name}
|
||||
<tr>
|
||||
<td>
|
||||
Имя
|
||||
</td>
|
||||
<td>
|
||||
{$order->name|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->email}
|
||||
<tr>
|
||||
<td>
|
||||
Email
|
||||
</td>
|
||||
<td>
|
||||
{$order->email|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->phone}
|
||||
<tr>
|
||||
<td>
|
||||
Телефон
|
||||
</td>
|
||||
<td>
|
||||
{$order->phone|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->address}
|
||||
<tr>
|
||||
<td>
|
||||
Адрес доставки
|
||||
</td>
|
||||
<td>
|
||||
{$order->address|escape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->comment}
|
||||
<tr>
|
||||
<td>
|
||||
Комментарий
|
||||
</td>
|
||||
<td>
|
||||
{$order->comment|escape|nl2br}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
{if !$order->paid}
|
||||
{* Выбор способа оплаты *}
|
||||
{if $payment_methods && !$payment_method}
|
||||
<form method="post">
|
||||
<h2>Выберите способ оплаты</h2>
|
||||
<ul id="deliveries">
|
||||
{foreach $payment_methods as $payment_method}
|
||||
<li>
|
||||
<div class="checkbox">
|
||||
<input type=radio name=payment_method_id value='{$payment_method->id}' {if $payment_method@first}checked{/if} id=payment_{$payment_method->id}>
|
||||
</div>
|
||||
<h3><label for=payment_{$payment_method->id}> {$payment_method->name}, к оплате {$order->total_price|convert:$payment_method->currency_id} {$all_currencies[$payment_method->currency_id]->sign}</label></h3>
|
||||
<div class="description">
|
||||
{$payment_method->description}
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<input type='submit' class="button" value='Закончить заказ'>
|
||||
</form>
|
||||
|
||||
{* Выбраный способ оплаты *}
|
||||
{elseif $payment_method}
|
||||
<h2 align="center">Способ оплаты — {$payment_method->name}
|
||||
<form method=post><input type=submit name='reset_payment_method' value='Выбрать другой способ оплаты'></form>
|
||||
</h2>
|
||||
<p align="center">
|
||||
{$payment_method->description}
|
||||
</p>
|
||||
<h2 align="right">
|
||||
Итого к оплате {$order->total_price|convert:$payment_method->currency_id} {$all_currencies[$payment_method->currency_id]->sign}
|
||||
</h2>
|
||||
|
||||
{* Форма оплаты, генерируется модулем оплаты *}
|
||||
{checkout_form order_id=$order->id module=$payment_method->module}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
<script src="/js/jquery.cookie.js"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
var ids = $.cookie('ecommerce_purchased') ? $.cookie('ecommerce_purchased').split(',') : [];
|
||||
var order_id = {/literal}{$order->id}{literal};
|
||||
if($.inArray(order_id+'', ids) != -1) return;
|
||||
|
||||
var products = [];
|
||||
|
||||
$.each($.yEcommerce, function(k, item){
|
||||
var variant = item.name ? item.name : name;
|
||||
products.push({
|
||||
"id": item.id,
|
||||
"name" : item.product && item.product.name ? item.product.name : item.name,
|
||||
"price": item.price,
|
||||
"quantity": item.amount
|
||||
});
|
||||
});
|
||||
|
||||
//console.log(products);return;
|
||||
|
||||
ids.push(order_id);
|
||||
|
||||
$.cookie('ecommerce_purchased', ids.join(','), { expires: 30, path: '/' });
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
dataLayer.push({
|
||||
"ecommerce": {
|
||||
"purchase": {
|
||||
"actionField": {
|
||||
"id" : order_id,
|
||||
"goal_id" : "19982020",
|
||||
},
|
||||
"products": products
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//console.log(dataLayer)
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
{/literal}
|
||||
|
||||
{if $smarty.get.done == 1}
|
||||
{literal}
|
||||
<script>
|
||||
$(function(){
|
||||
yandexReachGoal('zakazkorzina');
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
|
||||
80
design/atomic/html/page.tpl
Normal file
80
design/atomic/html/page.tpl
Normal file
@@ -0,0 +1,80 @@
|
||||
{* Шаблон текстовой страницы *}
|
||||
<!-- Заголовок страницы* -->
|
||||
{*<div class="title" data-page="{$page->id}">{$page->header|escape}</div>*}
|
||||
<h1>{$page->header|escape}</h1>
|
||||
|
||||
|
||||
{if $catalog_categories}
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
<div class="panel panel-danger collapse-panel">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="/catalog/" class="m_link">Интернет магазин</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
{* Рекурсивная функция вывода дерева категорий *}
|
||||
{function name=categories_tree_index level=0}
|
||||
{if $categories && $level < 2}
|
||||
<ul>
|
||||
{foreach $categories as $c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible && $c->menu && $c->parent_id != 488}
|
||||
<li {if $category->id == $c->id} class="active"{/if}>
|
||||
<a href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a>
|
||||
{if in_array($category->id, $c->children)}
|
||||
{categories_tree_index categories=$c->subcategories level=$level+1}
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<li><a href="/brands/">Товары по брендам</a></li>
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
{categories_tree_index categories=$categories}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-12">
|
||||
{/if}
|
||||
|
||||
{* Костыль для раздела - товары по маркам, выводить все бренды *}
|
||||
{if in_array($page->id, array(12))}
|
||||
{include file='brands_all.tpl'}
|
||||
{/if}
|
||||
|
||||
<!-- Тело страницы -->
|
||||
{$page->body}
|
||||
|
||||
{if $catalog_categories}
|
||||
<div class="categories row">
|
||||
{foreach from=$catalog_categories item=c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible && $c->menu}
|
||||
<div class="category col-sm-4 col-xs-6">
|
||||
<div class="category-image">{if $c->image}<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
|
||||
<img class="img-thumbnail" src="{$c->image|resize_category:263}" title="{$c->name}" alt="{$c->name}">
|
||||
</a>{/if}</div>
|
||||
<div class="category-name">
|
||||
<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a>
|
||||
<div class="category_anons">{$c->anons}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $page->id == 35}
|
||||
{if $smarty.get.edit && $smarty.session.admin == 'admin'}{include file='feedback/edit.tpl'}{/if}
|
||||
{if $smarty.get.reply && $smarty.session.admin == 'admin'}{include file='feedback/reply.tpl'}{/if}
|
||||
{if !$smarty.get.edit && !$smarty.get.reply}{include file='feedback/main.tpl'}{/if}
|
||||
|
||||
{/if}
|
||||
{if $catalog_categories}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
2
design/atomic/html/pages.tpl
Normal file
2
design/atomic/html/pages.tpl
Normal file
@@ -0,0 +1,2 @@
|
||||
{* Шаблон текстовой страницы *}
|
||||
|
||||
42
design/atomic/html/pagination.tpl
Normal file
42
design/atomic/html/pagination.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
{* Постраничный вывод *}
|
||||
{if $total_pages_num>1}
|
||||
{* Скрипт для листания через ctrl → *}
|
||||
{* Ссылки на соседние страницы должны иметь id PrevLink и NextLink *}
|
||||
<script type="text/javascript" src="js/ctrlnavigate.js"></script>
|
||||
{*url*}
|
||||
<!-- Листалка страниц -->
|
||||
<ul class="pagination pagination-sm">
|
||||
{* Количество выводимых ссылок на страницы *}
|
||||
{if !$visible_pages}{$visible_pages = 13}{/if}
|
||||
{* По умолчанию начинаем вывод со страницы 1 *}
|
||||
{$page_from = 1}
|
||||
{* Если выбранная пользователем страница дальше середины "окна" - начинаем вывод уже не с первой *}
|
||||
{if $current_page_num > floor($visible_pages/2)}
|
||||
{$page_from = max(1, $current_page_num-floor($visible_pages/2)-1)}
|
||||
{/if}
|
||||
{* Если выбранная пользователем страница близка к концу навигации - начинаем с "конца-окно" *}
|
||||
{if $current_page_num > $total_pages_num-ceil($visible_pages/2)}
|
||||
{$page_from = max(1, $total_pages_num-$visible_pages-1)}
|
||||
{/if}
|
||||
{* До какой страницы выводить - выводим всё окно, но не более ощего количества страниц *}
|
||||
{$page_to = min($page_from+$visible_pages, $total_pages_num-1)}
|
||||
{* Ссылка на 1 страницу отображается всегда *}
|
||||
<li {if $current_page_num==1}class="active"{/if}><a href="{$smarty.server.SCRIPT_URL}">1</a></li>{*$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI*}
|
||||
{* Выводим страницы нашего "окна" *}
|
||||
{section name=pages loop=$page_to start=$page_from}
|
||||
{* Номер текущей выводимой страницы *}
|
||||
{$p = $smarty.section.pages.index+1}
|
||||
{* Для крайних страниц "окна" выводим троеточие, если окно не возле границы навигации *}
|
||||
{if ($p == $page_from+1 && $p!=2) || ($p == $page_to && $p != $total_pages_num-1)}
|
||||
<li {if $p==$current_page_num}class="active"{/if}><a href="{url page=$p}">...</a></li>
|
||||
{else}
|
||||
<li {if $p==$current_page_num}class="active"{/if}><a href="{url page=$p}">{$p}</a></li>
|
||||
{/if}
|
||||
{/section}
|
||||
{* Ссылка на последнююю страницу отображается всегда *}
|
||||
<li {if $current_page_num==$total_pages_num}class="active"{/if}><a href="{url page=$total_pages_num}">{$total_pages_num}</a></li>
|
||||
{if $current_page_num>1}<li><a class="prev_page_link" href="{if $current_page_num !=2}{url page=$current_page_num-1}{else}{$smarty.server.SCRIPT_URL}{/if}">←назад</a></li>{/if}
|
||||
{if $current_page_num<$total_pages_num}<li><a class="next_page_link" href="{url page=$current_page_num+1}">вперед→</a></li>{/if}
|
||||
</ul>
|
||||
<!-- Листалка страниц (The End) -->
|
||||
{/if}
|
||||
42
design/atomic/html/pagination_articles.tpl
Normal file
42
design/atomic/html/pagination_articles.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
{* Постраничный вывод *}
|
||||
{if $total_pages_num>1}
|
||||
{* Скрипт для листания через ctrl → *}
|
||||
{* Ссылки на соседние страницы должны иметь id PrevLink и NextLink *}
|
||||
<script type="text/javascript" src="js/ctrlnavigate.js"></script>
|
||||
{*url*}
|
||||
<!-- Листалка страниц -->
|
||||
<ul class="pagination pagination-sm">
|
||||
{* Количество выводимых ссылок на страницы *}
|
||||
{if !$visible_pages}{$visible_pages = 13}{/if}
|
||||
{* По умолчанию начинаем вывод со страницы 1 *}
|
||||
{$page_from = 1}
|
||||
{* Если выбранная пользователем страница дальше середины "окна" - начинаем вывод уже не с первой *}
|
||||
{if $current_page_num > floor($visible_pages/2)}
|
||||
{$page_from = max(1, $current_page_num-floor($visible_pages/2)-1)}
|
||||
{/if}
|
||||
{* Если выбранная пользователем страница близка к концу навигации - начинаем с "конца-окно" *}
|
||||
{if $current_page_num > $total_pages_num-ceil($visible_pages/2)}
|
||||
{$page_from = max(1, $total_pages_num-$visible_pages-1)}
|
||||
{/if}
|
||||
{* До какой страницы выводить - выводим всё окно, но не более ощего количества страниц *}
|
||||
{$page_to = min($page_from+$visible_pages, $total_pages_num-1)}
|
||||
{* Ссылка на 1 страницу отображается всегда *}
|
||||
<li {if $current_page_num==1}class="active"{/if}><a href="{pagurl}">1</a></li>{*$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI*}
|
||||
{* Выводим страницы нашего "окна" *}
|
||||
{section name=pages loop=$page_to start=$page_from}
|
||||
{* Номер текущей выводимой страницы *}
|
||||
{$p = $smarty.section.pages.index+1}
|
||||
{* Для крайних страниц "окна" выводим троеточие, если окно не возле границы навигации *}
|
||||
{if ($p == $page_from+1 && $p!=2) || ($p == $page_to && $p != $total_pages_num-1)}
|
||||
<li {if $p==$current_page_num}class="active"{/if}><a href="{pagurl page=$p}">...</a></li>
|
||||
{else}
|
||||
<li {if $p==$current_page_num}class="active"{/if}><a href="{pagurl page=$p}">{$p}</a></li>
|
||||
{/if}
|
||||
{/section}
|
||||
{* Ссылка на последнююю страницу отображается всегда *}
|
||||
<li {if $current_page_num==$total_pages_num}class="active"{/if}><a href="{pagurl page=$total_pages_num}">{$total_pages_num}</a></li>
|
||||
{if $current_page_num>1}<li><a class="prev_page_link" href="{if $current_page_num !=2}{pagurl page=$current_page_num-1}{else}{pagurl}{/if}">←назад</a></li>{/if}
|
||||
{if $current_page_num<$total_pages_num}<li><a class="next_page_link" href="{pagurl page=$current_page_num+1}">вперед→</a></li>{/if}
|
||||
</ul>
|
||||
<!-- Листалка страниц (The End) -->
|
||||
{/if}
|
||||
67
design/atomic/html/pagination_new.tpl
Normal file
67
design/atomic/html/pagination_new.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
{* Постраничный вывод *}
|
||||
|
||||
{if $total_pages_num>1}
|
||||
{* Скрипт для листания через ctrl → *}
|
||||
{* Ссылки на соседние страницы должны иметь id PrevLink и NextLink *}
|
||||
<script type="text/javascript" src="js/ctrlnavigate.js"></script>
|
||||
{*url*}
|
||||
<!-- Листалка страниц -->
|
||||
<ul class="pagination pagination-sm">
|
||||
{* Количество выводимых ссылок на страницы *}
|
||||
{if !$visible_pages}{$visible_pages = 13}{/if}
|
||||
{* По умолчанию начинаем вывод со страницы 1 *}
|
||||
{$page_from = 1}
|
||||
{* Если выбранная пользователем страница дальше середины "окна" - начинаем вывод уже не с первой *}
|
||||
{if $current_page_num > floor($visible_pages/2)}
|
||||
{$page_from = max(1, $current_page_num-floor($visible_pages/2)-1)}
|
||||
{/if}
|
||||
{* Если выбранная пользователем страница близка к концу навигации - начинаем с "конца-окно" *}
|
||||
{if $current_page_num > $total_pages_num-ceil($visible_pages/2)}
|
||||
{$page_from = max(1, $total_pages_num-$visible_pages-1)}
|
||||
{/if}
|
||||
{* До какой страницы выводить - выводим всё окно, но не более ощего количества страниц *}
|
||||
{$page_to = min($page_from+$visible_pages, $total_pages_num-1)}
|
||||
{* Ссылка на 1 страницу отображается всегда *}
|
||||
<li {if $current_page_num==1}class="active"{/if}><a href="{pagurl}">1</a></li>{*$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI*}
|
||||
{* Выводим страницы нашего "окна" *}
|
||||
{section name=pages loop=$page_to start=$page_from}
|
||||
{* Номер текущей выводимой страницы *}
|
||||
{$p = $smarty.section.pages.index+1}
|
||||
{* Для крайних страниц "окна" выводим троеточие, если окно не возле границы навигации *}
|
||||
{if ($p == $page_from+1 && $p!=2) || ($p == $page_to && $p != $total_pages_num-1)}
|
||||
<li {if $p==$current_page_num}class="active"{/if}><a href="{pagurl page=$p}">...</a></li>
|
||||
{else}
|
||||
<li {if $p==$current_page_num}class="active"{/if}><a href="{pagurl page=$p}">{$p}</a></li>
|
||||
{/if}
|
||||
{/section}
|
||||
{* Ссылка на последнююю страницу отображается всегда *}
|
||||
<li {if $current_page_num==$total_pages_num}class="active"{/if}><a href="{pagurl page=$total_pages_num}">{$total_pages_num}</a></li>
|
||||
{if $current_page_num>1}<li><a class="prev_page_link" href="{if $current_page_num !=2}{pagurl page=$current_page_num-1}{else}{pagurl}{/if}">←назад</a></li>{/if}
|
||||
{if $current_page_num<$total_pages_num}<li><a class="next_page_link" href="{pagurl page=$current_page_num+1}">вперед→</a></li>{/if}
|
||||
</ul>
|
||||
<!-- Листалка страниц (The End) -->
|
||||
{/if}
|
||||
|
||||
{if !$bottomPag && $page->id != 35}
|
||||
<div class="sort-order">Сортировать по
|
||||
<select id="sort-order">
|
||||
<option value="0">По умолчанию</option>
|
||||
<option value="min_price" {if $sort_order == 'min_price'}selected="selected"{/if}>По увеличению цены</option>
|
||||
<option value="max_price" {if $sort_order == 'max_price'}selected="selected"{/if}>По уменьшению цены</option>
|
||||
<option value="views" {if $sort_order == 'views'}selected="selected"{/if}>По популярности</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="clearfix"></div>
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
// $(function(){
|
||||
$('#sort-order').change(function(){
|
||||
var val = $('#sort-order').val();
|
||||
var q = val != 0 ? '?order=' + val : '';
|
||||
document.location.href = document.location.pathname + q;
|
||||
});
|
||||
// });
|
||||
</script>
|
||||
{/literal}
|
||||
26
design/atomic/html/password_remind.tpl
Normal file
26
design/atomic/html/password_remind.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{* Письмо пользователю для восстановления пароля *}
|
||||
|
||||
{if $email_sent}
|
||||
<h1>Вам отправлено письмо</h1>
|
||||
|
||||
<p>На {$email|escape} отправлено письмо для восстановления пароля.</p>
|
||||
{else}
|
||||
<h1>Напоминание пароля</h1>
|
||||
<div class="well">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error == 'user_not_found'}
|
||||
<span class="text-danger">Пользователь не найден</span>
|
||||
{else}{$error}{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form class="form form-horizontal" method="post">
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-6 control-label">Введите email, который вы указывали при регистрации</label>
|
||||
<div class="col-sm-6"><input class="form-control" type="text" name="email" data-format="email" data-notice="Введите email" value="{$email|escape}" maxlength="255"/></div>
|
||||
</div>
|
||||
<input type="submit" class="btn btn-danger pull-right" name="login" value="Вспомнить">
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
173
design/atomic/html/post.tpl
Normal file
173
design/atomic/html/post.tpl
Normal file
@@ -0,0 +1,173 @@
|
||||
{* Страница отдельной записи блога *}
|
||||
<!-- Хлебные крошки /-->
|
||||
<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}
|
||||
← <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> →
|
||||
{/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}/">← {$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} →</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}
|
||||
653
design/atomic/html/product.tpl
Normal file
653
design/atomic/html/product.tpl
Normal file
@@ -0,0 +1,653 @@
|
||||
{* Страница товара *}
|
||||
<!-- Хлебные крошки /-->
|
||||
{$bid = 0}
|
||||
{$ccat = $category->path|count}
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
{foreach from=$category->path item=cat} {if $bid == 0}{$bid = $cat->id}{/if}
|
||||
<li><a href="/catalog/{$cat->url}/">{$cat->name|escape}</a></li>
|
||||
{/foreach}
|
||||
{if $brand && $ccat < 2}
|
||||
<li><a href="/catalog/{$cat->url}/{$brand->url}/">{$brand->name|escape}</a></li>
|
||||
{/if}
|
||||
<li>{$product->name|escape}</li>
|
||||
</ul>
|
||||
|
||||
<div class="row">
|
||||
|
||||
{if !$detect->isMobile()}
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
<div class="panel panel-danger collapse-panel">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="/catalog/" class="m_link">Интернет магазин</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
{* Рекурсивная функция вывода дерева категорий *}
|
||||
{function name=categories_tree_index level=0}
|
||||
{if $categories && $level < 2}
|
||||
<ul>
|
||||
{foreach $categories as $c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible && $c->menu && $c->parent_id != 488}
|
||||
<li {if $category->id == $c->id} class="active"{/if}>
|
||||
<a href="/catalog/{$c->url}/" data-category="{$c->id}">{if $c->menu_name}{$c->menu_name}{else}{$c->name}{/if}</a>
|
||||
{if in_array($category->id, $c->children)}
|
||||
{categories_tree_index categories=$c->subcategories level=$level+1}
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<li><a href="/brands/">Товары по брендам</a></li>
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
{categories_tree_index categories=$categories}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
<div class="col-sm-9 col-xs-12 product-box">
|
||||
|
||||
<!-- Хлебные крошки #End /-->
|
||||
|
||||
{*<h1 data-product="{$product->id}">{$product->product_h1|escape}</h1>*}
|
||||
<h1>{$product->name|escape}</h1>
|
||||
<div class="product-details">
|
||||
<div class="product" itemscope itemtype="http://schema.org/Product">
|
||||
<span style="display:none" itemprop="name">{$product->product_h1|escape}</span>
|
||||
<div class="col-sm-4">
|
||||
<!-- Большое фото -->
|
||||
{if $product->image}
|
||||
<div class="product-image">
|
||||
<a href="{$product->image->filename|resize:1000:1000}" class="zoom w" {*rel="product-gallery"*} data-rel="group">
|
||||
<img itemprop="image" class="img-thumbnail" src="{$product->image->filename|resizeProduct:252}" title="{$product->name|escape}" alt="{$product->name|escape}" /></a>
|
||||
</div>
|
||||
{else}
|
||||
<div class="product-image"><img src="/images/zag2.jpg" class="img-thumbnail" alt=""></div>
|
||||
{/if}
|
||||
<!-- Большое фото (The End)-->
|
||||
<!-- Дополнительные фото продукта -->
|
||||
{if $product->images|count>1}
|
||||
<div class="product-images">
|
||||
{* cut удаляет первую фотографию, если нужно начать 2-й - пишем cut:2 и тд *}
|
||||
{foreach $product->images|cut as $i=>$image}
|
||||
<a href="{$image->filename|resize:1000:1000}" class="zoom w" {*rel="product-gallery"*} data-rel="group"><img class="img-thumbnail" src="{$image->filename|resize:100:100}" title="{$product->name|escape}" alt="{$product->name|escape}" /></a>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Дополнительные фото продукта (The End)-->
|
||||
</div>
|
||||
{literal} <script>$.yEcommerce = [];</script> {/literal}
|
||||
<div class="col-sm-8">
|
||||
|
||||
|
||||
|
||||
{if $product->variants|count > 0}
|
||||
<!-- Выбор варианта товара -->
|
||||
<div style="display: inline" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
||||
<span class="mdh" itemprop="priceCurrency" data-content="RUB">RUB</span>
|
||||
<form class="variants" action="/cart">
|
||||
<table>
|
||||
{foreach $product->variants as $v}
|
||||
{literal}<script>$.yEcommerce.push( {/literal}{$v|@json_encode nofilter}{literal} );</script>{/literal}
|
||||
<tr class="variant">
|
||||
<td>
|
||||
<input id="related_{$v->id}" name="variant" value="{$v->id}" type="radio" class="variant_radiobutton" data-stock="{$v->stock}" {if $v@first}checked{/if} {if $product->variants|count<2} style="display:none;"{/if}/>
|
||||
</td>
|
||||
<td style="padding-left: 10px">
|
||||
{if $v->name}<label class="variant_name" for="related_{$v->id}">{$v->name}</label>{/if}
|
||||
</td>
|
||||
<td style="padding-left: 10px">
|
||||
{if $v->price != 0.00}
|
||||
<span class="mdh" itemprop="price" data-content="{$v->price}">{$v->price}</span>
|
||||
<span class="product-price"><small>Цена </small> {$v->price|convert} <small>{$currency->sign|escape}.</small></span>
|
||||
{if $v->compare_price > 0} <span class="product-compare-price"><small>цена </small> {$v->compare_price|convert} <small>{$currency->sign|escape}</small></span>{/if}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div id="params">
|
||||
{if $featuresvars}
|
||||
{foreach $featuresvars as $fv}
|
||||
{$fid = $fv->id}
|
||||
{if $v->options.$fid|count > 0}
|
||||
<div class="select">
|
||||
<label>{$fv->name}:</label> <select name="feature[{$fv->id}]">
|
||||
{if $fv->nameselect}<option value="">{$fv->nameselect}</option>{/if}
|
||||
{foreach $fv->options as $fo}
|
||||
<option value="{$fo}" class="option
|
||||
{foreach $product->variants as $v}
|
||||
{if $v->options.$fid}
|
||||
{foreach $v->options.$fid as $vo}
|
||||
{if $vo->value == $fo}
|
||||
var{$v->id}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
" disabled>
|
||||
{$fo}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select></div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
function activeVariant(){
|
||||
$('#params .select select option').attr('disabled','disabled');
|
||||
var inp = $("input[name=variant]:checked")
|
||||
var variant = inp.val();
|
||||
$('#params .select select option.var'+variant).removeAttr('disabled');
|
||||
if(inp.attr('data-stock')=='0'){
|
||||
$('#buy').hide();
|
||||
$('#prebuy').show();
|
||||
}else{
|
||||
$('#buy').show();
|
||||
$('#prebuy').hide();
|
||||
}
|
||||
}
|
||||
$("input[name=variant]").change(function(){
|
||||
activeVariant();
|
||||
});
|
||||
activeVariant();
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="product-buttons">
|
||||
<div id="buy">
|
||||
<div class="minus-plus">
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" id="add1" type="button" onclick="javascript:this.form.amount.value= this.form.amount.value<=1 ? 1 :parseInt(this.form.amount.value)-1 ;"><span class="glyphicon glyphicon-minus"></span></button>
|
||||
</span>
|
||||
<input type="text" class="form-control" name="amount" value="1">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" id="add2" type="button" onclick="javascript:this.form.amount.value= this.form.amount.value>=10 ? 10 :parseInt(this.form.amount.value)+1 ;"><span class="glyphicon glyphicon-plus"></span></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{*
|
||||
Кол-во<input id="add1" type="button" value="-" onclick="javascript:this.form.amount.value= this.form.amount.value<=1 ? 1 :parseInt(this.form.amount.value)-1 ;">
|
||||
<input type="text" style="width:30px" name="amount" value="1">
|
||||
<input type="button" value="+" id="add2" onclick="javascript:this.form.amount.value= this.form.amount.value>=10 ? 10 :parseInt(this.form.amount.value)+1 ;"><br>
|
||||
*}
|
||||
<p> </p>
|
||||
<button type="submit" class="btn cart-btn" data-result-text="Товар добавлен" >Добавить в корзину</button>
|
||||
<button class="btn ask-a-question" data-href="#question_form"><i class="fa fa-commenting" aria-hidden="true"></i> Задать вопрос</button>
|
||||
<button class="btn ask-a-zakaz" data-href="#zakaz_form"><i class="fa fa-pencil-square" aria-hidden="true"></i> Заказать с установкой</button>
|
||||
</div>
|
||||
<div id="prebuy" style="display:none;">
|
||||
{*<p>Нет в наличии</p>*}
|
||||
<input type="button" class="btn btn-danger addcart preorder" value="Предзаказ" data-stock="{$product->variant->id}" data-id="{$product->variant->id}"/>
|
||||
</div>
|
||||
</div>
|
||||
</form></div>
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
{else}
|
||||
{/if}
|
||||
|
||||
<div class="cards">
|
||||
<ul>
|
||||
<li>Бесплатная доставка по СПб при заказе от 10000 рублей.</li>
|
||||
<li>Доставка по всей России и СНГ.</li>
|
||||
<li>Сертификат соответствия на продукцию. </li>
|
||||
<li>Возможна установка в нашем сервисном центре. </li>
|
||||
</ul>
|
||||
<img src="/images/cards.png" alt=""></div>
|
||||
|
||||
<div class="none" style="display:none;">
|
||||
<div class="modal2 dialog amount well" id="amount{$product->variant->id}" >
|
||||
<form class="ajaxform preorder form-horizontal" action="ajax/preorder.php" method="post">
|
||||
<input name="variant" value="{$product->variant->id}" type="hidden" />
|
||||
<input name="comment" value="Предзаказ на {$product->name}" type="hidden" />
|
||||
<span class="header h22">Предзаказ</span>
|
||||
<p><a href="/products/{$product->url}/">{$product->name|escape}</a></p>
|
||||
<p>Как только товар будет в наличии, наш менеджер свяжется с Вами.</p>
|
||||
<div class="cart_form">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Имя</label>
|
||||
<span class="col-sm-9"><input name="name" class="form-control" type="text" value="{$name|escape}" /></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Фамилия</label>
|
||||
<span class="col-sm-9"><input name="name2" class="form-control" type="text" value="{$name2|escape}" /></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Email</label>
|
||||
<span class="col-sm-9"><input name="email" class="form-control" type="text" value="{$email|escape}" /></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Телефон*</label>
|
||||
<span class="col-sm-9"><input name="phone" class="form-control" type="text" value="{$phone|escape}" required="required" /></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<p class="clear"></p>
|
||||
<p class="pull-right"><input class="button btn btn-danger" type="submit" value="Отправить" /></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- Рейтинг -->
|
||||
<script src="design/{$settings->theme}/js/project.js"></script>
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
$('.testRater').rater({ postHref: 'ajax/rating.php' });
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{*
|
||||
<div class="testRater" id="product_{$product->id}">
|
||||
<div class="statVal">
|
||||
<span class="rater">
|
||||
<span class="rater-starsOff" style="width:115px;">
|
||||
<span class="rater-starsOn" style="width:{$product->rating*115/5|string_format:"%.0f"}px"></span>
|
||||
</span>
|
||||
<span class="test-text">
|
||||
<span class="rater-rating">{$product->rating|string_format:"%.1f"}</span> (голосов <span class="rater-rateCount">{$product->votes|string_format:"%.0f"}</span>)
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
*}
|
||||
<!-- Рейтинг (The End) -->
|
||||
|
||||
<!-- TABS -->
|
||||
{literal}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#tabcontent div._tabs").hide(); // Скрываем содержание
|
||||
$("#tabs li:first").attr("id","current"); // Активируем первую закладку
|
||||
$("#tabcontent div:first").fadeIn(); // Выводим содержание
|
||||
$('#tabs a').click(function(e) {
|
||||
e.preventDefault();
|
||||
$("#tabcontent div._tabs").hide(); //Скрыть все сожержание
|
||||
$("#tabs li").attr("id",""); //Сброс ID
|
||||
$(this).parent().attr("id","current"); // Активируем закладку
|
||||
$('#' + $(this).attr('title')).fadeIn(); // Выводим содержание текущей закладки
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<ul id="tabs">
|
||||
<li><a href="#" title="Описание">Описание</a></li>
|
||||
<li><a href="#" title="Примеры">Примеры установки</a></li>
|
||||
<li><a href="#" title="Отзывы">Обсуждение</a></li>
|
||||
<li><a href="#" title="Оплата">Оплата</a></li>
|
||||
<li><a href="#" title="Доставка">Доставка</a></li>
|
||||
<li><a href="#" title="Гарантия">Гарантия</a></li>
|
||||
<li><a href="#" title="Популярное">Популярное</a></li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
<div id="tabcontent">
|
||||
<div id="Описание" class="_tabs">
|
||||
<!-- Описание товара -->
|
||||
{*<span class="h22" data-product="{$product->id}">Описание товара {$product->name|escape}</span>*}
|
||||
<div class="description">
|
||||
{images_resize content=$product->body}
|
||||
</div>
|
||||
<div itemprop="description" style="display:none;">
|
||||
{if $product->annotation}{$product->annotation}{else}{$product->body}{/if}
|
||||
</div>
|
||||
<!-- Описание товара (The End)-->
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
$('.description p').each(function() {
|
||||
if ($(this).find('.fancybox').length == 1) {
|
||||
$(this).find('.fancybox').wrap('<div class="col-sm-12"></div>')
|
||||
$(this).wrapInner('<div class="row"></div>')
|
||||
}
|
||||
if ($(this).find('.fancybox').length >= 2) {
|
||||
$(this).find('.fancybox').wrap('<div class="col-sm-6"></div>')
|
||||
$(this).wrapInner('<div class="row"></div>')
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="Примеры" class="_tabs">
|
||||
{if $related_articles}
|
||||
<ul>
|
||||
{foreach $related_articles as $a}
|
||||
<li>
|
||||
{if $a->image}<a href="/{$config->worksUrl}/{$a->url}/"><img src="{$a->image|resizepost:100:100}" alt="{$a->name|escape}" /></a>{/if}
|
||||
<span class="h22"><a href="/{$config->worksUrl}/{$a->url}/">{$a->name|escape}</a></span>
|
||||
<div>{$a->annotation}</div>
|
||||
<p class="clear"></p>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="Отзывы" class="_tabs">
|
||||
<span class="h22">Комментарии</span>
|
||||
{if $comments}
|
||||
<!-- Список с комментариями -->
|
||||
<ul class="comment_list">
|
||||
{foreach $comments as $comment}
|
||||
<li style="background-color: transparent;padding:0"></li>
|
||||
<li style="background-color: transparent;padding:0"><a id="comment_{$comment->id}"></a><hr></li>
|
||||
|
||||
<li>
|
||||
<!-- Имя и дата комментария-->
|
||||
<p class="comment_header" style="display: block;">
|
||||
{$comment->name|escape} <span class="product-comment-date">{$comment->date|date}, {$comment->date|time}</span>
|
||||
{if !$comment->approved}ожидает модерации</b>{/if}
|
||||
</p>
|
||||
<!-- Имя и дата комментария (The End)-->
|
||||
<!-- Комментарий -->
|
||||
{$comment->text|escape|nl2br}
|
||||
<!-- Комментарий (The End)-->
|
||||
</li>
|
||||
<li style="background-color: transparent;padding:0"><hr></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<!-- Список с комментариями (The End)-->
|
||||
{else}
|
||||
<p>
|
||||
Пока нет комментариев
|
||||
</p>
|
||||
{/if}
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponseProduct');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<!--Форма отправления комментария-->
|
||||
<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 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 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>
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseProduct">
|
||||
<input class="btn btn-danger pull-right" type="submit" name="comment" value="Отправить" style="margin: 20px 15px 0 0;"/>
|
||||
<input id="h_email" name="email">
|
||||
</form>
|
||||
</div>
|
||||
<!--Форма отправления комментария (The End)-->
|
||||
</div>
|
||||
|
||||
<div id="Оплата" class="_tabs">
|
||||
<div class="h4">Для клиентов нашего тюнинг центра по адресу: Санкт-Петербург, Кондратьевский пр. , д. 17 к2К</div>
|
||||
|
||||
<ul>
|
||||
<li>Оплата наличными</li>
|
||||
<li>Оплата картами Visa, Mastercard, JCB, UnionPay, American Express, МИР</li>
|
||||
<li>Оплата для ЮР. лиц на расчетный счет компании</li>
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
<div class="h4">Для клиентов других регионов России и СНГ.</div>
|
||||
|
||||
<p>В регионы товары отправляются ТОЛЬКО со 100% предоплатой, с учетом стоимости доставки.<br />
|
||||
При заказе услуг по доработке фар и фонарей форма оплаты обсуждается индивидуально.<br />
|
||||
Для получения более подробной информации обращайтесь к нашим сотрудникам по тел.: +7-921-958-91-00 или на почту info@atomicgarage.ru</p>
|
||||
|
||||
<ul>
|
||||
<li>Оплата через систему Сбербанк Онлайн и отделения Сбербанка</li>
|
||||
<li>Оплата через систему Альфа-Клик</li>
|
||||
<li>Оплата для ЮР. лиц на расчетный счет компании</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="Доставка" class="_tabs">
|
||||
<div class="h3 text-center">Доставка товара осуществляется по всей России и СНГ</div>
|
||||
|
||||
<hr />
|
||||
<div class="h3">Самовывоз в Санкт-Петербурге</div>
|
||||
|
||||
<p>Самовывоз по адресу: Санкт-Петербург, Кондратьевский пр. , д. 17 к2К</p>
|
||||
|
||||
<ul>
|
||||
<li>тел: <span style="font-size:20px;">+7 (921) 958-91-00</span></li>
|
||||
<li>тел: <span style="font-size:20px;">+7 (921) 958-92-00</span></li>
|
||||
</ul>
|
||||
|
||||
<p>Режим работы: Пн-Сб 10:00-20:00, Вс - выходной</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="h4">3) Курьерская служба СДЭК</div>
|
||||
|
||||
<p>Компания СДЭК предлагает услуги экспресс-доставки грузов, посылок, документов и писем в любую точку России и мира.</p>
|
||||
|
||||
<ul>
|
||||
<li>Один из лучших способов доставки при соотношение цена - качество!</li>
|
||||
<li>Доставка осуществляется до адресата, по предварительной договоренности адреса и времени или до ближайшего отделения службы СДЭК.</li>
|
||||
<li>Сроки поставки от 4 до 10 дней.</li>
|
||||
<li>Стоимость доставки от 300 до 800 руб.</li>
|
||||
</ul>
|
||||
|
||||
<p>Отправка заказов производится в день заказа, либо на следующий день. <a href="https://www.cdek.ru/ru/tracking/" rel="nofollow" target="_blank">Ссылка для отслеживания</a></p>
|
||||
</div>
|
||||
|
||||
<div id="Гарантия" class="_tabs">
|
||||
<p>Гарантийный срок на предоставляемый товар в нашем <a href="/tuning-centr/">тюнинг центре</a> Atomic Garage.</p>
|
||||
|
||||
<p>На товарные позиции дается гарантия 6-12 месяцев, в зависимости от производителя товара.</p>
|
||||
|
||||
<p>Гарантия не распространяется, если автомобиль на который была произведена установка имеет неисправности, такие как:</p>
|
||||
|
||||
<ul>
|
||||
<li>Неисправность генератора</li>
|
||||
<li>АКБ</li>
|
||||
<li>Электросети</li>
|
||||
<li>Негерметичные элементы</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="Популярное" class="_tabs">
|
||||
<div class="h4">Популяные виды услуг:</div>
|
||||
<ul>
|
||||
<li><a href="/tuning-centr/regulirovka-sveta-far/">Регулировка света фар</a></li>
|
||||
<li><a href="/tuning-centr/bronirovanie-far/">Бронирование фар</a></li>
|
||||
<li><a href="/tuning-centr/polirovka-far/">Полировка фар</a></li>
|
||||
<li><a href="/tuning-centr/tonirovka-zadnih-fonarej/">Тонирование фар</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-signalizacii-na-avtomobil/">Установка сигнализации</a></li>
|
||||
<li><a href="/tuning-centr/chip-tyuning/">Чип-тюнинг</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-sabvuferov/">Установка сабвуферов</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-kamery-zadnego-vida-na-avtomobil/">Установка камер заднего вида</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-videoregistratora/">Установка видеорегистраторов</a></li>
|
||||
<li><a href="/tuning-centr/bronirovanie-plenkoj-avtomobilja/">Оклейка автомобиля антигравийной пленкой</a></li>
|
||||
<li><a href="/tuning-centr/shumoizoljacija-avtomobilja/">Шумоизоляция автомобиля</a></li>
|
||||
<li><a href="/tuning-centr/detejling/">Детейлинг авто</a></li>
|
||||
<li><a href="/tuning-centr/poshiv-salona-avto/">Пошив салона</a></li>
|
||||
<li><a href="/tuning-centr/ustanovka-avtomagnitol/">Установка автомагнитол</a></li>
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block layer">
|
||||
<h2 align="center">Рекомендуемые товары</h2>
|
||||
<div id=list class="sortable related_products">
|
||||
{foreach from=$related_products item=related_product}
|
||||
<div class="row">
|
||||
<div class="move cell">
|
||||
<div class="move_zone"></div>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<input type=hidden name=related_products[] value='{$related_product->id}'>
|
||||
<a href="{url id=$related_product->id}">
|
||||
<img class=product_icon src='{$related_product->images[0]->filename|resize:250:150}' title="{$related_product->name|escape}" alt="{$related_product->name|escape}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="name cell">
|
||||
<a href="{url id=$related_product->id}">{$related_product->name}</a>
|
||||
</div>
|
||||
<div class="icons cell">
|
||||
<a href='#' class="delete"></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div id="new_related_product" class="row" style='display:none;'>
|
||||
<div class="move cell">
|
||||
<div class="move_zone"></div>
|
||||
</div>
|
||||
<div class="image cell">
|
||||
<input type=hidden name=related_products[] value=''>
|
||||
<img class=product_icon src=''>
|
||||
</div>
|
||||
<div class="name cell">
|
||||
<a class="related_product_name" href=""></a>
|
||||
</div>
|
||||
<div class="icons cell">
|
||||
<a href='#' class="delete"></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- TABS (The End)-->
|
||||
|
||||
</div>
|
||||
<div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,viber,whatsapp,telegram"></div>
|
||||
<!-- Просмотров --> <div style="text-align:right"><small>Просмотров товара: {$product->views}</small></div> <!-- Просмотров (The End) -->
|
||||
|
||||
{if $adminBtn}
|
||||
<a class="btn btn-warning btn-sm" href="{$adminBtn}" style="position:absolute;top:80px;right:15px" title="редактировать"><i class="fa fa-pencil-square-o"></i></a>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
<!-- Описание товара (The End)-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{literal}
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$(".features li:even").addClass('even');
|
||||
$('a[data-rel=group]').attr('rel', 'product-gallery');
|
||||
$("a.zoom").fancybox({ 'hideOnContentClick' : true });
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{literal}
|
||||
<script>
|
||||
function saveData() {
|
||||
sessionStorage.data = '#comments';
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
$('#myTab a[href="'+sessionStorage.data+'"]').tab('show');
|
||||
});
|
||||
|
||||
//// yandex Ecommerce
|
||||
|
||||
var cat = [];
|
||||
$('.breadcrumb li a').each(function(k, v){ if(k) cat.push($(v).text()); });
|
||||
cat = cat.join('/');
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
var name = '{/literal}{$product->name|escape}{literal}';
|
||||
var brand = '{/literal}{$product->brand|escape}{literal}';
|
||||
|
||||
var products = [];
|
||||
|
||||
$.each($.yEcommerce, function(k, item){
|
||||
var variant = item.name ? item.name : name;
|
||||
products.push({
|
||||
"id": item.id,
|
||||
"name" : name,
|
||||
"price": item.price,
|
||||
"brand": brand,
|
||||
"category": cat,
|
||||
"variant" : variant
|
||||
});
|
||||
});
|
||||
|
||||
dataLayer.push({
|
||||
"ecommerce": {
|
||||
"detail": {
|
||||
"products": products
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var $form = $('form.variants');
|
||||
var id = '{/literal}{$product->id}{literal}';
|
||||
|
||||
$form.find('input[type=submit]').click(function(){
|
||||
if($form.find('input[name=variant]:checked').size() > 0) id = $form.find('input[name=variant]:checked').val();
|
||||
dataLayer.push({
|
||||
"ecommerce": {
|
||||
"add": {
|
||||
"products": [eCommerceFindProduct(id, products)]
|
||||
}
|
||||
}
|
||||
});
|
||||
//console.log(dataLayer)
|
||||
});
|
||||
|
||||
function eCommerceFindProduct(id, products){
|
||||
var res = {};
|
||||
$.each(products, function(k, item){ if(item.id == id) res = item });
|
||||
res.quantity = 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
{/literal}
|
||||
{include file='forms/question.tpl'}
|
||||
{include file='forms/zakaz.tpl'}
|
||||
328
design/atomic/html/products.tpl
Normal file
328
design/atomic/html/products.tpl
Normal file
@@ -0,0 +1,328 @@
|
||||
{* Список товаров *}
|
||||
<!-- Хлебные крошки /-->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Главная</a></li>
|
||||
{if $category}
|
||||
{foreach from=$category->path item=cat}
|
||||
<li><a href="/catalog/{$cat->url}/">{$cat->name|escape}</a></li>
|
||||
{/foreach}
|
||||
{if $brand}
|
||||
<li><a href="/catalog/{$cat->url}/{$brand->url}/">{$brand->name|escape}</a></li>
|
||||
{/if}
|
||||
{elseif $brand}
|
||||
<li><a href="/brands/{$brand->url}/">{$brand->name|escape}</a></li>
|
||||
{elseif $keyword}
|
||||
<li>Поиск</li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="row">
|
||||
{if !$detect->isMobile()}
|
||||
<div class="col-sm-3 col-xs-12">
|
||||
<div class="panel panel-danger collapse-panel">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="/catalog/" class="m_link">Интернет магазин</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
{* Рекурсивная функция вывода дерева категорий *}
|
||||
{function name=categories_tree_index level=0}
|
||||
{if $categories && $level < 2}
|
||||
<ul>
|
||||
{foreach $categories as $c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible && $c->menu && $c->parent_id != 488}
|
||||
<li {if $category->id == $c->id} class="active"{/if}>
|
||||
<a href="/catalog/{$c->url}/" data-category="{$c->id}">{if $c->menu_name}{$c->menu_name}{else}{$c->name}{/if}</a>
|
||||
{if in_array($category->id, $c->children)}
|
||||
{categories_tree_index categories=$c->subcategories level=$level+1}
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $level==0}
|
||||
<li><a href="/brands/">Товары по брендам</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
{categories_tree_index categories=$categories}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="col-sm-9 col-xs-12">
|
||||
<!-- Хлебные крошки #End /-->
|
||||
{* Заголовок страницы *}
|
||||
{if $keyword}
|
||||
<h1>Поиск {$keyword|escape}</h1>
|
||||
{if !$products}
|
||||
Наш поиск по сайту не смог найти то, что Вы ищете.<br />
|
||||
Но, возможно, этот товар есть в наличии. Позвоните нам по телефонам, указанным в контактах или закажите обратный звонок на сайте, чтобы наш менеджер смог Вас проконсультировать.
|
||||
{/if}
|
||||
{elseif $page && $page->name}
|
||||
<h1>{$page->name|escape}</h1>
|
||||
{else}
|
||||
{if $brand && !$category}{$td = 'Товары для тюнинга '}{else}{$td=''}{/if}
|
||||
{if $category->parent_id == 488 && $brand}
|
||||
<h1>{$category->category_h1|escape} {$keyword|escape}</h1>
|
||||
{else}
|
||||
<h1>
|
||||
{if $category->category_h1}
|
||||
{$category->category_h1|escape} {$td}{$brand->name|escape} {$keyword|escape}{if $smarty.get.page > 1} - страница {$smarty.get.page}{/if}
|
||||
{else}Все товары{if $brand} для автомобилей {$brand->name}{/if}{if $smarty.get.page > 1} - страница {$smarty.get.page}{/if}
|
||||
{/if}
|
||||
</h1>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{* Описание страницы (если задана) *}
|
||||
{$page->body}
|
||||
{if $current_page_num==1}
|
||||
{* Описание категории *}
|
||||
{$category->description}
|
||||
{/if}
|
||||
|
||||
|
||||
{* Фильтр по брендам *}
|
||||
{*include file='brands.tpl'*}
|
||||
|
||||
{* Описание бренда *}
|
||||
{$brand->description}
|
||||
{* Фильтр по свойствам *}
|
||||
{if $features}
|
||||
<table id="features">
|
||||
{foreach $features as $f}
|
||||
<tr>
|
||||
<td class="feature_name" data-feature="{$f->id}">
|
||||
{$f->name}:
|
||||
</td>
|
||||
<td class="feature_values">
|
||||
<a href="{url params=[$f->id=>null, page=>null]}/" {if !$smarty.get.$f@key}class="selected"{/if}>Все</a>
|
||||
{foreach $f->options as $o}
|
||||
<a href="{url params=[$f->id=>$o->value, page=>null]}/" {if $smarty.get.$f@key == $o->value}class="selected"{/if}>{$o->value|escape}</a>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
<!--Каталог товаров
|
||||
{if $products || 1}
|
||||
{* Сортировка *}
|
||||
{if $products|count>0}
|
||||
<div class="sort" align="right">
|
||||
Сортировать по
|
||||
<a {if $sort=='position'} class="selected"{/if} href="{url sort=position page=null}">умолчанию</a>
|
||||
<a {if $sort=='price'} class="selected"{/if} href="{url sort=price page=null}">цене</a>
|
||||
<a {if $sort=='name'} class="selected"{/if} href="{url sort=name page=null}">названию</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Каталог товаров-->
|
||||
{if $category->subcategories && $category->id != 24 && !$category->from_subs} {*if1*}
|
||||
|
||||
{* подразделы *}
|
||||
|
||||
{* Костыль для разделов, которые как бренды *}
|
||||
{if in_array($category->id, array(257, 15, 50, 32, 33, 43, 415))}
|
||||
|
||||
{include file='category_like_brands.tpl'}
|
||||
|
||||
{else}
|
||||
|
||||
{include file='category.tpl'}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{else} {* /if1*}
|
||||
|
||||
|
||||
{if $category->id == 15} {*if2*}
|
||||
|
||||
{include file='category_like_brands.tpl'}
|
||||
|
||||
{/if} {* /if2*}
|
||||
|
||||
|
||||
|
||||
{*if $category->id == 246 || $category->id == 24}{include file='category.tpl'}<div class="h3">Все товары</div>{/if*}
|
||||
{if $category->from_subs}{include file='category.tpl'}<div class="h3">Все товары</div>{/if}
|
||||
|
||||
{*if $category->id == 15}<div class="h3">Все товары</div>{/if*}
|
||||
|
||||
<div style="text-align: right;">{include file='pagination_new.tpl'}</div>
|
||||
<!-- Список товаров-->
|
||||
{literal} <script>$.yEcommerce = [];</script> {/literal}
|
||||
<div class="products clearfix">
|
||||
{foreach $products as $product}
|
||||
|
||||
<!-- Товар-->
|
||||
<div class="product cleafix" itemscope itemtype="http://schema.org/Product">
|
||||
<!-- Фото товара -->
|
||||
{if $product->image}
|
||||
<div class="product-image col-sm-3">
|
||||
<a href="/products/{$product->url}/" class="w"><img itemprop="image" src="{$product->image->filename|resizeProduct:200:133:1}" title="{$product->name|escape}" alt="{$product->name|escape}" class="img-thumbnail"/></a>
|
||||
</div>
|
||||
{else}
|
||||
<div class="product-image col-sm-3"><a href="/products/{$product->url}/" class="w"><img src="/images/zag2.jpg" class="img-thumbnail" alt=""></a></div>
|
||||
{/if}
|
||||
<!-- Фото товара (The End) -->
|
||||
<div class="product-info col-sm-9">
|
||||
<!-- Название товара -->
|
||||
<span class="{if $product->featured}featured{/if}" itemprop="name"><a class="product-name" data-product="{$product->id}" href="/products/{$product->url}/" itemprop="url">{$product->name|escape}</a></span>
|
||||
<!-- Название товара (The End) -->
|
||||
<!-- Описание товара -->
|
||||
<div class="product-annotation" itemprop="description">{$product->annotation}</div>
|
||||
<!-- Описание товара (The End) -->
|
||||
{if $product->variants|count > 0}
|
||||
<!-- Выбор варианта товара-->
|
||||
<!-- Выбор варианта -->
|
||||
{assign var="pmin" value=99999999}
|
||||
{assign var="priceFlag" value=0}
|
||||
{foreach $product->variants as $v}
|
||||
{if $v@first || $v->price<$pmin}
|
||||
{assign var="pmin" value=$v->price}
|
||||
{assign var="vmin" value=$v->id}
|
||||
{assign var="nmin" value=$v->name}
|
||||
{assign var="smin" value=$v->stock}
|
||||
|
||||
{/if}
|
||||
{if $v->price != $pmin && $pmin != 99999999}
|
||||
{assign var="priceFlag" value=1}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
var x = {/literal}{$product|@json_encode nofilter}{literal}
|
||||
x._price = {/literal}{$pmin}{literal}
|
||||
$.yEcommerce.push( x );
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
|
||||
<form class="variants" action="/cart">
|
||||
<input style="display:none" name="variant" value="{$vmin}" type="radio" checked />
|
||||
<div class="text-right col-sm-9" style="padding-right: 0px;">
|
||||
<span class="product-price" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span class="mdh" itemprop="priceCurrency" data-content="RUB">RUB</span><span class="mdh" itemprop="price" data-content="{$pmin}">{$pmin}</span>
|
||||
{if $priceFlag == 1}<small>цена от</small>{else}<small>цена</small>{/if}
|
||||
|
||||
{$pmin|convert} <small>{$currency->sign|escape}</small></span>
|
||||
{if $v->compare_price > 0} <span class="product-compare-price">
|
||||
{if $priceFlag == 1}<small>цена от</small>{else}<small>цена</small>{/if}
|
||||
{$v->compare_price|convert} <small>{$currency->sign|escape}</small></span>{/if}
|
||||
</div>
|
||||
<div class="text-right col-sm-3" style="padding-right: 0px;">
|
||||
{if $smin !='0'}
|
||||
<a data-product="{$product->id}" href="/products/{$product->url}/" class="btn cart-btn">в корзину
|
||||
{*<input type="button" class="btn btn-danger" value="Купить" data-result-text="добавлено"/>*}
|
||||
</a>
|
||||
{else}
|
||||
<input type="button" class="btn btn-danger preorder" data-id="{$product->variant->id}" value="Предзаказ"/>
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
<!-- End Выбор варианта -->
|
||||
<!-- Выбор варианта товара (The End) -->
|
||||
{else}
|
||||
Нет в наличии
|
||||
{/if}
|
||||
<div class="none" style="display: none;">
|
||||
<div class="modal2 dialog amount well" id="amount{$product->variant->id}">
|
||||
<form class="ajaxform preorder form-horizontal" action="ajax/preorder.php" method="post">
|
||||
<input name="variant" value="{$product->variant->id}" type="hidden" />
|
||||
<input name="comment" value="Предзаказ на {$product->name|escape:'html'}" type="hidden" />
|
||||
<span class="header h22">Предзаказ</span>
|
||||
<p><a href="/products/{$product->url}/">{$product->name|escape}</a></p>
|
||||
<p>Как только товар будет в наличии, наш менеджер свяжется с Вами.</p>
|
||||
<div class="line form">
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Имя</label>
|
||||
<span class=" col-sm-9"><input name="name" class="form-control" type="text" value="{$name|escape}" /></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Фамилия</label>
|
||||
<span class=" col-sm-9"><input name="name2" class="form-control" type="text" value="{$name2|escape}" /></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Email</label>
|
||||
<span class=" col-sm-9"><input name="email" class="form-control" type="text" value="{$email|escape}" /></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=" col-sm-3 control-label">Телефон*</label>
|
||||
<span class=" col-sm-9"><input name="phone" class="form-control" type="text" required="required" value="{$phone|escape}" /></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="clear"></p>
|
||||
<p class="pull-right"><input class="button btn btn-danger" type="submit" value="Отправить"/></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Товар (The End)-->
|
||||
{/foreach}
|
||||
</div>
|
||||
{assign var="bottomPag" value=1}
|
||||
<div style="text-align:right">{include file='pagination_new.tpl'}</div>
|
||||
{/if}
|
||||
<!-- Список товаров (The End)-->
|
||||
{else}
|
||||
{if $category->subcategories}
|
||||
<a href="/catalog/{$c->url}/">{$c->name}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $category->text_bottom}
|
||||
{$category->text_bottom}
|
||||
{/if}
|
||||
|
||||
<!--Каталог товаров (The End)-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{literal}
|
||||
|
||||
<script>
|
||||
//// yandex Ecommerce
|
||||
|
||||
var cat = [];
|
||||
$('.breadcrumb li a').each(function(k, v){ if(k) cat.push($(v).text()); });
|
||||
cat = cat.join('/');
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
var products = [];
|
||||
|
||||
$.each($.yEcommerce, function(k, item){
|
||||
products.push({
|
||||
"id": item.id,
|
||||
"name" : item.name,
|
||||
"price": item._price,
|
||||
"brand": item.brand,
|
||||
"category": cat,
|
||||
//"variant" : variant
|
||||
});
|
||||
});
|
||||
|
||||
dataLayer.push({
|
||||
"ecommerce": {
|
||||
"detail": {
|
||||
"products": products
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
{/literal}
|
||||
47
design/atomic/html/register.tpl
Normal file
47
design/atomic/html/register.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{* Страница регистрации *}
|
||||
|
||||
{$meta_title = "Регистрация" scope=parent}
|
||||
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q"></script>
|
||||
<script>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('6LegdywdAAAAADKhWf40ZE7xYCwRlvVg_mg3Ot0q', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponse');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div class="title">Регистрация</div>
|
||||
<div class="well">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error == 'empty_name'}Введите имя
|
||||
{elseif $error == 'empty_email'}Введите email
|
||||
{elseif $error == 'empty_password'}Введите пароль
|
||||
{elseif $error == 'user_exists'}Пользователь с таким email уже зарегистрирован
|
||||
{elseif $error == 'captcha'}Неверно введена капча
|
||||
{elseif $error == 'recaptcha'}Вы не прошли проверку защиты
|
||||
{else}{$error}{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form class="form register_form form-horizontal" method="post">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Имя</label>
|
||||
<div class="col-sm-10"><input class="form-control" type="text" name="name" data-format=".+" data-notice="Введите имя" value="{$name|escape}" maxlength="255" /></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10"><input class="form-control" type="text" name="email" data-format="email" data-notice="Введите email" value="{$email|escape}" maxlength="255" /></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">Пароль</label>
|
||||
<div class="col-sm-10"><input class="form-control" type="password" name="password" data-format=".+" data-notice="Введите пароль" value="" /></div>
|
||||
</div>
|
||||
<input type="submit" class="btn btn-danger pull-right" name="register" value="Зарегистрироваться">
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponse">
|
||||
</form>
|
||||
</div>
|
||||
29
design/atomic/html/search.tpl
Normal file
29
design/atomic/html/search.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Поиск по сайту</h1>
|
||||
|
||||
<form action="/search/" style="padding:10px 0px;" class="hidden-xs" method="get">
|
||||
<div class="input-group top-serch">
|
||||
<input type="text" class="form-control input-sm input_search" name="keyword" value="{$smarty.get.keyword}" placeholder="" autocomplete="off">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-danger btn-sm" type="submit"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{$no_results}
|
||||
|
||||
|
||||
{foreach $items as $item}
|
||||
|
||||
{if $item->_header}
|
||||
<div class="h2">{$item->_header}</div>
|
||||
{continue}
|
||||
{/if}
|
||||
<div>
|
||||
<div>
|
||||
<a href="{$item->url}">{$item->name}</a>
|
||||
</div>
|
||||
<div>
|
||||
{$item->annotation}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
49
design/atomic/html/service.tpl
Normal file
49
design/atomic/html/service.tpl
Normal file
@@ -0,0 +1,49 @@
|
||||
<div class="service-view row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content">
|
||||
<div class="page-content" style="margin-bottom: 30px;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 service-header">
|
||||
<h1>{$page->header}</h1>
|
||||
</div>
|
||||
<div class="col-sm-12">{$page->toptext}
|
||||
<!-- место после виджета
|
||||
<h3>{$page->header}</h3>
|
||||
-->
|
||||
</div>
|
||||
{*<div class="col-sm-12">
|
||||
<img src="{$page->image|resizepage:390:113}" title="{$page->name}" title="{$page->name}" alt="{$page->name}" class="pull-left img-pull-left">
|
||||
{$page->toptext}
|
||||
|
||||
</div>*}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--Вот форма отвечающая за обратную связь на сайте если ее комент то ее не будет-->
|
||||
{include file='contact_form_inline.tpl'}
|
||||
{*include file='graphic_block_services.tpl'*}
|
||||
<div class="page-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{$page->body}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- хиты продаж -->
|
||||
{if $related_products}{include file='service_products.tpl'}{/if}
|
||||
<!-- / хиты продаж -->
|
||||
<div class="page-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{$page->bottext}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- другие услуги -->
|
||||
{include file='service_other.tpl'}
|
||||
<!-- / другие услуги -->
|
||||
{*include file='contact_form_and_social.tpl'*}
|
||||
<p>Количество просмотров: {$page->visited}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
51
design/atomic/html/service_brands.tpl
Normal file
51
design/atomic/html/service_brands.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{* блок ссылок на услугу по брендам *}
|
||||
{if $service_brands}
|
||||
<h2 class="text-center mb-5">Работаем со всем марками автомобилей</h2>
|
||||
<div class="service-brands">
|
||||
{foreach $service_brands as $brand}
|
||||
<div class="brand-card{if !$brand->url} inactive{/if}">
|
||||
<div class="brand-image">
|
||||
{if $brand->image}
|
||||
<img class="img-thumbnail img-fluid" src="/{$config->service_brands_dir}{$brand->image}" title="{$page->header} {$brand->name}" alt="{$page->header} {$brand->name}">
|
||||
{/if}
|
||||
</div>
|
||||
{if $brand->url}
|
||||
<a class="stretched-link" href="/{$services_root}{$brand->url}/" data-service="{$brand->page_id}">{$brand->name}</a>
|
||||
{else}
|
||||
{$brand->name}
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</br>
|
||||
<h2 class="text-center mb-5">Почему мы?</h2>
|
||||
|
||||
<div class="row"><center>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 items">
|
||||
<img src="/images/icon-1.png">
|
||||
<div class="name">Работаем с автомобилями любого класса</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 items">
|
||||
<img src="/images/icon-2.png">
|
||||
<div class="name">Занимаемся профессионально с 2017 года</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 items">
|
||||
<img src="/images/icon-3.png">
|
||||
<div class="name">Удобно добраться из любой точки в СПБ</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 items">
|
||||
<img src="/images/icon-4.png">
|
||||
<div class="name">Одни из самых выгодных цен в городе</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 items">
|
||||
<img src="/images/icon-5.png">
|
||||
<div class="name">Уютное пространство - комната ожидания с чашечкой кофе</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 items">
|
||||
<img src="/images/icon-6.png">
|
||||
<div class="name">Профессионально выполняем тюнинг любой сложности</div>
|
||||
</div></center>
|
||||
</div>
|
||||
</br>
|
||||
{/if}
|
||||
|
||||
10
design/atomic/html/service_filter.tpl
Normal file
10
design/atomic/html/service_filter.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="sort-order">
|
||||
Фильтрация по видам услуг
|
||||
<select id="sort-services">
|
||||
<option value="0">По умолчанию</option>
|
||||
{foreach $services as $_id=>$row}
|
||||
<option value="{$row->url}" {if $service_filter == $row->url}selected{/if} >{$row->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
68
design/atomic/html/service_other.tpl
Normal file
68
design/atomic/html/service_other.tpl
Normal file
@@ -0,0 +1,68 @@
|
||||
{* Услуга по брендам *}
|
||||
{include file="service_brands.tpl"}
|
||||
|
||||
{if $related_articles}
|
||||
<div class="clearfix">
|
||||
<div class="infoblock other-services row" {if $page->works_url && $page->works_url_text}style="margin-bottom:0"{/if}>
|
||||
<div class="col-sm-12">
|
||||
<div class="h3">Примеры работ</div>
|
||||
</div>
|
||||
{foreach from=$related_articles item=related_page}
|
||||
<div class="col-md-3 col-sm-6 col-xs-12" style="min-height:242px;">
|
||||
<div class="oth-image"><a target="_blank" href="/{$config->worksUrl}/{$related_page->url}/">{if $related_page->image}<img src="{$related_page->image|resizepage:242:198}" title="{$page->name}" alt="{$page->name}" class="thumbnail w">{else}<img src="/images/empty.jpg" class="thumbnail w">{/if}</a></div>
|
||||
<div class="oth-title"><a target="_blank" href="/{$config->worksUrl}/{$related_page->url}/">{$related_page->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{if $page->works_url && $page->works_url_text}
|
||||
<div data-style="text-align:right;margin-bottom:30px;" class="service-link">
|
||||
<a href="{$page->works_url}" target="_blank">{$page->works_url_text}</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $related_pages}
|
||||
<div class="clearfix">
|
||||
<div class="infoblock other-services row" style="margin-bottom: -20px">
|
||||
<div class="col-sm-12">
|
||||
<div class="h3">Другие услуги</div>
|
||||
</div>
|
||||
{foreach from=$related_pages item=related_page}
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="oth-image"><a target="_blank" href="{$related_page->parentUrl}{$related_page->url}/">
|
||||
{if $related_page->image}<img src="{$related_page->image|resizepage:242:198:0:1}" title="{$page->name}" alt="{$page->name}" class="thumbnail w">
|
||||
{else}<img src="/images/zag2.jpg" class="thumbnail w" alt="">
|
||||
{/if}
|
||||
</a></div>
|
||||
<div class="oth-title"><a target="_blank" href="{$related_page->parentUrl}{$related_page->url}/">{$related_page->name}</a></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="clearfix service-recomended">
|
||||
<div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,viber,whatsapp,telegram"></div>
|
||||
<div class="h3">Рекомендуемые товары</div>
|
||||
<div class="related_products hits">
|
||||
{foreach from=$related_products item=related_product}
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="hit-image">
|
||||
<a rel="nofollow" target="_blank" href="/products/{$related_product->url}/">
|
||||
{if $related_product->image}
|
||||
<img class="thumbnail w" alt="{$related_product->name|escape}" src="{$related_product->image->filename|resizeProduct:240:180:1}" />
|
||||
{else}<img src="/images/empty.jpg" class="thumbnail w" alt="">{/if}</a>
|
||||
</div>
|
||||
<div class="hit-title"><a rel="nofollow" target="_blank" href="/products/{$related_product->url}/">{$related_product->name}</a></div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 hit-price"><small>от</small> {round($related_product->variant->price)} <small>руб.</small></div>
|
||||
{*<div class="col-xs-6 hit-button"><a rel="nofollow" target="_blank" class="btn btn-danger" href="/products/{$related_product->url}/">Побробнее</a></div>*}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
0
design/atomic/html/service_products.tpl
Normal file
0
design/atomic/html/service_products.tpl
Normal file
59
design/atomic/html/services.tpl
Normal file
59
design/atomic/html/services.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
{* meta тэги *}
|
||||
{if $page->meta_title}
|
||||
{$meta_title=$page->meta_title|escape scope=parent}
|
||||
{else}
|
||||
{$meta_title="`$page->name|escape` в Санкт-Петербурге | Тюнинг центр" scope=parent}
|
||||
{/if}
|
||||
{if $page->meta_description}
|
||||
{$meta_description=$page->meta_description scope=parent}
|
||||
{else}
|
||||
{$meta_description="`$page->name|escape` авто в Санкт-Петербурге | Тюнинг центр Atomic Garage - установка и тюнинг линз, фар, ПТФ, ДХО, дополнительного оборудования." scope=parent}
|
||||
{/if}
|
||||
{if $page->meta_keywords}
|
||||
{$meta_keywords=$page->meta_keywords|escape scope=parent}
|
||||
{else}
|
||||
{$meta_keywords="`$page->name|lower|escape`, автомобиль, авто, санкт-петербург, установка, тюнинг центр, цена, линзы, оптика, фары, фонари, птф" scope=parent}
|
||||
{/if}
|
||||
|
||||
{assign var=is_mobile value=($detect->isMobile() && !$detect->isTablet())}
|
||||
|
||||
{* Breadcrumbs *}
|
||||
<ul class="breadcrumb">
|
||||
{foreach from=$breadcrumbs key=myId item=crumb name=foo}
|
||||
<li>{if not $smarty.foreach.foo.last}
|
||||
<a href="/{$crumb->url}/">{$crumb->name|escape}</a>
|
||||
{else}{$crumb->name|escape}{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{* содержимое различных страниц услуг *}
|
||||
<div class="services-view row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content">
|
||||
{if $is_main_page}
|
||||
{* Главная страница услуг *}
|
||||
{include file='services_main.tpl'}
|
||||
{elseif $sub_pages}
|
||||
{* Страница услуг с детьми (подуслугами) *}
|
||||
{include file='services_category.tpl'}
|
||||
{else}
|
||||
{* Страница услуги без детей *}
|
||||
{include file='services_page.tpl'}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{if !$is_mobile}{literal}{/literal}{/if}
|
||||
<script>
|
||||
$('li.active').parents('li').addClass('active');
|
||||
console.log(document.location);
|
||||
{if !$is_main_page}
|
||||
$('ul li ul').hide();
|
||||
{/if}
|
||||
$(function () {
|
||||
$('#right-cat-btn').show();
|
||||
})
|
||||
</script>
|
||||
41
design/atomic/html/services_category.tpl
Normal file
41
design/atomic/html/services_category.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{include file='advantage.tpl'}
|
||||
<!-- хиты продаж -->
|
||||
{if $related_products}{include file='service_products.tpl'}{/if}
|
||||
<!-- / хиты продаж -->
|
||||
{*include file='graphic_block_services.tpl'*}
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
{if !$detect->isMobile()}
|
||||
{include file='services_menu.tpl'}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<h1>{$page->header}</h1>
|
||||
{$page->toptext}
|
||||
<div class="row">
|
||||
{foreach $sub_pages as $s}
|
||||
{if !$s->visible}{continue}{/if}
|
||||
<div class="service-unit col-sm-4">
|
||||
<div class="service-box">
|
||||
<a href="/tuning-centr/{$s->url}/" class="tumb">
|
||||
{if $s->image}
|
||||
<img src="{$s->image|resizepage:262:230:0:1}"
|
||||
title="{$s->name|escape}" alt="{$s->name|escape}">
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" title="{$s->name|escape}"
|
||||
alt="{$s->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
<a class="service-name"
|
||||
href="/tuning-centr/{$s->url}/">{$s->name|escape}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<!-- другие услуги -->
|
||||
{include file='service_other.tpl'}
|
||||
{$page->bottext}
|
||||
<!-- / другие услуги -->
|
||||
{*include file='contact_form_and_social.tpl'*}
|
||||
</div>
|
||||
</div>
|
||||
106
design/atomic/html/services_content.tpl
Normal file
106
design/atomic/html/services_content.tpl
Normal file
@@ -0,0 +1,106 @@
|
||||
<ul class="breadcrumb">
|
||||
{foreach from=$breadcrumbs key=myId item=crumb name=foo}
|
||||
<li>{if not $smarty.foreach.foo.last}
|
||||
<a href="/{$crumb->url}">{$crumb->name|escape}</a>
|
||||
{else}{$crumb->name|escape}{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{if $sub_pages}
|
||||
<div class="services-view row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content">
|
||||
{include file='advantage.tpl'}
|
||||
<!-- хиты продаж -->
|
||||
{if $related_products}{include file='service_products.tpl'}{/if}
|
||||
<!-- / хиты продаж -->
|
||||
{*include file='graphic_block_services.tpl'*}
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
{if !$detect->isMobile()}
|
||||
{include file='services_menu.tpl'}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<h1>{$page->header}</h1>
|
||||
|
||||
{$page->toptext}
|
||||
|
||||
{if $page->id==28}
|
||||
<!-- Меню услуг -->
|
||||
{foreach $sub_pages as $top}
|
||||
<div class="title">{$top->name}</div>
|
||||
<div class="row">
|
||||
{foreach $just_service_items as $s}
|
||||
{if $s->startId != $top->id}{continue}{/if}
|
||||
<div class="service-unit col-sm-4">
|
||||
<div class="service-box">
|
||||
<a href="/tuning-centr/{$s->url}/" class="tumb">
|
||||
{if $s->image}
|
||||
<img src="{$s->image|resizepage:262:230:0:1}"
|
||||
title="{$s->name|escape}" alt="{$s->name|escape}">
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" title="{$s->name|escape}"
|
||||
alt="{$s->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
<a class="service-name"
|
||||
href="/tuning-centr/{$s->url}/">{$s->name|escape}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="service-link"><a href="/tuning-centr/{$top->url}/">все услуги раздела
|
||||
"{$top->name}"</a></div>
|
||||
{/foreach}
|
||||
<!-- Меню услуг (The End) -->
|
||||
{else}
|
||||
<div class="row">
|
||||
{foreach $sub_pages as $s}
|
||||
{if !$s->visible}{continue}{/if}
|
||||
<div class="service-unit col-sm-4">
|
||||
<div class="service-box">
|
||||
<a href="/tuning-centr/{$s->url}/" class="tumb">
|
||||
{if $s->image}
|
||||
<img src="{$s->image|resizepage:262:230:0:1}"
|
||||
title="{$s->name|escape}" alt="{$s->name|escape}">
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" title="{$s->name|escape}"
|
||||
alt="{$s->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
<a class="service-name"
|
||||
href="/tuning-centr/{$s->url}/">{$s->name|escape}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- другие услуги -->
|
||||
{include file='service_other.tpl'}
|
||||
{$page->bottext}
|
||||
<!-- / другие услуги -->
|
||||
{*include file='contact_form_and_social.tpl'*}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="services-view row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
{if !$detect->isMobile()}{include file='services_menu.tpl'}{/if}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
{include file='service.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
32
design/atomic/html/services_main.tpl
Normal file
32
design/atomic/html/services_main.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{include file='advantage.tpl'}
|
||||
<div class="col-sm-3">
|
||||
{if !$detect->isMobile()}{include file='services_menu.tpl'}{/if}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<!-- Список услуг -->
|
||||
{foreach $home_services as $top}
|
||||
<div class="title">{$top->name|escape}</div>
|
||||
<div class="row">
|
||||
{foreach $top->children as $s}
|
||||
<div class="service-unit col-sm-4">
|
||||
<div class="service-box">
|
||||
<a href="/{$services_root}{$s->url}/" class="tumb">
|
||||
{if $s->image}
|
||||
<img src="{$s->image|resizepage:262:230:0:1}"
|
||||
title="{$s->name|escape}" alt="{$s->name|escape}">
|
||||
{else}
|
||||
<img src="/files/page/default.jpg" title="{$s->name|escape}"
|
||||
alt="{$s->name|escape}">
|
||||
{/if}
|
||||
</a>
|
||||
<a class="service-name" href="/{$services_root}{$s->url}/">{$s->name|escape}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="service-link"><a href="/{$services_root}{$top->url}/">все услуги раздела "{$top->name}"</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
<!-- Список услуг (The End) -->
|
||||
</div>
|
||||
|
||||
36
design/atomic/html/services_menu.tpl
Normal file
36
design/atomic/html/services_menu.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
{* Меню услуг *}
|
||||
{if $services_tree}
|
||||
{function name=services_tree level=0}
|
||||
{if $services}
|
||||
<ul data-t="y">
|
||||
{foreach $services as $s}
|
||||
{if !$s->visible}{continue}{/if}
|
||||
<li{if $page->id==$s->id or in_array($page->id,$s->descendants)} class="active"{/if}>
|
||||
<a href="/{$services_root}{$s->url}/" data-service="{$s->id}">{$s->name|escape}</a>
|
||||
{if $s->children or in_array($page->id,$s->descendants)}
|
||||
{services_tree services=$s->children level=$level+1}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
|
||||
{if $detect->isMobile()}
|
||||
<div class="panel panel-danger collapse-panel services-mobile-menu">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="/{$services_root}{$root_url}/" class="m_link">Услуги тюнинг центра</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
{services_tree services=$services_tree}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="inner menu-service">
|
||||
<div class="header"><a href="/{$services_root}">Услуги тюнинг центра</a></div>
|
||||
{services_tree services=$services_tree}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
79
design/atomic/html/services_page.tpl
Normal file
79
design/atomic/html/services_page.tpl
Normal file
@@ -0,0 +1,79 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
{if !$detect->isMobile()}{include file='services_menu.tpl'}{/if}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<div class="page-content" style="margin-bottom: 30px;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 service-header">
|
||||
<h1>{$page->header}</h1>
|
||||
</div>
|
||||
<div class="col-sm-12">{$page->toptext}
|
||||
<!-- место после виджета
|
||||
<h3>{$page->header}</h3> -->
|
||||
</div>
|
||||
{*<div class="col-sm-12">
|
||||
<img src="{$page->image|resizepage:390:113}" title="{$page->name}" title="{$page->name}" alt="{$page->name}" class="pull-left img-pull-left">
|
||||
{$page->toptext}
|
||||
|
||||
</div>*}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--Вот форма отвечающая за обратную связь на сайте если ее комент то ее не будет-->
|
||||
{include file='contact_form_inline.tpl'}
|
||||
|
||||
</br>
|
||||
|
||||
{include file='graphic_block_services.tpl'}
|
||||
|
||||
<div class="page-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{$page->body}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- хиты продаж -->
|
||||
{if $related_products}{include file='service_products.tpl'}{/if}
|
||||
<!-- / хиты продаж -->
|
||||
|
||||
<div class="page-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{$page->bottext}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- h3>Наши скидки</h3>
|
||||
|
||||
<table style="text-align: center" cellspacing="1" cellpadding="1" border="1"
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>Многодетным, студентам</td>
|
||||
<td>10%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Пенсионерам, инвалидам</td>
|
||||
<td>15%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table -->
|
||||
<!-- другие услуги -->
|
||||
{include file='service_other.tpl'}
|
||||
<!-- / другие услуги -->
|
||||
|
||||
|
||||
|
||||
|
||||
{*include file='contact_form_and_social.tpl'*}
|
||||
<p>Количество просмотров: {$page->visited}</p>
|
||||
</div>
|
||||
</div>
|
||||
3
design/atomic/html/sidebar_catalog.tpl
Normal file
3
design/atomic/html/sidebar_catalog.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{if $detect->isMobile()}
|
||||
{include file='services_menu.tpl'}
|
||||
{/if}
|
||||
36
design/atomic/html/sidebar_catalog_back.tpl
Normal file
36
design/atomic/html/sidebar_catalog_back.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
<div class="panel panel-danger collapse-panel">
|
||||
<div class="panel-heading">
|
||||
<div class="panel-title"><a href="/catalog/" class="m_link">Интернет магазин</a></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="v-menu">
|
||||
{* Рекурсивная функция вывода дерева категорий *}
|
||||
{function name=categories_tree_index level=0}
|
||||
{if $categories && $level < 2}
|
||||
<ul>
|
||||
{foreach $categories as $c}
|
||||
{* Показываем только видимые категории *}
|
||||
{if $c->visible && $c->menu && $c->parent_id != 488}
|
||||
<li{if $category->id == $c->id} class="active"{/if}>
|
||||
<a href="/catalog/{$c->url}/" data-category="{$c->id}">
|
||||
{if $c->menu_name}{$c->menu_name}{else}{$c->name}{/if}
|
||||
</a>
|
||||
{if in_array($category->id, $c->children)}
|
||||
{categories_tree_index categories=$c->subcategories level=$level+1}
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $detect->isMobile()}<li><a href="http://atomicgarage.1gb.ru/brands/">Товары по маркам</a></li>{/if}
|
||||
<li><a href="/brands/">Товары по брендам</a></li>
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
{categories_tree_index categories=$categories}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $detect->isMobile()}
|
||||
{include file='services_menu.tpl'}
|
||||
{/if}
|
||||
810
design/atomic/html/styles.css
Normal file
810
design/atomic/html/styles.css
Normal file
@@ -0,0 +1,810 @@
|
||||
/* /*@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,cyrillic);
|
||||
@import url(http://fonts.googleapis.com/css?family=Russo+One&subset=latin,cyrillic);*/
|
||||
/**/
|
||||
@font-face {
|
||||
font-family: HelveticaBlack;
|
||||
src: url("font/HelveticaBlack.otf") format("opentype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: HelveticaNormal;
|
||||
src: url("font/HelveticaNormal.otf") format("opentype");
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
background: #101115 !important;
|
||||
}
|
||||
|
||||
.flexslider .slides li { background-size: contain !important; }
|
||||
.advantage-name { text-align:center; }
|
||||
.advantage svg {color:#5fee1f; width:100px;}
|
||||
.advantage {margin-top:30px;}
|
||||
.advantage div {text-align:center;}
|
||||
.map { border:10px solid rgba(250,250,240,.3); overflow: hidden; display: block; margin-top: 80px;}
|
||||
.cart-btn { border:1px solid #fff; padding: 2px 6px;font-family: 'HelveticaNormal'; color:#fff; background:transparent;}
|
||||
.cart-btn::before { content:"\f217"; color:#5fee1f; font-size:16px; margin-right:10px; font-family:FontAwesome; }
|
||||
.cart-btn:hover {border:1px solid #5fee1f; color:#5fee1f;}
|
||||
|
||||
.home-output .product {background: #1c1e23;overflow: hidden; padding-bottom:4px; margin-top:5px}
|
||||
.blog-unit {background: #1c1e23;overflow: hidden; padding-bottom:4px; border-radius:5px; margin-bottom:20px;}
|
||||
.blog-unit span.name {display:block; text-align:center; color:#5fee1f; padding:20px 0;}
|
||||
.blog-unit a:hover {text-decoration:none;}
|
||||
.blog-unit a img { width:100%;}
|
||||
.blog-unit a span.img {height:235px; overflow:hidden; display:block;}
|
||||
.blog-annotation { color:#b8bfd3; padding:0 20px; text-align:center; text-transform:uppercase; font-size:12px;}
|
||||
|
||||
.top-block { background: rgba(95,238,31,.1); border-radius: 3px; padding:5px; margin-bottom: 20px; margin-top: 20px; }
|
||||
.top-block ul {list-style: none; padding: 0; margin: 0; margin-left:60px; }
|
||||
.top-block a, .top-block .cart-links a {color:rgba(250,250,250,0.6) !important; text-decoration: none; text-transform: uppercase; font-size:12px;}
|
||||
.top-block li{ padding: 0 20px; display: inline; }
|
||||
.top-block .cart-links {text-align: center; color:rgba(250,250,250,0.3)}
|
||||
.top-block .cart-links a {padding:0 10px;}
|
||||
.container-fluid {
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
.second-line {margin-top:30px;}
|
||||
.top-contacts {text-transform: uppercase; color: #fff; line-height: 30px; font-size:12px; letter-spacing: 1px; }
|
||||
.top-contacts .phone { letter-spacing: 2px; font-size:18px;}
|
||||
.top-contacts .phone a:hover {text-decoration: none;}
|
||||
.top-contacts .email a {text-decoration: none; color:#fff; font-size:12px; letter-spacing: 1px; }
|
||||
.top-contacts>div {margin-left: -16px; }
|
||||
.ai-callback {position: relative;}
|
||||
header .callme_viewform {
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #fff;
|
||||
padding: 8px 16px;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
float: right;
|
||||
margin-top: 80px;
|
||||
}
|
||||
.slides li {border-radius: 5px; }
|
||||
.slides li .big-font {display:block; font-size:32px; font-style: italic; font-family:'HelveticaBlack'; margin: 10px 0;}
|
||||
.slides li p {color:#ccc;}
|
||||
.ai-more {
|
||||
background: #5fee1f;
|
||||
color:#000 !important;
|
||||
border-radius: 10px;
|
||||
padding: 8px 32px;
|
||||
filter: none;
|
||||
display: inline-block;
|
||||
margin-top:10px;
|
||||
text-align:center;
|
||||
text-decoration:none;
|
||||
font-size:9px;
|
||||
letter-spacing: 2px;
|
||||
text-transform:uppercase;
|
||||
|
||||
}
|
||||
.second-line>div {border-left:1px solid rgba(250,250,250,.4); text-align: center;}
|
||||
.top-serch input.input-search {background: transparent; border: none; color: rgba(250,250,250,.5); }
|
||||
.top-serch .glyphicon-search {color:#5fee1f;font-size:18px;}
|
||||
.btn-sm { border: none; }
|
||||
|
||||
.input-sm {
|
||||
height: 30px;
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
border-radius: 3px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 16px;
|
||||
color:#fff;
|
||||
}
|
||||
.bottom-nav {list-style:none; margin:0; padding:0;}
|
||||
.bottom-nav a {text-decoration: none; text-transform: uppercase; font-size:11px; color: #ccc !important; line-height: 24px; cursor: pointer;}
|
||||
.bottom-nav a:hover { color: #5fee1f !important; }
|
||||
|
||||
.social {list-style: none; padding: 0; margin:0;}
|
||||
.social li {padding: 9px 0 9px 16px; display: inline-block; }
|
||||
footer .social li {padding:9px 16px 9px 0;}
|
||||
footer .social li img{max-height: 30px; }
|
||||
.ai-more:hover {background: #000; text-decoration:none; color:#fff !important;}
|
||||
.navbar-nav>li>a {
|
||||
border-right:none;
|
||||
border-left: none;
|
||||
}
|
||||
.ai-padding {padding: 40px 0;}
|
||||
.navbar-nav {
|
||||
margin-bottom: 10px !important;
|
||||
margin-top: 40px !important;
|
||||
}
|
||||
#cart_informer {position: relative;}
|
||||
#cart_informer:before {color:#5fee1f; font-size:22px; content:"\f218"; font-family: FontAwesome; margin-left:-45px; position: absolute; display: inline; left:0; margin-top: 4px;}
|
||||
|
||||
.navbar-nav > li:last-child > a {
|
||||
padding-left: 27px !important;
|
||||
padding-right: 28px !important;
|
||||
}
|
||||
.navbar-nav > li {
|
||||
width: 16.666%;
|
||||
}
|
||||
.btn-danger, .panel-danger .panel-heading {
|
||||
background: transparent;
|
||||
}
|
||||
.navbar-nav {
|
||||
text-transform: uppercase;
|
||||
margin: 0px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
|
||||
background-color: #58b030;
|
||||
}
|
||||
.navbar-default .navbar-toggle {
|
||||
border-color: #58b030;
|
||||
}
|
||||
.navbar-default .navbar-nav>.active>a,
|
||||
.navbar-default .navbar-nav>.active>a:hover,
|
||||
.navbar-default .navbar-nav>.active>a:focus,
|
||||
.navbar-nav>li>a:hover,
|
||||
.navbar-default .navbar-nav>li>a:hover,
|
||||
.navbar-default .navbar-nav>li>a:focus{
|
||||
color: #5fee1f !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
html, body { height: 100%; font-family: 'HelveticaNormal'; font-weight: 400; background: #191921 url(../images/bg.jpg) repeat-x center top; }
|
||||
/*body { background: #141618 url(../images/bg-page.png) no-repeat center top; }*/
|
||||
.navbar {
|
||||
background-image:none;
|
||||
filter: none;
|
||||
border: none;
|
||||
text-shadow: none;
|
||||
}
|
||||
.navbar-default {
|
||||
background-color: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
|
||||
border-color:transparent;
|
||||
}
|
||||
.panel {
|
||||
border:none;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
background: #101115;
|
||||
padding:0;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.panel .panel-heading { color: #9ace82 !important; text-transform: uppercase; padding:25px 18px; font-size:16px;}
|
||||
.panel .panel-heading a {color: #9ace82 !important;}
|
||||
|
||||
.panel .v-menu ul li { padding:12px 10px; border-bottom:1px solid #ccc; }
|
||||
.panel .v-menu ul li a {color:#ccc; font-size:14px;}
|
||||
.panel .v-menu ul li a:hover {color:#5fee1f;}
|
||||
.panel .v-menu ul li:nth-child(2n) { background: #1c1e23; }
|
||||
|
||||
.home-output .product {margin-bottom: 15px;}
|
||||
.home-output .product-name {color:#5fee1f; display: block; text-align: center; text-decoration: none; margin:10px 0;}
|
||||
.home-output .product-price { font-size: 18px; color: #fff; line-height: 38px; white-space: nowrap; }
|
||||
.home-output .product-image { text-align: center; }
|
||||
.home-output .product-image img { max-width: 100%; }
|
||||
.home-output .img-thumbnail {padding: 0;
|
||||
line-height: 1.42857143;
|
||||
background-color: #1c1e22;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
height: auto;}
|
||||
|
||||
|
||||
a { cursor:pointer;}
|
||||
|
||||
.navbar-nav { text-transform: uppercase; margin: 0px; }
|
||||
.navbar-nav > li > a { padding-left: 10px; padding-right: 10px; text-decoration: none; color: #fff !important; }
|
||||
.navbar-collapse {padding-left: 0px; padding-right: 0px;}
|
||||
.navbar-right input { opacity: 0.65; border: 1px solid #333333; }
|
||||
.navbar-right button, .navbar-right button:hover { border-top: 1px solid #b5000a; border-bottom: 1px solid #b5000a; border-right: 1px solid #b5000a; }
|
||||
.wrapper { min-height: 100%; height: auto !important; height: 100%; margin-bottom: -290px; }
|
||||
|
||||
.menu-service { background: #101115; padding:0;}
|
||||
.menu-service .header { color: #9ace82 !important; text-transform: uppercase; padding:25px 18px; font-size:16px;}
|
||||
.menu-service ul {list-style: none; padding: 0; margin: 0;}
|
||||
.menu-service ul li { padding: 9px 18px; border-top: 1px solid #ccc; }
|
||||
.menu-service ul li a { color: #ccc; text-decoration: none; font-size: 16px; }
|
||||
.menu-service ul li a:hover { color: #5fee1f; }
|
||||
|
||||
.panel-danger {
|
||||
border-color:none;
|
||||
}
|
||||
|
||||
.service-unit {height:300px;}
|
||||
.service-unit a.tumb {
|
||||
border-radius: 5px;
|
||||
min-height:230px;
|
||||
position:relative;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
background:#000;
|
||||
|
||||
}
|
||||
.service-unit a.tumb:hover {background:#5fee1f;}
|
||||
.service-unit a.tumb:hover img { opacity:.3; }
|
||||
.service-unit a.tumb:hover::before {z-index:5; position:absolute; content:"подробнее >"; font-size:14px; color:#fff;text-transform:uppercase; display:block; top:70%; width:100%; text-align:center; }
|
||||
.service-name {display:block; padding:10px; text-align:center; text-decoration:none; font-size:18px; }
|
||||
.service-name:hover {color:#5fee1f;}
|
||||
.service-box {border-radius:5px; overflow:hidden; background:#1c1e23; height:300px;}
|
||||
.service-link a {color:#3d4047 !important; letter-spacing: 1px; font-size:18px;}
|
||||
.service-link {text-align:center; padding:20px 0;}
|
||||
.service-link a::after { content:"\f105"; color:#3d4047 !important; font-family:FontAwesome; font-size:22px; padding-left:5px; text-decoration:none;}
|
||||
.service-link a:hover { text-decoration:none; color:#5fee1f !important; }
|
||||
header { box-sizing: border-box; }
|
||||
#top-cart-informer.notempty .icon { display:none !important; }
|
||||
header .cart.notempty { }
|
||||
header .cart.notempty .cart-info table td { color: #fff; }
|
||||
header .cart .cart-enter { position: absolute; width: 100%; box-sizing: border-box; bottom: 0px; left: 0px; height: 75px; text-indent: -9999px; }
|
||||
header .cart .cart-links { text-align: right; margin-right: 10px; }
|
||||
header .cart .cart-info { padding: 7px 0 7px 45px; }
|
||||
header .cart .cart-info .icon {display: none;}
|
||||
header .cart .cart-info table { background: none !important; background-color: rgba(0,0,0,0) !important; }
|
||||
header .cart .cart-info table td {text-align: left; box-sizing: border-box; color: rgb(136, 136, 136); font-size: 100%; height: 20px; line-height: 20px; }
|
||||
header .top-text1 { font-size: 125%; font-family: 'HelveticaNormal'; font-weight: 400; }
|
||||
header .top-text2 { color: #d0cfcf; font-size: 90%; margin-top: 7px; line-height: 1.5em; }
|
||||
header .top-text3 { color: #fff; font-size: 150%; margin-top: 7px; text-align: center; }
|
||||
header .city { font-size: 80%; color: #fff; line-height: 1em; padding: 0px 0px 2px 0px; }
|
||||
header .link { font-size: 90%; }
|
||||
header .email { font-size: 90%; }
|
||||
header .logo img {max-width: 100%; height: auto;}
|
||||
|
||||
footer, .push { clear: both; }
|
||||
footer { background-color: #2e3338; font-size: 100%; padding:40px 0;}
|
||||
footer .container { padding-top: 25px; }
|
||||
footer .title { font-size: 125%; color: #c9ffff; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); margin-bottom: 2px; }
|
||||
footer .copyright { font-size: 90%; }
|
||||
footer .copyright span { color: #95f36a; }
|
||||
footer .eto-design { font-size: 80%; }
|
||||
footer a { color: #fff !important; }
|
||||
footer a:hover { color: #aaa !important; }
|
||||
footer img.bottom-logo {width: 200px; height: auto!important;}
|
||||
footer .bottom-contacts { text-transform: uppercase; line-height: 20px; color: #656569; font-size: 12px; }
|
||||
footer .bottom-contacts a { text-decoration: none; color: #656569 !important; font-size:12px !important;}
|
||||
|
||||
footer .ai-copyright { border-top: 1px dashed rgba(250,250,250,.3); padding-top:30px; }
|
||||
|
||||
.ai-form {
|
||||
background: url("../images/bg-form.jpg");
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
padding: 40px 0;
|
||||
}
|
||||
.ai-form .title {color:#9ace82; font-size:26px; text-transform: uppercase; margin-bottom:40px;}
|
||||
.ai-form label { display: none; }
|
||||
.ai-form input, .ai-form textarea {background: transparent; border:1px solid rgba(250,250,250,.3); padding: 12px; color:#fff; margin: 4px; font-size:16px; height: 50px}
|
||||
.ai-form textarea { height: 150px; }
|
||||
.ai-form .btn { background: #58b030; border: none; padding: 12px 30px; margin: 0; }
|
||||
|
||||
.chs {text-transform: uppercase; display: block; text-align: center; color: #2716cb !important; text-shadow: 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff !important; font-style: italic; }
|
||||
.v-menu ul { list-style: none; margin: 0px; margin-top: 7px; padding: 0px; padding-left: 15px; border-top: 1px solid rgba(0,0,0,0.3); }
|
||||
.v-menu > ul { margin-top: 0px; padding-left: 0px; border-top: none; }
|
||||
.v-menu li { padding: 7px 0px; border-bottom: 1px solid rgba(0,0,0,0.3); }
|
||||
.v-menu li:last-child { border-bottom: none; }
|
||||
.v-menu li a { color: #fff; text-decoration: none; display: block; line-height: 1.15em; }
|
||||
.v-menu li a:hover, .v-menu li.active > a { color: #5fee1f !important; }
|
||||
|
||||
.panel .v-menu ul li ul li {
|
||||
padding: 3px 0;
|
||||
border-bottom:1px solid rgba(250,250,250,0.1);
|
||||
font-size:12px !important;
|
||||
|
||||
}
|
||||
.panel .v-menu ul li ul li a{
|
||||
font-size:11px !important;
|
||||
|
||||
}
|
||||
a.btn { text-decoration: none; }
|
||||
.button-set a.btn-block { text-transform: uppercase; font-size: 100%; }
|
||||
.button-set { width: 100%; margin: auto; margin-bottom: 25px; }
|
||||
.button-set .btn-block { position: relative; }
|
||||
.button-set .btn-sidebar { padding-right: 48px; padding-left: 12px; box-sizing: border-box; }
|
||||
.button-set .b1, .button-set .b2, .button-set .b3 { display: inline-block; width: 72px; height: 72px; position: absolute; top: -12px; right: -12px; }
|
||||
.button-set .b1 { background: url(../images/b1.png) no-repeat; }
|
||||
.button-set .b2 { background: url(../images/b2.png) no-repeat; }
|
||||
.button-set .b3 { background: url(../images/b3.png) no-repeat; }
|
||||
.flexslider { box-sizing: border-box; width: 100%; height: 237px; position: relative; overflow: hidden; }
|
||||
.flexslider .slides { position: relative; margin: 0; padding: 0; }
|
||||
.flexslider .slides > li { display: block; float: left; padding: 20px 300px 20px 30px; box-sizing: border-box; width: 100%; height: 237px; }
|
||||
.flexslider .flex-control-nav { display: block; position: absolute; z-index: 99; bottom: 2px; right: 28px; }
|
||||
.flexslider .flex-direction-nav { display: none; }
|
||||
.flexslider .flex-control-nav > li > a,
|
||||
.flexslider .flex-control-nav > li > span {cursor: pointer;}
|
||||
.flexslider .flex-control-nav > li > a.flex-active,
|
||||
.flexslider .flex-control-nav > li > span.flex-active { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -webkit-gradient(linear, left top, left bottom, from(#020202), color-stop(40%, #101112), to(#191b1d)); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0);-webkit-filter: none; filter: none; }
|
||||
.b { display: block; }
|
||||
.tdn { text-decoration: none; }
|
||||
.drive2 { background: #ff0033; width: 100%; border: 0px; padding: 0px; margin: 0px; border-collapse: collapse; table-layout: auto; border-spacing: 0px; }
|
||||
.drive2 a { display: block; width: 100%; box-sizing: border-box; text-align: center; }
|
||||
.content { margin-bottom: 25px; }
|
||||
|
||||
.content .title, h1 {
|
||||
background: #101115;
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
line-height: 1.1;
|
||||
color: #9ace82;
|
||||
font-size: 18px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
padding: 16px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.content a { color: #5fee1f; }
|
||||
|
||||
.well { display: block; overflow: hidden; color: #c8c8c8; }
|
||||
.products { overflow: hidden; }
|
||||
.products .product { overflow: hidden; padding: 15px; margin: 0px; margin-bottom: 15px; }
|
||||
.products .product { background-color: #49515a; }
|
||||
.products .product:nth-child(odd) { background-color: #353a41; }
|
||||
.products .product .product-name { display: block; line-height: 1.15em; font-size: 100%; color: #fff; padding: 7px 0px; text-decoration: none !important; }
|
||||
.products .product .product-price { font-size: 145%; color: #fff; line-height: 38px; white-space: nowrap; }
|
||||
.products .product .product-price small { font-size: 60%;}
|
||||
.products .product .product-compare-price { display: block; text-decoration: line-through; color: #d0000a; font-size: 100%; }
|
||||
.products .product .product-compare-price small { font-size: 100%; }
|
||||
.products .product .product-image img { max-width: 100%; }
|
||||
.products .product .product-info { line-height: 1.15em; }
|
||||
.products .product .product-annotation { font-size: 90%; }
|
||||
.product-details { overflow: hidden; }
|
||||
.product-details .product { position: relative; }
|
||||
.product-details .product .product-name { display: block; line-height: 1.15em; font-size: 100%; color: #fff; padding: 7px 0px; text-decoration: none !important; }
|
||||
.product-details .product .product-price { font-size: 145%; color: #fff; white-space: nowrap; }
|
||||
.product-details .product .product-compare-price { display: block; text-decoration: line-through; color: #d0000a; font-size: 100%; }
|
||||
.product-details .product .product-compare-price small { font-size: 100%; }
|
||||
.product-details .product .product-image { margin-bottom: 15px; }
|
||||
.product-details .product .product-images { margin-bottom: 15px; }
|
||||
|
||||
|
||||
.product-details .product .product-images a {
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.text-left, .text-left p {text-align:left !important;}
|
||||
|
||||
.product-details .product .product-images img { margin-bottom: 3px; box-sizing: border-box; width:100%; }
|
||||
.product-details .product .product-buttons { clear: both; width: 100%; text-align: left; }
|
||||
.product-details .product .minus-plus { overflow: hidden; width: 120px; box-sizing: border-box; margin: auto; margin-bottom: 15px; display: none; }
|
||||
|
||||
|
||||
|
||||
.ask-a-question, .ask-a-zakaz {border:1px solid #fff; color:#fff; border-radius:4px; background:transparent; display:inline-block; margin:5px; padding: 3px 7px;}
|
||||
|
||||
.ask-a-question i, .ask-a-zakaz i { color:#5fee1f; }
|
||||
|
||||
.categories .category { overflow: hidden; height: auto; margin-bottom: 15px; }
|
||||
.categories .category .category-image { text-align: center; }
|
||||
.categories .category .category-image img { max-height: 160px; }
|
||||
.categories .category .category-name { display: block; text-align: center; line-height: 1.15em; font-size: 100%; color: #fff; padding: 7px 0px; text-decoration: none !important; }
|
||||
.category_anons { font-size: 12px; margin-top: 4px; text-transform: lowercase; }
|
||||
.category_anons span { color: red; font-weight: bold; font-size: 18px; }
|
||||
.articles .article { overflow: hidden; height: auto; margin-bottom: 15px; }
|
||||
.articles .article .article-image { text-align: center; }
|
||||
.articles .article .article-image img { max-height: 160px; }
|
||||
.articles .article .article-name { display: block; text-align: center; line-height: 1.15em; font-size: 100%; color: #fff; padding: 7px 0px; text-decoration: none !important; }
|
||||
.brands .brand { overflow: hidden; height: auto; margin-bottom: 15px; }
|
||||
.brands .brand .brand-image { text-align: center; }
|
||||
.brands .brand .brand-image img { max-height: 160px; }
|
||||
.brands .brand .brand-name { display: block; text-align: center; line-height: 1.15em; font-size: 100%; color: #fff; padding: 7px 0px; text-decoration: none !important; }
|
||||
.blog { overflow: hidden; }
|
||||
.blog .blog-article { overflow: hidden; margin-bottom: 7px; }
|
||||
.blog .blog-image { float: left; margin: 0px 15px 5px 0px; }
|
||||
.blog .blog-title { display: block; line-height: 1.15em; font-size: 100%; color: #fff; padding: 7px 0px; }
|
||||
.blog .blog-annotation { font-size: 90%; }
|
||||
a.w, div.w, span.w, a.w img, img.w { }
|
||||
a.w:hover, a.w:hover img { color: #aaa !important; }
|
||||
h1 { font-size: 24px; color: #fff; }
|
||||
h2 { font-size: 22px; color: #fff; }
|
||||
h3 { font-size: 20px; color: #fff; }
|
||||
h4 { font-size: 18px; color: #fff; }
|
||||
h5 { font-size: 17px; color: #fff; }
|
||||
h6 { font-size: 16px; color: #fff; }
|
||||
|
||||
.product-box h1 {text-transform:normal; font-size:22px;}
|
||||
.category-image {text-align:center; }
|
||||
.img-thumbnail {
|
||||
padding: 0px;
|
||||
line-height: 1.42857143;
|
||||
background-color: #1c1e22;
|
||||
border:none;
|
||||
border-radius: 4px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.btn-danger:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
|
||||
.cards ul { list-style:none; color:#fff; margin:20px 0; padding:0;}
|
||||
.cards ul li::before {content:"\f061"; font-family:FontAwesome; font-size:12px; margin-right:10px; color:#5fee1f;}
|
||||
|
||||
|
||||
.navbar .btn-danger {font-size: 11px;}
|
||||
table.table { border: 0px; }
|
||||
td.td { text-align: center; border: 0px; }
|
||||
td.td p, td.td span { margin: 0px; padding: 0px; }
|
||||
td.td a { display: block; line-height: 1.15em; font-size: 100%; padding: 7px 0px; }
|
||||
.category-list ul { margin: 0px; padding: 0px; list-style: none; }
|
||||
strong, b { color: #fff; font-weight: normal !important; }
|
||||
label { margin: 0px; padding: 0px; font-weight: normal; }
|
||||
.h22 { color: #fff; font-weight: normal !important; }
|
||||
.testRater { clear: both; }
|
||||
.mdh { display: none; }
|
||||
input.required { border: 1px solid rgb(255,0,0) !important; box-shadow: 0px 0px 10px rgb(255,0,0) !important; }
|
||||
form.variants { margin: 0px; padding: 0px; }
|
||||
form.variants tr.variant { height: 24px; }
|
||||
form.variants table { background: none !important; background-color: transparent !important; background-image: none !important; }
|
||||
form.variants table td { padding: 10px 0; margin: 0px; }
|
||||
#tabs { list-style: none outside none; margin: 0; overflow: hidden; padding: 0; width: 100%; }
|
||||
#tabs li { float: left; margin: 0 0.5em 0 0; }
|
||||
#tabs a { background: #22371f; border-radius: 5px 0 0; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4); float: left; padding: 0.7em 1.2em; position: relative; text-decoration: none; }
|
||||
#tabs a:hover, #tabs a:hover:after, #tabs a:focus, #tabs a:focus:after { background: #1f2229; }
|
||||
#tabs a:focus { outline: 0 none; }
|
||||
#tabs a:after { background: #22371f; border-radius: 0 5px 0 0; bottom: 0; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4); content: ""; position: absolute; right: -0.5em; top: 0; transform: skew(10deg); width: 1em; z-index: 1; }
|
||||
#tabs #current a, #tabs #current a:after { background: #1f2229; z-index: 3; }
|
||||
#tabcontent { background: #1f2229; border-radius: 0; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5); display: block; height: auto; padding: 15px; position: relative; z-index: 2; }
|
||||
.autocomplete-w1 { position: absolute; top: 0px; right: -180px; margin: 6px 0 0 6px; }
|
||||
.autocomplete { border: 1px solid #7a8288; background: #2e3338; color: #fff; cursor: default; text-align: left; overflow-x: auto; overflow-y: auto; margin: -6px 6px 6px -6px; overflow-x: hidden; }
|
||||
.autocomplete .selected { background: #7a8288; color: #fff; }
|
||||
.autocomplete div { padding: 2px 5px; white-space: nowrap; }
|
||||
.autocomplete strong { font-weight: normal; color: #3399FF; }
|
||||
.news-widget .news-date { font-size: 80%; }
|
||||
.news-widget .news-title { font-size: 100%; }
|
||||
.blog-menu { overflow: hidden; margin-bottom: 28px; }
|
||||
.panel .collapse-button { line-height: 1em; padding: 2px 12px; border: 1px solid #cccccc; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
|
||||
.panel .collapse-button .glyphicon {font-size: 16px; color: #dddddd;}
|
||||
.panel .panel-footer { text-align: center; }
|
||||
.panel .panel-footer a { color:#ffffff; }
|
||||
.panel-body.vk { margin: 0px; padding: 0px; }
|
||||
/* cart always on top */
|
||||
.always-on-top {display: block !important; position: fixed !important; z-index: 9999; left: 0; top: 0; padding: 0 !important; box-sizing: border-box; width: 100% !important; height: auto !important; padding: 2px 0px; background: rgba(46,51,56,0.9) !important; text-align: center; }
|
||||
.always-on-top .cart-info .icon {display: table-cell !important; text-align: center; vertical-align: middle; width: 48px;}
|
||||
.always-on-top .cart-info .icon .glyphicon {font-size: 24px; color: #e5000b;}
|
||||
.always-on-top .cart-info { display: inline-block !important; padding: 0 !important; margin: 0 !important; }
|
||||
.always-on-top .cart-links { display: inline-block !important; padding: 0 !important; margin: 0 !important; position: relative; top: -15px; }
|
||||
|
||||
#h_email {display: none;}
|
||||
.content img {max-width: 100%; height: auto;}
|
||||
|
||||
footer .lh {font-size: 90%; line-height: 1.1em; margin-bottom: 8px;}
|
||||
|
||||
.comment_list li{
|
||||
margin-bottom: 15px;
|
||||
list-style: none;
|
||||
padding: 10px;
|
||||
|
||||
}
|
||||
|
||||
.comment_list .comment_header {
|
||||
border-bottom: 1px solid rgba(255, 255,255, 0.1);
|
||||
margin-bottom: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.comment_list li:nth-child(even){
|
||||
background-color: #1c1e22;
|
||||
}
|
||||
|
||||
.comment_list li:nth-child(odd){
|
||||
background-color: #2B2E33;
|
||||
}
|
||||
|
||||
.social-icons {margin: 0 0 10px 0; display: table; width: 100%; border-radius: 4px;}
|
||||
.social-icons li {display: table-cell; border: 1px solid #141618; padding: 0; width: 33.33%; text-align: center;}
|
||||
.social-icons a {display: block; padding: 6px 8px;}
|
||||
.social-icons a .fa {font-size: 36px; color: rgb(220,220,220); text-shadow: 1px 1px 1px rgba(0,0,0,0.5);}
|
||||
.social-icons li:hover a .fa {color: rgb(255,255,255);}
|
||||
.social-icons li:first-child {
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
-moz-border-radius-topleft: 4px;
|
||||
-moz-border-radius-bottomleft: 4px;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;}
|
||||
.social-icons li:last-child {
|
||||
-webkit-border-top-right-radius: 4px;
|
||||
-webkit-border-bottom-right-radius: 4px;
|
||||
-moz-border-radius-topright: 4px;
|
||||
-moz-border-radius-bottomright: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;}
|
||||
|
||||
|
||||
.social-lg {background: url(/images/socsprite_lg.png); width: 48px; height: 48px; overflow: hidden; display: inline-block;}
|
||||
.social-lg.social-instagram {background-position: 0 0;}
|
||||
.social-lg.social-youtube {background-position: -48px 0;}
|
||||
.social-lg.social-vk {background-position: -96px 0;}
|
||||
|
||||
.social-md {background: url(/images/socsprite_md.png); width: 36px; height: 36px; overflow: hidden; display: inline-block;}
|
||||
.social-md.social-instagram {background-position: 0 0;}
|
||||
.social-md.social-youtube {background-position: -36px 0;}
|
||||
.social-md.social-vk {background-position: -72px 0;}
|
||||
|
||||
.social-sm {background: url(/images/socsprite_sm.png); width: 32px; height: 32px; overflow: hidden; display: inline-block;}
|
||||
.social-sm.social-instagram {background-position: 0 0;}
|
||||
.social-sm.social-youtube {background-position: -32px 0;}
|
||||
.social-sm.social-vk {background-position: -64px 0;}
|
||||
|
||||
.social-xs {background: url(/images/socsprite_xs.png); width: 24px; height: 24px; overflow: hidden; display: inline-block;}
|
||||
.social-xs.social-instagram {background-position: 0 0;}
|
||||
.social-xs.social-youtube {background-position: -24px 0;}
|
||||
.social-xs.social-vk {background-position: -48px 0;}
|
||||
|
||||
|
||||
|
||||
.fileinput-btn {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.fileinput-btn input {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
-ms-filter: 'alpha(opacity=0)';
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Fixes for IE < 8 */
|
||||
@media screen\9 {
|
||||
.fileinput-btn input {
|
||||
filter: alpha(opacity=0);
|
||||
font-size: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.f-preview {
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.f-preview>div {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
.feedback_not {border: 1px solid red;}
|
||||
|
||||
.breadcrumb a {color: #fff; text-decoration: none;}
|
||||
|
||||
.content .h1, .content .h2, .content .h3, .content .h4, .content .h5, .content .h6 {color: #fff !important;}
|
||||
.services-view p, .service-view p, .services-view li, .service-view li {font-size: 16px;}
|
||||
.services .service .service-title {line-height: 1.3em; height: 2.6em; overflow: hidden;}
|
||||
.services .service .service-title a {display: block;}
|
||||
.services .service .service-adt {line-height: 1em; height: 3em; overflow: hidden;}
|
||||
.services .service .service-button {margin-top: 10px; padding: 0 50px;}
|
||||
.services .service .service-image {text-align: center; line-height: 174px; height: 174px; overflow: hidden;}
|
||||
.service-icons > div {text-align: center;}
|
||||
/* sprite */
|
||||
.sprite {display: inline-block; background: url(/design/carheart/images/service-sprite.png); width: 100px; height: 80px; overflow: hidden;}
|
||||
.sprite.i1 {background-position: -7px 0px;}
|
||||
.sprite.i2 {background-position: -170px 0px;}
|
||||
.sprite.i3 {background-position: -338px 0px;}
|
||||
.sprite.i4 {background-position: -501px 0px;}
|
||||
.sprite.i5 {background-position: -668px 0px;}
|
||||
.sprite.i6 {background-position: -833px 0px;}
|
||||
.sprite.i7 {background-position: -993px 0px;}
|
||||
/* / sprite */
|
||||
.graphics {display: block; height: 144px; background: url(/design/carheart/images/graphics.jpg) no-repeat top right; padding: 20px 33% 10px 40px; overflow: hidden;}
|
||||
.graphics .h3 {margin-top: 0;}
|
||||
.contact-form {clear: both;}
|
||||
.contact-form.replaced-form {margin-top: 20px;}
|
||||
.contact-form .h3 {margin-top: 0; margin-bottom: 20px;}
|
||||
.img-pull-left {margin:0 15px 10px 0;}
|
||||
.img-pull-right {margin:0 0 10px 15px;}
|
||||
.infoblock {margin-bottom: 30px;}
|
||||
.infoblock img {max-width: 100% !important; height: auto !important;}
|
||||
.hits .hit-title {height: 4.2em;line-height: 1.4em;}
|
||||
.hits .hit-image {text-align: center;}
|
||||
.hits .hit-image img {display: inline-block;}
|
||||
.hits .hit-price {line-height: 38px; color: #fff; font-weight: 700; letter-spacing: 1px;}
|
||||
.hits .hit-price small {font-weight: 400;}
|
||||
.hits .hit-button {}
|
||||
.other-services .oth-title {font-size: 14px; max-width: 208px; margin-bottom: 20px; text-align: center; height: 80px; }
|
||||
.other-services .oth-image img {max-width: 208px !important; height: auto !important;}
|
||||
.related_products.hits {overflow: hidden; margin-top:30px; margin-bottom: 30px;}
|
||||
img {max-width: 100%;}
|
||||
.mb {margin-bottom: 30px;}
|
||||
.tbl {display: table;}
|
||||
.tbl > div {display: table-cell; vertical-align: middle;}
|
||||
|
||||
.service-view p {text-align: justify;}
|
||||
|
||||
@media screen and (max-device-width: 768px) {
|
||||
.graphics p {display: none;}
|
||||
}
|
||||
@media screen and (min-device-width: 768px) {
|
||||
.service-icons > div {width: 14.28%;}
|
||||
}
|
||||
|
||||
.service-header h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#back-top {
|
||||
position: fixed;
|
||||
left: 100%;
|
||||
margin-left: -100px;
|
||||
bottom: 30px;
|
||||
z-index: 100;
|
||||
-webkit-transition: 1s;
|
||||
-moz-transition: 1s;
|
||||
transition: 1s;
|
||||
}
|
||||
#back-top a:hover span {
|
||||
background-color: #777;
|
||||
}
|
||||
#back-top span {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: block;
|
||||
margin-bottom: 3px;
|
||||
background: #aaa url(/design/carheart/images/up-arrow.png) no-repeat center center;
|
||||
-webkit-border-radius: 7px;
|
||||
-moz-border-radius: 7px;
|
||||
border-radius: 7px;
|
||||
-webkit-transition: 1s;
|
||||
-moz-transition: 1s;
|
||||
transition: 1s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#back_forward .prev-next-title {
|
||||
box-sizing: border-box;
|
||||
font-size: 110%;
|
||||
height: 36px;
|
||||
line-height: 1em;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#back_forward .cell {
|
||||
float: left;
|
||||
height: auto !important;
|
||||
margin: 5px;
|
||||
overflow: hidden;
|
||||
position: inherit !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
#back_forward .prev_next .cell a {
|
||||
height: auto !important;
|
||||
padding-bottom: 5px;
|
||||
position: inherit !important;
|
||||
display: block;
|
||||
padding-top: 5px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.flex-active-slide p {color:#fff;}
|
||||
|
||||
.m_link:hover {
|
||||
color:#fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.m_link {
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#right-cat-btn{
|
||||
height: 184px;
|
||||
right: -9.46px;
|
||||
overflow: visible;
|
||||
position: fixed;
|
||||
top: 28%;
|
||||
width: 43px;
|
||||
z-index: 99990;
|
||||
background: #007fc4;
|
||||
display: block;
|
||||
color:#fff;
|
||||
text-decoration: none;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#right-cat-btn:hover {
|
||||
right: -5.46px
|
||||
}
|
||||
|
||||
#right-cat-btn span {
|
||||
-webkit-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
border-radius: 6px;
|
||||
color:#fff;
|
||||
margin-top: 0px;
|
||||
display: block;
|
||||
transform-origin: left top 0;
|
||||
margin-left: 30px;
|
||||
width: 184px;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.pdf-download { position: relative; display: table; min-height: 49px; margin-bottom: 30px; margin-top: 15px; background: #ffffff; background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee 100%); background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee 100%); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 100%); border: 1px solid #dddddd; border-radius: 4px; padding-left: 95px; padding-right: 15px; padding-top: 4px; padding-bottom: 4px; }
|
||||
.pdf-download:before { position: absolute; content: ''; display: block; background: url(/design/carheart/images/72.png); width: 72px; height: 72px; left: 8px; top: 50%; margin-top: -36px; }
|
||||
.pdf-download > span {display: table-cell; height: 41px; vertical-align: middle; text-decoration: none;}
|
||||
.pdf-download p {margin: 0; padding-top: 4px; color: #727272;}
|
||||
.pdf-download a {text-decoration: none; color: #666 !important;}
|
||||
.pdf-download:hover a {text-decoration: underline; color: #666 !important;}
|
||||
|
||||
.pdf-views {margin-top: 20px; margin-bottom: 30px}
|
||||
.pdf-views .pdf-view {margin-bottom: 15px}
|
||||
.pdf-views .pdf-view img {max-width: 100%; height: auto !important}
|
||||
|
||||
.news-widget .news-block {margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #1c1e22;}
|
||||
.news-widget .news-block:last-child {margin-bottom: 0px; padding-bottom: 0px; border-bottom: none;}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a {
|
||||
z-index: 999 !important;
|
||||
}
|
||||
|
||||
.bx-wrapper {
|
||||
background: #1c1e22 !important;
|
||||
border: 5px solid #1c1e22 !important;
|
||||
}
|
||||
|
||||
.sort-order {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
margin-left: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.sort-order select {
|
||||
background: #353a41;
|
||||
border: 2px solid #353a41;
|
||||
border-radius: 2px;
|
||||
height: 29px;
|
||||
}
|
||||
|
||||
.product-comment-date {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.b3, .b1 {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.social-icons.list-inline, .top-text1, .service-icons.row {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.flexslider .slides li {
|
||||
background: rgb(0,127,196) no-repeat scroll right center !important;
|
||||
}
|
||||
|
||||
.help-block {
|
||||
color: red;
|
||||
}
|
||||
.help-block.err {
|
||||
display: none;
|
||||
}
|
||||
5
design/atomic/html/sub_pages.tpl
Normal file
5
design/atomic/html/sub_pages.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
{foreach $sub_pages as $sub_page}
|
||||
<ul class="subpages">
|
||||
<li class="page"><a href="{$request_uri}{$sub_page->url}/">{$sub_page->name}</a></li>
|
||||
</ul>
|
||||
{/foreach}
|
||||
81
design/atomic/html/user.tpl
Normal file
81
design/atomic/html/user.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
{* Шаблон страницы зарегистрированного пользователя *}
|
||||
|
||||
{if $smarty.get.page && ($smarty.get.page == 'mailing' || $smarty.get.page == 'mailing_settings')}<h1>ПОДПИСКА</h1>
|
||||
{if $smarty.post.mailing_email && !$error}
|
||||
Вы успешно подписаны на рыссылку новостей.
|
||||
{/if}
|
||||
{if $smarty.get.unsubscribe && !$error}Вы успешно отписаны от рыссылки.{/if}
|
||||
{if $error}<div class="message_error">{if $error == 'email_syntax'}Некорректно введён email.{elseif $error == '00001'}Вы не подписаны на рассылку.{/if}</div>{/if}
|
||||
{else} <h1>{$user->name|escape}</h1> {/if}
|
||||
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error == 'empty_name'}Введите имя
|
||||
{elseif $error == 'empty_name2'}Введите фамилию
|
||||
{elseif $error == 'empty_email'}Введите email
|
||||
{elseif $error == 'empty_password'}Введите пароль
|
||||
{elseif $error == 'empty_phone'}Введите Телефон
|
||||
{elseif $error == 'empty_country'}Введите Страну
|
||||
{elseif $error == 'empty_region'}Введите Регион
|
||||
{elseif $error == 'empty_city'}Введите Город
|
||||
{elseif $error == 'empty_indx'}Введите Индекс
|
||||
{elseif $error == 'empty_adress'}Введите Адрес Доставки
|
||||
{elseif $error == 'user_exists'}Пользователь с таким email уже зарегистрирован
|
||||
{else}{$error}{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="well">
|
||||
<form class="form form-horizontal" method="post">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Имя</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите имя" value="{$user->name}" name="name" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name2" class="col-sm-2 control-label">Фамилия</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите фамилию" value="{$user->name2}" name="name2" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format="email" data-notice="Введите email" value="{$user->email}" name="email" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone" class="col-sm-2 control-label">Телефон</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите телефон" value="{$user->phone}" name="phone" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="country" class="col-sm-2 control-label">Страна</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите страну" value="{$user->country}" name="country" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="region" class="col-sm-2 control-label">Регион</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите регион" value="{$user->region}" name="region" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="city" class="col-sm-2 control-label">Город</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите город" value="{$user->city}" name="city" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="indx" class="col-sm-2 control-label">Индекс</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-notice="Введите индекс" value="{$user->indx}" name="indx" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="adress" class="col-sm-2 control-label">Адрес доставки</label>
|
||||
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите адрес" value="{$user->adress}" name="adress" maxlength="255" type="text"/></div>
|
||||
</div>
|
||||
<label for="password" class="col-sm-2 control-label"> <a href='#' onclick="$('#password').show();return false;">Изменить пароль</a></label>
|
||||
<div class="col-sm-4"><input class="form-control" id="password" value="" name="password" type="password" style="display:none;"/></div>
|
||||
<input type="submit" class="btn btn-danger pull-right" value="Сохранить">
|
||||
</form>
|
||||
</div>
|
||||
{if $orders}
|
||||
<h2>Ваши заказы</h2>
|
||||
<ul id="orders_history">
|
||||
{foreach name=orders item=order from=$orders}
|
||||
<li>
|
||||
{$order->date|date} <a href='/order/{$order->url}'>Заказ №{$order->id}</a>
|
||||
{if $order->paid == 1}оплачен,{/if}
|
||||
{if $order->status == 0}ждет обработки{elseif $order->status == 1}в обработке{elseif $order->status == 2}выполнен{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
66
design/atomic/html/vopros.tpl
Normal file
66
design/atomic/html/vopros.tpl
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
function show_form()
|
||||
{
|
||||
?>
|
||||
<form action="" method=post>
|
||||
<div align="center">
|
||||
<br />Имя*<br />
|
||||
<input type="text" name="name" size="40">
|
||||
<br />Контактный телефон<br />
|
||||
<input type="text" name="tel" size="40">
|
||||
<br />Контактный email*<br />
|
||||
<input type="text" name="email" size="40">
|
||||
<br />Teма<br />
|
||||
<input type="text" name="title" size="40">
|
||||
<br />Сообщение*<br />
|
||||
<textarea rows="10" name="mess" cols="30"></textarea>
|
||||
<br /><input type="submit" value="Отправить" name="submit">
|
||||
</div>
|
||||
</form>
|
||||
* Помечены поля, которые необходимо заполнить
|
||||
<?
|
||||
}
|
||||
|
||||
function complete_mail() {
|
||||
// $_POST['title'] содержит данные из поля "Тема", trim() - убираем все лишние пробелы и переносы строк, htmlspecialchars() - преобразует специальные символы в HTML сущности, будем считать для того, чтобы простейшие попытки взломать наш сайт обломались, ну и substr($_POST['title'], 0, 1000) - урезаем текст до 1000 символов. Для переменных $_POST['mess'], $_POST['name'], $_POST['tel'], $_POST['email'] все аналогично
|
||||
$_POST['title'] = substr(htmlspecialchars(trim($_POST['title'])), 0, 1000);
|
||||
$_POST['mess'] = substr(htmlspecialchars(trim($_POST['mess'])), 0, 1000000);
|
||||
$_POST['name'] = substr(htmlspecialchars(trim($_POST['name'])), 0, 30);
|
||||
$_POST['tel'] = substr(htmlspecialchars(trim($_POST['tel'])), 0, 30);
|
||||
$_POST['email'] = substr(htmlspecialchars(trim($_POST['email'])), 0, 50);
|
||||
// если не заполнено поле "Имя" - показываем ошибку 0
|
||||
if (empty($_POST['name']))
|
||||
output_err(0);
|
||||
// если неправильно заполнено поле email - показываем ошибку 1
|
||||
if(!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i", $_POST['email']))
|
||||
output_err(1);
|
||||
// если не заполнено поле "Сообщение" - показываем ошибку 2
|
||||
if(empty($_POST['mess']))
|
||||
output_err(2);
|
||||
// создаем наше сообщение
|
||||
$mess = '
|
||||
Имя отправителя:'.$_POST['name'].'
|
||||
Контактный телефон:'.$_POST['tel'].'
|
||||
Контактный email:'.$_POST['email'].'
|
||||
'.$_POST['mess'];
|
||||
// $to - кому отправляем
|
||||
$to = 'dima@oneua.net';
|
||||
// $from - от кого
|
||||
$from='test@tst.ru';
|
||||
mail($to, $_POST['title'], $mess, "From:".$from);
|
||||
echo 'Спасибо! Ваше письмо отправлено.';
|
||||
}
|
||||
|
||||
function output_err($num)
|
||||
{
|
||||
$err[0] = 'ОШИБКА! Не введено имя.';
|
||||
$err[1] = 'ОШИБКА! Неверно введен e-mail.';
|
||||
$err[2] = 'ОШИБКА! Не введено сообщение.';
|
||||
echo '<p>'.$err[$num].'</p>';
|
||||
show_form();
|
||||
exit();
|
||||
}
|
||||
|
||||
if (!empty($_POST['submit'])) complete_mail();
|
||||
else show_form();
|
||||
?>
|
||||
Reference in New Issue
Block a user