Navbar Buttons
Posted: 2024-09-06 15:53
I need 2 buttons in the navigation bar and i tried this code in header-extras:
Can someone please help me modify the code so that the buttons don't appear on the login page?
Thank you very much!
Code: Select all
<?php if(!defined('PREPEND_PATH')) define('PREPEND_PATH', ''); ?>
<script>
$j(function(){
$j('.navbar-header').prepend('<a class="btn navbar-btn btn-primary" style="margin-top: 10px; font-weight: bold;" href="<?php echo PREPEND_PATH; ?>hooks/calendar-kalender.php"><i class="glyphicon glyphicon-list"></i> Wiedervorlagen</a>');
$j('.navbar-header').prepend('<a class="btn navbar-btn btn-primary" style="margin-top: 10px; font-weight: bold;" href="<?php echo PREPEND_PATH; ?>employees_de_view.php"><i class="glyphicon glyphicon-user"></i> Mitarbeiter</a>');
});
</script>
Thank you very much!