| Line 45... |
Line 45... |
| 45 |
<?php if(!empty($category['Brand'])):?>
|
45 |
<?php if(!empty($category['Brand'])):?>
|
| 46 |
<h5>My Favourite Brands</h5>
|
46 |
<h5>My Favourite Brands</h5>
|
| 47 |
<?php foreach ($category['Brand'] as $key => $brand):?>
|
47 |
<?php foreach ($category['Brand'] as $key => $brand):?>
|
| 48 |
<div class="col-xs-6 brands <?php if(empty($brand['displayed_in_preference_page'])):?>hidden notfeatured<?php endif;?>">
|
48 |
<div class="col-xs-6 brands <?php if(empty($brand['displayed_in_preference_page'])):?>hidden notfeatured<?php endif;?>">
|
| 49 |
<?php if(!empty($preferredBrands) && isset($preferredBrands[$category['Category']['id']]) && in_array($brand['name'],$preferredBrands[$category['Category']['id']])):?>
|
49 |
<?php if(!empty($preferredBrands) && isset($preferredBrands[$category['Category']['id']]) && in_array($brand['name'],$preferredBrands[$category['Category']['id']])):?>
|
| 50 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>" checked="checked"/>
|
50 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector active" data-catid="<?php echo $category['Category']['id'];?>" checked="checked"/>
|
| 51 |
<?php else:?>
|
51 |
<?php else:?>
|
| 52 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>"/>
|
52 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector active" data-catid="<?php echo $category['Category']['id'];?>"/>
|
| 53 |
<?php endif;?>
|
53 |
<?php endif;?>
|
| 54 |
<?php echo $brand['name'];?>
|
54 |
<?php echo $brand['name'];?>
|
| 55 |
</div>
|
55 |
</div>
|
| 56 |
<?php endforeach;?>
|
56 |
<?php endforeach;?>
|
| 57 |
<div class="revealbrands">Others</div>
|
57 |
<div class="revealbrands">Others</div>
|