Commit 8fd6962fa61b5e45972048e1edd3240169e75cb1
1 parent
3d1a900d
sitemap controller fix noindex
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
console/controllers/SiteMapController.php
@@ -172,14 +172,14 @@ class SiteMapController extends Controller | @@ -172,14 +172,14 @@ class SiteMapController extends Controller | ||
172 | } | 172 | } |
173 | 173 | ||
174 | //brands | 174 | //brands |
175 | -// foreach($this->getCategories() as $category) { | ||
176 | -// foreach ($this->getBrands($category) as $brand) { | ||
177 | -// if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ | ||
178 | -// $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]) ; | ||
179 | -// $this->createRow($url , 0.8, $content); | ||
180 | -// } | ||
181 | -// } | ||
182 | -// } | 175 | + foreach($this->getCategories() as $category) { |
176 | + foreach ($this->getBrands($category) as $brand) { | ||
177 | + if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ | ||
178 | + $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]) ; | ||
179 | + $this->createRow($url , 0.8, $content); | ||
180 | + } | ||
181 | + } | ||
182 | + } | ||
183 | // | 183 | // |
184 | // //filters 1 lvl | 184 | // //filters 1 lvl |
185 | // foreach($this->getCategories() as $category) { | 185 | // foreach($this->getCategories() as $category) { |