Skip to content

Releases: UCF/Section-Menus-Shortcode

v1.1.4

Choose a tag to compare

@jmbarne3 jmbarne3 released this 22 Mar 12:41
2c9030e

Enhancements:

  • Added composer file.

v1.1.3

Choose a tag to compare

@cjg89 cjg89 released this 27 Jan 17:26

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

Choose a tag to compare

@jmbarne3 jmbarne3 released this 14 Feb 14:24

Documentation:

  • Update the contributing doc.

v1.1.1

Choose a tag to compare

@cjg89 cjg89 released this 19 Jul 14:21

Enhancements:

  • Added a unique aria-label attribute to generated menu nav elements.
  • Removed redundant aria-label on 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-title data attribute on div, article, aside, and section elements, 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

Choose a tag to compare

@cjg89 cjg89 released this 11 Dec 17:57

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 adding rel attributes, 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.

v1.0.4

Choose a tag to compare

@jmbarne3 jmbarne3 released this 10 Dec 14:56
d2ebe9f

Bug Fix:

  • Updated mobile menu to close when menu item is clicked

v1.0.3

Choose a tag to compare

@jmbarne3 jmbarne3 released this 10 Dec 14:56

Enhancements:

  • Added affix offset calculations that account for the UCF Header

Bug Fixes:

  • Added fix for "jump" when the navbar affixes
  • Fixed bug where two nav links could be highlighted at the same time

v1.0.2

Choose a tag to compare

@cjg89 cjg89 released this 21 Jul 13:08

Changes in v1.0.2:

  • Added "Skip to Section" text to the mobile nav toggle button for clarity
  • Fixed minor PHP notice