diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 0be5ab1..e1152bc 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -97,10 +97,10 @@ FlipclockAsset::register($this); ', View::POS_READY, 'fasovka'); $this->registerJs(" - $('#nav_product li a').addClass('active'); + $('#nav_product li > a').addClass('active'); $('#nav_product li').find('.info').toggle(); - $('#nav_product li a').bind('click',function() + $('#nav_product li > a').bind('click',function() { if($(this).parent().find('.info').css('display')=='none')$(this).addClass('active'); else $(this).removeClass('active'); @@ -290,9 +290,42 @@ FlipclockAsset::register($this);
Бренд: = $product->brand->name ?>
+Бренд: = Html::a($product->brand->name, [ + 'catalog/category', + 'category' => $category, + 'filters' => [ + 'brands' => [$product->brand->alias] + ] + ]) + ?>
getActiveProperties($category->category_id) as $group): ?> -= $group->name ?> _options as $option) : ?> = $option->ValueRenderHTML ?>
++ name .' '; + $i = 1; + foreach($group->_options as $option) { + if ($group->is_filter) { + echo Html::a( + $option->ValueRenderHTML, + [ + 'catalog/category', + 'category' => $category, + 'filters' => [ + $group->alias => [ $option->alias ], + ], + ] + ); + } else { + echo $option->ValueRenderHTML; + } + if (count($group->_options) != $i) { + echo ', '; + } + $i++; + } + unset($i); + ?> +