topbar.tpl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!-- Topbar -->
  2. {% if show_toolbar == 1 %}
  3. <nav id="toolbar-admin" class="navbar navbar-inverse navbar-fixed-top">
  4. <div class="container-fluid">
  5. <div class="navbar-header">
  6. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#toolbar">
  7. <span class="sr-only">Toggle navigation</span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. </button>
  12. <a class="navbar-brand" href="{{ _p.web }}">
  13. {{ "siteName" | get_setting }}
  14. </a>
  15. </div>
  16. {% if _u.logged %}
  17. <div class="collapse navbar-collapse" id="toolbar">
  18. <ul class="nav navbar-nav">
  19. <li class="active"><a href="{{ _p.web }}user_portal.php"> {{ "MyCourses"|get_lang }}</a></li>
  20. {#
  21. <li class="dropdown">
  22. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{'Teaching'|get_lang }}<b class="caret"></b></a>
  23. <ul class="dropdown-menu">
  24. <li><a href="{{ _p.web_main }}create_course/add_course.php">{{ "AddCourse"|get_lang }}</a></li>
  25. <li><a href="{{ _p.web_main }}auth/courses.php">{{ "Catalog"|get_lang }}</a></li>
  26. </ul>
  27. </li>
  28. #}
  29. <li class="dropdown">
  30. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{'Tracking'|get_lang }}<b class="caret"></b></a>
  31. <ul class="dropdown-menu">
  32. <li><a href="{{ _p.web_main }}mySpace/">{{ "CoursesReporting"|get_lang }}</a></li>
  33. <li><a href="{{ _p.web_main }}mySpace/index.php?view=admin">{{ "AdminReports"|get_lang }}</a></li>
  34. <li><a href="{{ _p.web_main }}tracking/exams.php">{{ "ExamsReporting"|get_lang }}</a></li>
  35. <li class="divider"></li>
  36. <li><a href="{{ _p.web_main }}dashboard/">{{ "Dashboard"|get_lang }}</a></li>
  37. </ul>
  38. </li>
  39. {% if _u.is_admin == 1 %}
  40. <li class="dropdown">
  41. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{'Administration'|get_lang }}<b class="caret"></b></a>
  42. <ul class="dropdown-menu">
  43. <li><a href="{{ _p.web_main }}admin/">{{ "Home"|get_lang }}</a></li>
  44. <li><a href="{{ _p.web_main }}admin/user_list.php">{{ "UserList"|get_lang }}</a></li>
  45. <li><a href="{{ _p.web_main }}admin/course_list.php">{{ "CourseList"|get_lang }}</a></li>
  46. <li><a href="{{ _p.web_main }}session/session_list.php">{{ "SessionList"|get_lang }}</a></li>
  47. <li class="divider"></li>
  48. <li><a href="{{ _p.web_main }}admin/settings.php">{{ "Settings"|get_lang }}</a></li>
  49. <li class="divider"></li>
  50. <li><a href="{{ _p.web_main }}admin/settings.php?category=Plugins">{{ "Plugins"|get_lang }}</a></li>
  51. <li><a href="{{ _p.web_main }}admin/settings.php?category=Regions">{{ "Regions"|get_lang }}</a></li>
  52. </ul>
  53. </li>
  54. <li class="dropdown">
  55. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ 'Add'|get_lang }}<b class="caret"></b></a>
  56. <ul class="dropdown-menu">
  57. <li><a href="{{ _p.web_main }}admin/user_add.php">{{ "User"|get_lang }}</a></li>
  58. <li><a href="{{ _p.web_main }}admin/course_add.php">{{ "Course"|get_lang }}</a></li>
  59. <li><a href="{{ _p.web_main }}session/session_add.php">{{ "Session"|get_lang }}</a></li>
  60. </ul>
  61. </li>
  62. {% endif %}
  63. </ul>
  64. {% if _u.is_admin == 1 %}
  65. <form class="navbar-form navbar-left" role="search" action="{{ _p.web_main }}admin/user_list.php" method="get">
  66. <input type="text" class="form-control" placeholder="{{'SearchUsers'|get_lang }}" name="keyword">
  67. </form>
  68. {% endif %}
  69. <ul class="nav navbar-nav navbar-right">
  70. <li><a href="{{ _p.web_main }}social/home.php"><img src="{{ _u.avatar_small }}"/></a></li>
  71. <li class="dropdown">
  72. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ _u.complete_name }}<b class="caret"></b></a>
  73. <ul class="dropdown-menu">
  74. <li><a href="{{ _p.web_main }}social/home.php">{{ "Profile"|get_lang }}</a></li>
  75. <li><a href="{{ _p.web_main }}calendar/agenda_js.php?type=personal">{{ "MyAgenda"|get_lang }}</a></li>
  76. <li><a href="{{ _p.web_main }}messages/inbox.php">{{ "Inbox"|get_lang }}</a></li>
  77. <li><a href="{{ _p.web_main }}auth/my_progress.php">{{ "MyReporting"|get_lang }}</a></li>
  78. <!--<li class="divider"></li>
  79. <li><a href="{{ _p.web_main }}social/invitations.php">{{ "PendingInvitations"|get_lang }}</a></li> -->
  80. </ul>
  81. </li>
  82. <li><a href="{{ _p.web }}index.php?logout=logout&uid={{_u.user_id}}">{{ "Logout"|get_lang }}</a></li>
  83. </ul>
  84. </div> <!-- /nav collapse -->
  85. {% endif %}
  86. </div> <!-- /container-->
  87. </nav><!-- /topbar -->
  88. {% endif %}