Browse Source

#7 Now custom admin-side nav elements can be added

merge-requests/2/head
Mike Koch 8 years ago
parent
commit
1544114ac3
  1. 22
      inc/custom/show_admin_nav-custom.inc.php
  2. 2
      inc/show_admin_nav.inc.php

22
inc/custom/show_admin_nav-custom.inc.php

@ -0,0 +1,22 @@
<!-- Here you can insert additional links and dropdowns to the top navigation bar on the staff side of the help desk. You can insert anything you like.
Some example code has been included below, and is commented out so it will not appear on the page. It is recommended to copy & paste the code you
want to use so you still have the samples included. You can use PHP code as well, by using the <?php //and ?> tags
If you want to limit certain links to certain staff members, this is beyond the scope of support. However, looking at show_admin_nav.inc.php is a good
place to start :)
-->
<!-- Use this block of code for a single link (such as the "Home" link) -->
<li><a href="link_here">Text to Display</a></li>
<!-- Use this block of code for a dropdown menu (such as the "ticket" dropdown) -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown Text<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Text to Display</a></li>
<li><a href="#">Text to Display</a></li>
</ul>
</li>

2
inc/show_admin_nav.inc.php

@ -70,8 +70,8 @@ $num_mail = hesk_checkNewMail();
echo '</span>';
} ?>
</a></li>
<?php include('custom/show_admin_nav-custom.inc.php'); ?>
<li><a href="index.php?a=logout&amp;token=<?php echo hesk_token_echo(); ?>"><?php echo $hesklang['logout']; ?></a></li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
Loading…
Cancel
Save