1. Go to this page and download the library: Download loic-sharma/menu library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// Filter all the menus.
$factory->addFilter(function($item)
{
// Remove any items that have the name 'Admin'
if($item->name == 'Admin')
{
$item->remove();
}
});
// Filter a specific menu.
$menu->addFilter(function($item)
{
// Modify the li elements.
$item->label->class = 'prettify';
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.