Guest User

View file

a guest
Dec 15th, 2016
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. <?php echo $header; ?>
  2. <div class="container">
  3. <ul class="breadcrumb">
  4. <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  5. <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
  6. <?php } ?>
  7. </ul>
  8. <div class="row"><?php echo $column_left; ?>
  9. <?php if ($column_left && $column_right) { ?>
  10. <?php $class = 'col-sm-6'; ?>
  11. <?php } elseif ($column_left || $column_right) { ?>
  12. <?php $class = 'col-sm-9'; ?>
  13. <?php } else { ?>
  14. <?php $class = 'col-sm-12'; ?>
  15. <?php } ?>
  16. <div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
  17. <h2><?php echo $heading_title; ?></h2>
  18.  
  19. <?php if ($products) { ?>
  20. <p><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></p>
  21. <div class="row">
  22. <div class="col-md-4">
  23. <div class="btn-group hidden-xs">
  24. <button type="button" id="list-view" class="btn btn-default" data-toggle="tooltip" title="<?php echo $button_list; ?>"><i class="fa fa-th-list"></i></button>
  25. <button type="button" id="grid-view" class="btn btn-default" data-toggle="tooltip" title="<?php echo $button_grid; ?>"><i class="fa fa-th"></i></button>
  26. </div>
  27. </div>
  28. <div class="col-md-2 text-right">
  29. <label class="control-label" for="input-sort"><?php echo $text_sort; ?></label>
  30. </div>
  31. <div class="col-md-3 text-right">
  32. <select id="input-sort" class="form-control" onchange="location = this.value;">
  33. <?php foreach ($sorts as $sorts) { ?>
  34. <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
  35. <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
  36. <?php } else { ?>
  37. <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
  38. <?php } ?>
  39. <?php } ?>
  40. </select>
  41. </div>
  42. <div class="col-md-1 text-right">
  43. <label class="control-label" for="input-limit"><?php echo $text_limit; ?></label>
  44. </div>
  45. <div class="col-md-2 text-right">
  46. <select id="input-limit" class="form-control" onchange="location = this.value;">
  47. <?php foreach ($limits as $limits) { ?>
  48. <?php if ($limits['value'] == $limit) { ?>
  49. <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
  50. <?php } else { ?>
  51. <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
  52. <?php } ?>
  53. <?php } ?>
  54. </select>
  55. </div>
  56. </div>
  57. <br />
  58. <div class="row">
  59. <?php foreach ($products as $product) { ?>
  60. <div class="product-layout product-list col-xs-12">
  61. <div class="product-thumb">
  62. <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
  63. <div>
  64. <div class="caption">
  65. <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
  66. <p><?php echo $product['description']; ?></p>
  67. <?php if ($product['rating']) { ?>
  68. <div class="rating">
  69. <?php for ($i = 1; $i <= 5; $i++) { ?>
  70. <?php if ($product['rating'] < $i) { ?>
  71. <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
  72. <?php } else { ?>
  73. <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
  74. <?php } ?>
  75. <?php } ?>
  76. </div>
  77. <?php } ?>
  78. <?php if ($product['price']) { ?>
  79. <p class="price">
  80. <?php if (!$product['special']) { ?>
  81. <?php echo $product['price']; ?>
  82. <?php } else { ?>
  83. <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
  84. <?php } ?>
  85. <?php if ($product['tax']) { ?>
  86. <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
  87. <?php } ?>
  88. </p>
  89. <?php } ?>
  90. </div>
  91. <div class="button-group">
  92. <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
  93. <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
  94. <button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <?php } ?>
  100. </div>
  101. <div class="row">
  102. <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>
  103. <div class="col-sm-6 text-right"><?php echo $results; ?></div>
  104. </div>
  105. <?php } ?>
  106. <?php echo $content_bottom; ?></div>
  107. <?php echo $column_right; ?></div>
  108. </div>
  109. <?php echo $footer; ?>
Add Comment
Please, Sign In to add comment