Releases: UCF/Section-Menus-Shortcode
Release list
v1.1.4
v1.1.3
Enhancements:
- Added late enqueuing to frontend plugin JS, so only pages that use a section menu will load the relevant JS file
- Added a baseline min-height to the section menu wrapper element to help reduce content shift on page load
- Improved affixing offset calculations to better account for when the UCF Header loads in and is visible
- Added missing version number cache-busting to enqueued assets
- Cleaned up some constant names + their values for consistency with our other plugins
- Upgraded packages
v1.1.2
v1.1.1
Enhancements:
- Added a unique
aria-labelattribute to generated menunavelements. - Removed redundant
aria-labelon generated menu toggler buttons. - Added linter configs and Github issue templates, upgraded packages, and added more information about using and contributing to this project in our CONTRIBUTING doc and new wiki.
Bug Fixes:
- Added KSES filter overrides to support the
data-section-link-titledata attribute ondiv,article,aside, andsectionelements, to help prevent this attribute from being wiped out by non-administrators when editing or saving posts and pages using it on versions of WordPress prior to 5.0.
v1.1.0
Enhancements:
-
Added the ability to manually define section menu links instead of them being generated automatically via JavaScript.
The new
[section-menu-item]allows you to define a link within a section menu. Links can be internal page anchors or external links. Parameters are available for addingrelattributes, adjusting CSS classes on the generated<li>and<a>elements, and to open the generated link in a new window.Example:
[section-menu] [section-menu-item href="#some-section"]Page Section Link[/section-menu-item] [section-menu-item a_class="..." li_class="..." href="https://www.ucf.edu/" rel="nofollow" new_window="true"]External Link[/section-menu-item] [/section-menu]Manually-defined link items will only take effect if at least one valid inner
[section-menu-item]shortcode is present within an enclosing[section-menu][/section-menu]shortcode. Otherwise, links will still be generated automatically based on existing sections on the page.
Bug Fixes:
- Fixed issue where empty section menus would still be visible at smaller screen sizes.