e107
e107 copied to clipboard
newforumpostsmenu update
Motivation and Context
Allow newforumposts_menu to be rendered in full page, as original code. Fixes issue #4322 and discussion #5337 And yes, you can force the output of menus in pages with the {MENU} shortcode in templates.
Description
Updated code
How Has This Been Tested?
It can now even allow in the same page to be shown as page and menu with diferent layouts options
Right side is a regular menu rendered in the menu area, the left side is a custom page with the same menu rendered via the {MENU} shortcode.
See example here
Types of Changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Performance enhancement (non-breaking change which improves efficiency)
- [ ] Code cleanup (non-breaking change which makes code smaller or more readable)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation (a change to man pages or other documentation)
Checklist
- [x] My code adheres to the e107 code style standard.
- [x] I have read the contributing document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests pass.