anlutro / php-menu Goto Github PK
View Code? Open in Web Editor NEWPHP Dynamic menu builder
License: MIT License
PHP Dynamic menu builder
License: MIT License
Bootstrap 4 is in beta so IMHO it's safe to assume they are not going to change classes by a lot (which was the case in the alphas.. blegh).
Maybe I can see about making a bootstrap 4 renderer, if so I will add a pull request.
Migration instructions are here:
https://getbootstrap.com/docs/4.0/migration/#navs (for li / a)
https://getbootstrap.com/docs/4.0/migration/#navbar (for the containers and uls)
Classname is different as phpunit is namespaced now. Will submit a pull request.
Also, I saw some minor issues in IDE's that I can solve with extra phpdoc markup.
Can be implemented by simply adding headers at the appropriate locations, or by organizing menu items into groups with an optional header. The latter is more complex but will make it possible to not render a header if the header has no items associated with it.
What would be a sufficient database structure to store a menu in that could b easily converted to this? I am building a site where I want administrators to be able to modify menu navigation without have to code.
I love what is available currently.
Find a way to make dividers smart - i.e. they only get rendered if there are items both before and after it, and the first item before/after is not another divider.
One possible way to implement this is to create menu item "groups", which are imploded/joined with a divider.
Add serializer classes that allow you to easily store menus as JSON or in a database.
It looks like I cannot specify a link to the Parent item of a submenu.
My parent submenu item's link is: /order#
I want to specify this link
Can I do this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.