Rev 19617 | Rev 19835 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort)) || (!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?><script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script><script type="text/javascript">function loaded () {myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });}</script><?php endif;?><?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?><?php if(!empty($links) && (isset($id) && $id != 6)):?><?php //$cur_url = $_SERVER['REQUEST_URI'];?><ul class="list-inline" style='font-size:.9em'><?php foreach ($links[$id] as $name => $link) :?><?php //if(substr($cur_url, strrpos($cur_url, '=') + 1) == substr($link,strpos($link,'=',8)+1)):?><?php if(!empty($brands) && $brands == substr($link,strpos($link,'=',8)+1)):?><li style='padding:2px;'><a class="selectbrand active" data-href="<?php echo $link;?>" data-id="<?php echo substr($link,strpos($link,'=',8)+1);?>"><?php echo $name;?></a></li><?php else:?><li style='padding:2px;'><a class="selectbrand" data-href="<?php echo $link;?>" data-id="<?php echo substr($link,strpos($link,'=',8)+1);?>"><?php echo $name;?></a></li><?php endif;?><?php endforeach;?><?php if(isset($brandschosen) && !empty($brandschosen)):?><li><button class="btn btn-xs clearfilters" style="width:25px !important;">All</button></li><?php endif;?></ul><?php endif;?><?php if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?><div style="margin-top:4px;"><div id="wrapper" style="background:white; width:100%; padding:0px;"><div id="scroller"><ul><?php $colorcount = 0;?><?php foreach($getdet as $arrkey => $arrvalue ):?><?php $strarr = explode(" ", $arrvalue['subCategory']);?><a href="?filter=subcategory&subcategories=<?php echo $arrvalue['subCategoryId'];?>&whatfirst=subCategory"><li class= "quickclick" style="background:<?php echo $color[$colorcount];?>; <?php if(strlen($arrvalue['subCategory']) >9 && sizeof($strarr)>1):?> font-size: 10px;line-height: 12px;<?php elseif(strlen($arrvalue['subCategory']) <=9 && sizeof($strarr)>1):?>line-height: 12px;<?php else:?>line-height: 24px;<?php endif;?>"><?phpecho $strarr[0];if(sizeof($strarr) >1){echo "<br>";for($abs = 1; $abs< sizeof($strarr);$abs++){echo $strarr[$abs]." ";}}?></li></a><?php $colorcount = $colorcount+1;if($colorcount == 6){$colorcount = 0;}?><?php endforeach;?></ul></div></div></div><?php endif;?>