Adding a navbar 🔧

We can add a navbar to a page using the following functions :

  • navbarStart() : This function will open the navbar.
  • navbarButton() : This function will add a button to the navbar.
  • navbarEnd() : This function will close the navbar.

Example

<?php
  navbarStart(); 
  navbarButton("Home", "/", "fa fa-home"); 
  navbarEnd(); 
?>

This line

navbarButton("Home", "/", "fa fa-home");

Will add a button which

  • has the text Home
  • has the link /
  • has the icon fa fa-home

The third argument is optional, it is the fontawesome icon that will be added to the button.


Loading...

This website needs javascript to be enabled