Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic navbar generator. HTML and Bootstrap v3 options #5

Merged
merged 1 commit into from Sep 11, 2015
Merged

Add basic navbar generator. HTML and Bootstrap v3 options #5

merged 1 commit into from Sep 11, 2015

Conversation

ericfernance
Copy link
Contributor

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 the access_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.

hanspolo added a commit that referenced this pull request Sep 11, 2015
Add basic navbar generator.  HTML and Bootstrap v3 options
@hanspolo hanspolo merged commit 5bd67a7 into hanspolo:master Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants