topbar.tpl 6.1 KB

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