mobile.phtml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. /**
  3. * @version 7.10 [rev.7.10.01]
  4. */
  5. ?>
  6. <div id="mobile-navigation" class="visible-xs">
  7. <nav class="main-nav navbar navbar-default navbar-fixed-top">
  8. <!-- Brand and toggle get grouped for better mobile display -->
  9. <div class="navbar-header">
  10. <!-- header menu button -->
  11. <button type="button" class="navbar-toggle menu-button collapsed" data-toggle="collapse"
  12. data-target="#navbar-collapse">
  13. <i class="fa fa-bars"></i>
  14. </button>
  15. <!-- members menu button -->
  16. <button type="button" class="navbar-toggle user-button collapsed" data-toggle="collapse"
  17. data-target="#user-menu-collapse">
  18. <i class="fa fa-user"></i>
  19. </button>
  20. <!-- cart button (no dropdown) -->
  21. <?php if ($this->settings['enable_shopping_cart']) { ?>
  22. <a href="<?php echo $this->url('cart'); ?>" class="navbar-toggle cart-button">
  23. <i class="fa fa-shopping-cart"></i>
  24. </a>
  25. <?php } ?>
  26. <a href="<?php echo $this->url(null, 'app-home'); ?>"
  27. title="<?php echo $this->settings['sitename']; ?>">
  28. <img src="<?php echo $this->thumbnail()->generateImagePath($this->settings['site_logo_path']); ?>"
  29. alt="<?php echo $this->settings['sitename']; ?>"
  30. class="brand-img img-responsive">
  31. </a>
  32. </div>
  33. <div class="clearfix"></div>
  34. <!-- search menu dropdown -->
  35. <div class="mobile-search">
  36. <div class="row">
  37. <div class="col-xs-10">
  38. <form class="form-inline form-header" action="<?php echo $this->url(null, 'listings-search'); ?>"
  39. method="get">
  40. <div class="form-group has-feedback">
  41. <input id="basic-search" type="text" name="keywords" class="form-control"
  42. value="<?php echo $this->request()->getRequest()->getParam('keywords'); ?>"
  43. placeholder="<?php echo $this->_('Search...'); ?>">
  44. <span class="glyphicon glyphicon-search btn-icon-search form-control-feedback"></span>
  45. </div>
  46. </form>
  47. </div>
  48. <div class="col-xs-2">
  49. <?php if ($this->settings['user_languages']) { ?>
  50. <?php echo $this->language(); ?>
  51. <?php } ?>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- header menu dropdown -->
  56. <div class="collapse navbar-collapse" id="navbar-collapse">
  57. <ul class="nav navbar-nav">
  58. <?php foreach ($this->menu->pages as $page) { ?>
  59. <?php if ((!$page->settings || (intval($this->settings[(string)$page->settings['name']]) == $page->settings['value'])) &&
  60. ($this->navigation()->accept($page)) && $page->hidden != 'true'
  61. ) {
  62. ?>
  63. <li <?php echo ($page->isActive(true)) ? 'class="active"' : ''; ?>>
  64. <a href="<?php echo $this->url($page->params); ?>">
  65. <?php echo $page->label; ?>
  66. </a>
  67. </li>
  68. <?php } ?>
  69. <?php } ?>
  70. </ul>
  71. </div>
  72. <!-- members menu dropdown -->
  73. <div class="collapse navbar-collapse" id="user-menu-collapse">
  74. <div>
  75. <small>
  76. <?php echo $this->_('Welcome'); ?>,
  77. <strong>
  78. <?php echo (isset($this->loggedInUser['username'])) ?
  79. $this->loggedInUser['username'] : $this->_('Guest'); ?>
  80. </strong>
  81. </small>
  82. </div>
  83. <ul class="nav navbar-nav">
  84. <?php if (count($this->loggedInUser) > 0) { ?>
  85. <li>
  86. <a href="<?php echo $this->url(null,
  87. 'members-index'); ?>"><?php echo $this->_('Members Area'); ?></a>
  88. </li>
  89. <li>
  90. <a href="<?php echo $this->url(null, 'members-logout'); ?>"><?php echo $this->_('Logout'); ?></a>
  91. </li>
  92. <?php
  93. }
  94. else {
  95. $registerModal = ($this->settings['registration_type'] == 'quick' && !\Ppb\Form\Element\ReCaptcha::$loaded) ? true : false;
  96. ?>
  97. <li>
  98. <a <?php echo ($registerModal) ? 'class="dialog-box"' : ''; ?>
  99. href="<?php echo $this->url(array('module' => 'members', 'controller' => 'user', 'action' => ($registerModal) ? 'register-modal' : 'register')); ?>"
  100. title="<?php echo $this->_('Sign up'); ?>"><?php echo $this->_('Sign up'); ?></a>
  101. </li>
  102. <li>
  103. <a class="dialog-box"
  104. href="<?php echo $this->url(array('module' => 'members', 'controller' => 'user', 'action' => 'login-modal')); ?>"
  105. title="<?php echo $this->_('Sign in'); ?>"><?php echo $this->_('Sign in'); ?></a>
  106. </li>
  107. <?php } ?>
  108. <li>
  109. <a href="<?php echo $this->url(array('module' => 'members', 'controller' => 'tools', 'action' => 'watched-items')); ?>"
  110. title="<?php echo $this->_('Wishlist'); ?>"><?php echo $this->_('Wishlist'); ?></a>
  111. </li>
  112. </ul>
  113. </div>
  114. <!-- /.navbar-collapse -->
  115. </nav>
  116. </div>