browse.phtml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /**
  3. * @version 7.7
  4. */
  5. ?>
  6. <!-- start - container -->
  7. <div id="browse">
  8. <div class="row row-offcanvas row-offcanvas-left">
  9. <!-- start - side bar -->
  10. <aside class="col-sm-3 col-xs-12 sidebar-offcanvas">
  11. <div class="filter-results"><?php echo $this->_('Filter Results'); ?></div>
  12. <?php echo $this->action('stores', 'search', 'listings'); ?>
  13. </aside>
  14. <!-- end - side bar -->
  15. <!-- start - content -->
  16. <section class="col-sm-9 col-xs-12">
  17. <p class="visible-xs">
  18. <button class="btn btn-default" data-toggle="offcanvas" type="button">
  19. <i class="fa fa-2x fa-list"></i>
  20. </button>
  21. </p>
  22. <!-- start - title -->
  23. <h1 class="section-title">
  24. <?php echo $this->_('Browse Stores'); ?>
  25. </h1>
  26. <!-- end - title -->
  27. <?php $featuredStoresContent = $this->action('featured', 'stores', 'members'); ?>
  28. <?php if (!empty($featuredStoresContent)) { ?>
  29. <div class="featured">
  30. <h2><?php echo $this->_('Featured Stores'); ?></h2>
  31. <?php echo $featuredStoresContent; ?>
  32. </div>
  33. <?php } ?>
  34. <?php if ($this->paginator->getPages()->totalItemCount) { ?>
  35. <!-- start - ordering/display options -->
  36. <div>
  37. <div class="view-switch col-sm-2">
  38. <a href="#" id="list"
  39. title="<?php echo $this->_('List View'); ?>"><?php echo $this->_('List view'); ?></a>
  40. <a href="#" id="grid"
  41. title="<?php echo $this->_('Grid View'); ?>"><?php echo $this->_('Grid view'); ?></a>
  42. </div>
  43. <div class="col-sm-10">
  44. <strong><?php echo $this->paginator->getPages()->totalItemCount; ?></strong> <?php echo $this->_('stores found.'); ?>
  45. <?php if ($this->paginator->getPages()->totalItemCount) { ?>
  46. <?php echo $this->_('Showing results'); ?>
  47. <strong><?php echo $this->paginator->getPages()->firstItemNumber; ?></strong>
  48. <?php echo $this->_('to'); ?>
  49. <strong><?php echo $this->paginator->getPages()->lastItemNumber; ?></strong>.
  50. <?php } ?>
  51. </div>
  52. </div>
  53. <!-- end - ordering/display options -->
  54. <div class="clearfix"></div>
  55. <!-- start - listings display -->
  56. <div class="listings">
  57. <?php
  58. /* @var \Ppb\Db\Table\Row\User $store */
  59. foreach ($this->paginator as $store) {
  60. echo $this->partial('partials/store-box.phtml', array(
  61. 'store' => $store));
  62. } ?>
  63. </div>
  64. <!-- end - listings display -->
  65. <div class="clearfix"></div>
  66. <?php } ?>
  67. <!-- start - paginate -->
  68. <div>
  69. <?php if (!$this->paginator->getPages()->totalItemCount) { ?>
  70. <div class="no-results">
  71. <?php echo $this->_('There are no stores matching your query.'); ?>
  72. </div>
  73. <?php } ?>
  74. <div class="pull-right">
  75. <?php echo $this->pagination($this->paginator, 'sliding', 'partials/pagination.phtml'); ?>
  76. </div>
  77. </div>
  78. <!-- end - paginate -->
  79. </section>
  80. <!-- end - content -->
  81. </div>
  82. </div>
  83. <!-- end - container -->