Add basic navbar generator. HTML and Bootstrap v3 options #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Mate,
I'm not sure if you wanted to add this into Burgers or whether you would prefer me just to bundle as a separate plugin. The only reason I thought of including in Burgers is that it uses the Burger's users and groups database tables.
This PR will add a new class to Burgers
\Nav
. This class will build a list of items, or if using\Nav::render('bootstrap')
will add the necessary classes to support Bootstrap style drop down menus.I use it with Bootstrap, hence the reason it's only Bootstrap at present.
When building the menu items to include, the Nav class checks the user's
groupId
is greater than or equal to theaccess_level
defined in the menus table. I didn't have huge amounts of flexibility in the column naming as I was writing code to suit an already defined and running database.It's up to you if you want to include it. It's pretty tightly linked to Burger's users and groups. I also thought it may complement some of the tools that are already there to help fatten up F3 a little.
Cheers,
Eric.