I need two different menu item styles on the same web page.
On one menu, I need the icons to appear on the left, and the other menu, I need the icons to appear on the right.
The attached patch allows this. For example, you can have 3 different templates in your theme:
menu-icons-css-item.tpl.php - general
menu-icons-css-item--menu-the-second-menu.tpl.php
menu-icons-css-item--menu-the-third-menu.tpl.php
Each styling the icons differently.
I also changed the default template name to menu-icons-css-item rather than menu_icons_css_item - because the dash style menu-icons-css-item appears to be standard practice now, and was actually required for the theme 'pattern' to work properly.
See the attached patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | menu_icons-allow_template_overrides_per_menu-1724432.patch | 2.85 KB | willieseabrook |
Comments
Comment #1
willieseabrook commentedComment #2
acrollet commentedthanks much for the contribution! Unfortunately, the codebase has changed enough to make this patch not apply cleanly - could you re-roll against the latest git checkout?