diff --git a/frontend/views/catalog/index.php b/frontend/views/catalog/index.php
index 441074b..d376416 100755
--- a/frontend/views/catalog/index.php
+++ b/frontend/views/catalog/index.php
@@ -8,15 +8,15 @@ $this->title = $catalog->meta_title;
$this->params['seo']['fields']['meta-title'] = $catalog->meta_title;
$this->registerMetaTag(['name' => 'description', 'content' => $catalog->meta_description]);
$this->registerMetaTag(['name' => 'keywords', 'content' => $catalog->meta_keywords]);
-?>
-
+//?>
+
+//= Breadcrumbs::widget([
+//
+// 'links' => [ ['label'=>'Каталог','url'=>['catalog/all']],
+// $catalog->name],
+// ]) ?>
+
+
diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php
index 49583c9..8ff2e4e 100755
--- a/frontend/views/catalog/product.php
+++ b/frontend/views/catalog/product.php
@@ -106,12 +106,12 @@
", View::POS_READY, 'Shadowbox');
?>
-
+
+//= Breadcrumbs::widget([
+// 'links' => $this->params[ 'breadcrumbs' ],
+// ]) ?>
+
+
session->getFlash('success')): ?>
= $flash ?>
diff --git a/frontend/views/catalog/products.php b/frontend/views/catalog/products.php
index b833ff8..ba0e39b 100755
--- a/frontend/views/catalog/products.php
+++ b/frontend/views/catalog/products.php
@@ -22,7 +22,7 @@ $this->params['seo']['category_name'] = $category->name;
//foreach($category->getParents()->all() as $parent) {
// $this->params['breadcrumbs'][] = ['label' => $parent->categoryName->value, 'url' => ['catalog/category', 'category' => $parent]];
//}
-$this->params['breadcrumbs'][] = ['label' => 'Каталог', 'url' => ['catalog/category']];
+$this->params['breadcrumbs'][] = ['label' => 'Каталог', 'url' => Url::to(['catalog/category']),'itemprop' => 'url', ];
$this->params['breadcrumbs'][] = $category->categoryName->value;
@@ -63,16 +63,8 @@ $this->registerJsFile(Yii::getAlias('@web/js/ion.rangeSlider.js'),[
-
-
registerJs ("
@@ -241,6 +242,20 @@ $this->registerJs("
+ params['breadcrumbs'])):?>
+
+
+
= $content ?>
diff --git a/frontend/views/products/_product.php b/frontend/views/products/_product.php
deleted file mode 100755
index 6303696..0000000
--- a/frontend/views/products/_product.php
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
= $item->name ?>
-
-
-';
-
- // есть скидка
- if ($item->costMax->old_cost != 0 && $item->costMax->old_cost != $item->costMax->cost)
- {
- // одинаковая скидка
- if ($item->costMax->count_diff == 1)
- {
- echo '
'.$item->costMax->old_cost.' грн.';
- }
- }
-
- echo '
'.$item->costMax->cost.' грн.
';
-
- echo '
';
-
-?>
-
-
Купить
-
-
-
- mods as $mods) { ?>
- -
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/frontend/views/products/_show.php b/frontend/views/products/_show.php
deleted file mode 100755
index c753d31..0000000
--- a/frontend/views/products/_show.php
+++ /dev/null
@@ -1,122 +0,0 @@
-title = (!empty($product->meta_title))?$product->meta_title:$product->name;
-$this->registerMetaTag(['name' => 'description', 'content' => ((!empty($product->meta_description))?$product->meta_description:$product->name)]);
-$this->registerMetaTag(['name' => 'keywords', 'content' => $product->meta_keywords]);
-$this->registerJs("
- var checkData = function(obj){
- $('#cost').text($(obj).data('cost'));
- $('#product_id').val($(obj).data('id'));
- }
- $('.fasovka input[type=\"radio\"]').click(function() {
- checkData(this);
- });
- checkData($( '.fasovka input:checked' ));
-", View::POS_READY, 'fasovka');
-
-$this->registerJs("
-
- $('#product_gallery a').click(function() {
- var image = $(this).attr('href');
- $('#productPic').attr('src', image);
- return false;
- });
-
-", View::POS_READY, 'gallery');
-
-$this->registerJsFile(Yii::$app->request->baseUrl.'/js/jquery.sliderkit.1.9.2.pack.js',['position'=>View::POS_END,'depends'=>['yii\web\YiiAsset']]);
-$this->registerJs("
-
- $('.skit').sliderkit({
- cssprefix: 'skit',
- shownavitems: 3,
- auto: false,
- scroll: 1,
- circular: false,
- // freeheight: true,
- scrollspeed: 500
- });
-
-", View::POS_READY, 'sliderkit');
-?>
-
-
-
-
-
-
- = $this->render('/catalog/_catalog_box',['catalog'=>$catalog]) ?>
-
-
-
-
=$product->name?>
-
-
-
-
-

-
-

-
-
-
-
-
-
- fotos as $key=>$item):?>
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
Фасовка
-
- mods as $key=>$item):?>
- >
-
-
-
-
-
-
-
-
Характеристики
- =$product->char?>
-
-
Описание
- =$product->body?>
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/frontend/views/products/compare.php b/frontend/views/products/compare.php
deleted file mode 100755
index 0f2c1e7..0000000
--- a/frontend/views/products/compare.php
+++ /dev/null
@@ -1,46 +0,0 @@
-title = 'СРАВНЕНИЕ';
-$this->registerMetaTag(['name' => 'description', 'content' => 'СРАВНЕНИЕ']);
-$this->registerMetaTag(['name' => 'keywords', 'content' => 'СРАВНЕНИЕ']);
-
-$this->params['breadcrumbs'][] = ['label'=>'Каталог','url'=>['/catalog/all']];
-$this->params['breadcrumbs'][] = ['label'=>'СРАВНЕНИЕ','url'=>['/products/compare']];
-?>
-
-
-
-
-
-
СРАВНЕНИЕ
-
-
diff --git a/frontend/views/products/index.php b/frontend/views/products/index.php
deleted file mode 100755
index eb1b3dd..0000000
--- a/frontend/views/products/index.php
+++ /dev/null
@@ -1,99 +0,0 @@
-
-params['catalog_id'] = $catalog->id;
- $this->title = $catalog->meta_title;
- $this->registerMetaTag (['name' => 'description', 'content' => $catalog->meta_description]);
- $this->registerMetaTag (['name' => 'keywords', 'content' => $catalog->meta_keywords]);
- $this->registerCssFile (Yii::$app->request->BaseUrl . '/css/begunok.css');
- $this->registerJsFile (Yii::$app->request->baseUrl . '/js/jquery.ui-slider.js', ['position' => View::POS_END, 'depends' => ['yii\web\JqueryAsset']]);
- $this->registerJsFile (Yii::$app->request->baseUrl . '/js/begunok.js', ['position' => View::POS_END, 'depends' => ['yii\web\JqueryAsset']]);
- $this->params['breadcrumbs'][] = ['label' => 'Каталог', 'url' => ['/catalog/all']];
- if (! empty($catalog->parent)) $this->params['breadcrumbs'][] = ['label' => $catalog->parent->name, 'url' => ['products/index', 'translit' => $catalog->parent->translit]];
- $this->params['breadcrumbs'][] = ['label' => $catalog->name];
-?>
-
-
-
-
-
-

-

-
- = BrendsWidget::widget (['translit' => $catalog->translit, 'catalog_id' => $catalog->id]) ?>
-
- = FiltersWidget::widget (['translit' => $catalog->translit, 'catalog_id' => $catalog->id]) ?>
-
-
-
Цена
- false]); ?>
-
-
-
- field ($modelProducts, 'minCost'); ?>
- field ($modelProducts, 'maxCost'); ?>
-
- 'submit4', 'style' => 'margin-left:50px;']); ?>
-
-
-
-
-
-
-
-
-
= $catalog->name ?>
-
-
-
-
-
- -
- = $this->render ('_product', ['item' => $item, 'num' => 3]) ?>
-
-
-
-
-
-
-
- = LinkPager::widget ([
- 'pagination' => $pages,
- 'registerLinkTags' => true,
- ]); ?>
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/frontend/views/products/search.php b/frontend/views/products/search.php
deleted file mode 100755
index 8eb66ea..0000000
--- a/frontend/views/products/search.php
+++ /dev/null
@@ -1,60 +0,0 @@
-
-title = 'Поиск';
- $this->registerMetaTag (['name' => 'description', 'content' => 'Поиск']);
- $this->registerMetaTag (['name' => 'keywords', 'content' => 'Поиск']);
-?>
-
-
-
-
-
-
Поиск
-
-
- = empty($products) ? 'Не чего не найдено!' : '' ?>
-
-
-
-
-
- -
- = $this->render ('_product', ['item' => $item, 'num' => 3]) ?>
-
-
-
-
-
-
- = LinkPager::widget ([
- 'pagination' => $pages,
- 'registerLinkTags' => true,
- ]); ?>
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/frontend/views/products/show.php b/frontend/views/products/show.php
deleted file mode 100755
index c2f8aff..0000000
--- a/frontend/views/products/show.php
+++ /dev/null
@@ -1,176 +0,0 @@
-title = (! empty($product->meta_title)) ? $product->meta_title : $product->name;
- $this->registerMetaTag (['name' => 'description', 'content' => ((! empty($product->meta_description)) ? $product->meta_description : $product->name)]);
- $this->registerMetaTag (['name' => 'keywords', 'content' => $product->meta_keywords]);
- $this->registerJs ('
-
- var checkData = function($index)
- {
- var $source = $(".productLeftBar .product_mod > li").eq($index).find("a");
- var $target = $(".productLeftBar .cost_box");
-
- $("#cost").text($source.data("cost"));
- $("#old_cost").text($source.data("old_cost"));
-
- if (parseInt ($source.data("old_cost")) == 0)
- {
- $target.find("strike").hide();
- }
- else
- {
- $target.find("strike").show();
- }
-
- $("#product_id").val($source.data("id"));
- $("#art").text($source.data("art"));
- $("#color").text($source.data("color"));
- $("#pic").attr("src",$source.data("image"));
- $("#picoriginal").attr("href",$source.data("imageoriginal"));
- }
-
- $(".product_mod > li").click(function()
- {
- checkData($(this).index());
-
- Shadowbox.setup($("#picoriginal"));
-
- return false;
- });
-
- checkData(0);
-
- ', View::POS_READY, 'fasovka');
-
- $this->registerJs ("
- $('#nav_product li a').addClass('active');
- $('#nav_product li').find('.info').toggle();
-
- $('#nav_product li a').bind('click',function()
- {
- if($(this).parent().find('.info').css('display')=='none')$(this).addClass('active');
- else $(this).removeClass('active');
- $(this).parent().find('.info').toggle();
-
- return false;
- });
- ", View::POS_READY, 'nav_product');
-
- $this->registerCssFile (Yii::$app->request->BaseUrl . '/js/shadowbox-3.0.3/shadowbox.css');
- $this->registerJsFile (Yii::$app->request->baseUrl . '/js/shadowbox-3.0.3/shadowbox.js', ['position' => View::POS_END, 'depends' => ['yii\web\JqueryAsset']]);
- $this->registerJs ("
- Shadowbox.init({
-
- });
- ", View::POS_READY, 'Shadowbox');
-?>
-
-
-
-session->getFlash ('success')): ?>
-
= $flash ?>
-
-
-
-
-
-
= $product->name ?>
-
Цветовые решения
-
- mods as $key => $item): ?>
- -
-
-
-
-
-
-
-
-
-
-
код:
цвет:
-
- 0 грн.
- 0 грн.
-
-
-
Купить
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- fotos as $key => $item): ?>
- 
-
-
-
-
-
-
-
\ No newline at end of file
--
libgit2 0.21.4