index.phtml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * @version 7.10 [rev.7.10.02]
  4. */
  5. ?>
  6. <nav class="navbar navbar-filter">
  7. <form class="navbar-form navbar-right"
  8. action="<?php echo $this->url(array('action' => 'browse'), null, true, array('page')); ?>" method="get">
  9. <div class="form-group">
  10. <?php echo $this->formElement('text', 'keywords')
  11. ->setAttributes(array('placeholder' => $this->_('Enter Store Name'), 'class' => 'form-control input-medium'))
  12. ->render();
  13. ?>
  14. </div>
  15. <?php echo $this->formElement('submit', 'submit', $this->_('Search'))
  16. ->setAttributes(array('class' => 'btn btn-default'))
  17. ->render();
  18. ?>
  19. </form>
  20. </nav>
  21. <div class="row">
  22. <div id="browse" class="col-sm-8">
  23. <?php $featuredStoresContent = $this->action('featured', 'stores', 'members'); ?>
  24. <?php if (!empty($featuredStoresContent)) { ?>
  25. <h2 class="headline">
  26. <span><?php echo $this->_('Featured Stores'); ?></span>
  27. </h2>
  28. <div class="featured">
  29. <?php echo $featuredStoresContent; ?>
  30. </div>
  31. <?php } ?>
  32. <div>
  33. <h2 class="headline">
  34. <span><?php echo $this->_('Search by Category'); ?></span>
  35. </h2>
  36. <div class="masonry">
  37. <?php foreach ($categories as $category) { ?>
  38. <div class="col-sm-4 col-xs-6 item">
  39. <div class="pdr-10">
  40. <a href="<?php echo $this->url(array('action' => 'browse', 'parent_id' => $category['id']), null, true); ?>"><?php echo $this->_($category['name']); ?></a>
  41. </div>
  42. </div>
  43. <?php } ?>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="col-sm-4">
  48. <?php if (count($stores) > 0) { ?>
  49. <div class="standard-stores">
  50. <h2 class="headline">
  51. <span><?php echo $this->_('Standard Stores'); ?></span>
  52. </h2>
  53. <?php
  54. /** @var \Ppb\Db\Table\Row\User $store */
  55. foreach ($stores as $store) { ?>
  56. <div>
  57. <a href="<?php echo $this->url($store->storeLink()); ?>"><?php echo $store->storeName(); ?></a>
  58. </div>
  59. <?php } ?>
  60. </div>
  61. <?php } ?>
  62. <div>
  63. <h2 class="headline">
  64. <span><?php echo $this->_('Open a Store'); ?></span>
  65. </h2>
  66. <p class="text-info"><?php echo $this->_('Would you like to have your own store?'); ?></p>
  67. <p><?php echo $this->_('Open a store today and reach more buyers. Our stores offer elegant design layout '
  68. . 'and powerful tools to help you manage, promote and grow your business. Get on board now!'); ?>
  69. </p>
  70. <div class="text-right">
  71. <a class="btn btn-default"
  72. href="<?php echo $this->url(array('module' => 'members', 'controller' => 'store', 'action' => 'setup')); ?>">
  73. <?php echo $this->_('Open a Store'); ?></a>
  74. </div>
  75. </div>
  76. </div>
  77. </div>