Commit 296aec1b821eeca44fc8bb6c33e43fcb5e2bfe01

Authored by Yarik
2 parents e3a12e2f 14db84f0

Merge remote-tracking branch 'origin/master'

Showing 1 changed file with 0 additions and 37 deletions   Show diff stats
frontend/views/category/view.php
... ... @@ -135,7 +135,6 @@ _________________________________________________________ -->
135 135 <div class="panel-body">
136 136 <div class="form-group">
137 137 <?php
138   - $firstsix = 0;
139 138 $buthiddenmore = Html::tag(
140 139 'div',
141 140 Html::a(
... ... @@ -170,44 +169,8 @@ _________________________________________________________ --&gt;
170 169 ) ? 'radio-but checked' : 'radio-but',
171 170 ]
172 171 );
173   - $firstsix++;
174   - if ($firstsix == 6) {
175   - break;
176   - }
177 172 }
178 173 ?>
179   - <div class="hiddens">
180   - <?php
181   - $nextsix = 0;
182   - foreach ($brands as $brand) {
183   - $nextsix++;
184   - if ($nextsix > 6) {
185   - echo Html::tag(
186   - 'div',
187   - Html::a(
188   - $brand->lang->title,
189   - [
190   - '/category/view',
191   - 'category' => $brand->lang->alias->value,
192   - 'filter' => $filterHelper->buildLink($brand),
193   - ]
194   - ),
195   - [
196   - 'class' => $filterHelper->has(
197   - $brand->lang->alias->value
198   - ) ? 'radio-but checked' : 'radio-but',
199   - ]
200   - );
201   - }
202   - }
203   - if ($nextsix > 6) {
204   - $morebutton = $buthiddenmore;
205   - } else {
206   - $morebutton = '';
207   - }
208   - ?>
209   - </div>
210   - <?php echo $morebutton; ?>
211 174 </div>
212 175 </div>
213 176 <?php
... ...