navbar.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?php
  2. use yii\helpers\Html;
  3. ?>
  4. <!-- Navbar -->
  5. <nav class="main-header navbar navbar-expand navbar-white navbar-light">
  6. <!-- Left navbar links -->
  7. <ul class="navbar-nav">
  8. <li class="nav-item">
  9. <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
  10. </li>
  11. <li class="nav-item d-none d-sm-inline-block">
  12. <a href="<?=\yii\helpers\Url::home()?>" class="nav-link">Home</a>
  13. </li>
  14. <li class="nav-item d-none d-sm-inline-block">
  15. <a href="#" class="nav-link">Contact</a>
  16. </li>
  17. <li class="nav-item dropdown">
  18. <a id="dropdownSubMenu1" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link dropdown-toggle">Dropdown</a>
  19. <ul aria-labelledby="dropdownSubMenu1" class="dropdown-menu border-0 shadow">
  20. <li><a href="#" class="dropdown-item">Some action </a></li>
  21. <li><a href="#" class="dropdown-item">Some other action</a></li>
  22. <li><?= Html::a('Sign out', ['site/logout'], ['data-method' => 'post', 'class' => 'dropdown-item']) ?></li>
  23. <li class="dropdown-divider"></li>
  24. <!-- Level two dropdown-->
  25. <li class="dropdown-submenu dropdown-hover">
  26. <a id="dropdownSubMenu2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-item dropdown-toggle">Hover for action</a>
  27. <ul aria-labelledby="dropdownSubMenu2" class="dropdown-menu border-0 shadow">
  28. <li>
  29. <a tabindex="-1" href="#" class="dropdown-item">level 2</a>
  30. </li>
  31. <!-- Level three dropdown-->
  32. <li class="dropdown-submenu">
  33. <a id="dropdownSubMenu3" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-item dropdown-toggle">level 2</a>
  34. <ul aria-labelledby="dropdownSubMenu3" class="dropdown-menu border-0 shadow">
  35. <li><a href="#" class="dropdown-item">3rd level</a></li>
  36. <li><a href="#" class="dropdown-item">3rd level</a></li>
  37. </ul>
  38. </li>
  39. <!-- End Level three -->
  40. <li><a href="#" class="dropdown-item">level 2</a></li>
  41. <li><a href="#" class="dropdown-item">level 2</a></li>
  42. </ul>
  43. </li>
  44. <!-- End Level two -->
  45. </ul>
  46. </li>
  47. </ul>
  48. <!-- SEARCH FORM -->
  49. <form class="form-inline ml-3">
  50. <div class="input-group input-group-sm">
  51. <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
  52. <div class="input-group-append">
  53. <button class="btn btn-navbar" type="submit">
  54. <i class="fas fa-search"></i>
  55. </button>
  56. </div>
  57. </div>
  58. </form>
  59. <!-- Right navbar links -->
  60. <ul class="navbar-nav ml-auto">
  61. <!-- Navbar Search -->
  62. <li class="nav-item">
  63. <a class="nav-link" data-widget="navbar-search" href="#" role="button">
  64. <i class="fas fa-search"></i>
  65. </a>
  66. <div class="navbar-search-block">
  67. <form class="form-inline">
  68. <div class="input-group input-group-sm">
  69. <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
  70. <div class="input-group-append">
  71. <button class="btn btn-navbar" type="submit">
  72. <i class="fas fa-search"></i>
  73. </button>
  74. <button class="btn btn-navbar" type="button" data-widget="navbar-search">
  75. <i class="fas fa-times"></i>
  76. </button>
  77. </div>
  78. </div>
  79. </form>
  80. </div>
  81. </li>
  82. <!-- Messages Dropdown Menu -->
  83. <li class="nav-item dropdown">
  84. <a class="nav-link" data-toggle="dropdown" href="#">
  85. <i class="far fa-comments"></i>
  86. <span class="badge badge-danger navbar-badge">3</span>
  87. </a>
  88. <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
  89. <a href="#" class="dropdown-item">
  90. <!-- Message Start -->
  91. <div class="media">
  92. <img src="<?=$assetDir?>/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
  93. <div class="media-body">
  94. <h3 class="dropdown-item-title">
  95. Brad Diesel
  96. <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
  97. </h3>
  98. <p class="text-sm">Call me whenever you can...</p>
  99. <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
  100. </div>
  101. </div>
  102. <!-- Message End -->
  103. </a>
  104. <div class="dropdown-divider"></div>
  105. <a href="#" class="dropdown-item">
  106. <!-- Message Start -->
  107. <div class="media">
  108. <img src="<?=$assetDir?>/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
  109. <div class="media-body">
  110. <h3 class="dropdown-item-title">
  111. John Pierce
  112. <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
  113. </h3>
  114. <p class="text-sm">I got your message bro</p>
  115. <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
  116. </div>
  117. </div>
  118. <!-- Message End -->
  119. </a>
  120. <div class="dropdown-divider"></div>
  121. <a href="#" class="dropdown-item">
  122. <!-- Message Start -->
  123. <div class="media">
  124. <img src="<?=$assetDir?>/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
  125. <div class="media-body">
  126. <h3 class="dropdown-item-title">
  127. Nora Silvester
  128. <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
  129. </h3>
  130. <p class="text-sm">The subject goes here</p>
  131. <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
  132. </div>
  133. </div>
  134. <!-- Message End -->
  135. </a>
  136. <div class="dropdown-divider"></div>
  137. <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
  138. </div>
  139. </li>
  140. <!-- Notifications Dropdown Menu -->
  141. <li class="nav-item dropdown">
  142. <a class="nav-link" data-toggle="dropdown" href="#">
  143. <i class="far fa-bell"></i>
  144. <span class="badge badge-warning navbar-badge">15</span>
  145. </a>
  146. <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
  147. <span class="dropdown-header">15 Notifications</span>
  148. <div class="dropdown-divider"></div>
  149. <a href="#" class="dropdown-item">
  150. <i class="fas fa-envelope mr-2"></i> 4 new messages
  151. <span class="float-right text-muted text-sm">3 mins</span>
  152. </a>
  153. <div class="dropdown-divider"></div>
  154. <a href="#" class="dropdown-item">
  155. <i class="fas fa-users mr-2"></i> 8 friend requests
  156. <span class="float-right text-muted text-sm">12 hours</span>
  157. </a>
  158. <div class="dropdown-divider"></div>
  159. <a href="#" class="dropdown-item">
  160. <i class="fas fa-file mr-2"></i> 3 new reports
  161. <span class="float-right text-muted text-sm">2 days</span>
  162. </a>
  163. <div class="dropdown-divider"></div>
  164. <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
  165. </div>
  166. </li>
  167. <li class="nav-item">
  168. <?= Html::a('<i class="fas fa-sign-out-alt"></i>', ['/site/logout'], ['data-method' => 'post', 'class' => 'nav-link']) ?>
  169. </li>
  170. <li class="nav-item">
  171. <a class="nav-link" data-widget="fullscreen" href="#" role="button">
  172. <i class="fas fa-expand-arrows-alt"></i>
  173. </a>
  174. </li>
  175. <li class="nav-item">
  176. <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
  177. <i class="fas fa-th-large"></i>
  178. </a>
  179. </li>
  180. </ul>
  181. </nav>
  182. <!-- /.navbar -->