airfleet/airfleet-elements-modals-plugin

Project releases

airfleet-elements-modals-plugin

Release 2.1.4

Videos inside a modal no longer continue playing after the modal is closed.

GitHub
View full changelog

Fixed

  • Fixed a bug where videos inside a modal continued playing after the modal was closed
airfleet-elements-modals-plugin

Release 2.1.3

Fixes iframe source attribute handling in modals

GitHub
View full changelog

Fixed

  • Fixed a bug when iframe to the modal would come already with a data-src instead of src attribute
airfleet-elements-modals-plugin

Release 2.1.2

Modal margins now use CSS variables and default width is set to 100%.

GitHub
View full changelog

Fixed

  • elements-partials-modal: use CSS variables for modal margins and default the modal width to 100%.
airfleet-elements-modals-plugin

Release 2.1.1

Fixes script replacement and iframe attribute handling issues.

GitHub
View full changelog

Fixed

  • Fixed a bug where the PrepareLazyContent logic broke scripts by replacing code like iframe.src = '' inside <script> tags with iframe.data-airfleet-src = "".
  • Fixed an issue where LazyLoader didn't remove the type attribute from iframes unless they had a data-airfleet-src, so iframes with just a data-backup attribute were left incorrect.
airfleet-elements-modals-plugin

Release 2.1.0

Updated lazy loading attributes and implemented a two-layer system to prevent duplicate content loading and initialization race conditions.

GitHub
View full changelog

Changed

  • Use data-airfleet-src and data-airfleet-type attributes instead of data-src and data-type for consistency with global lazy loading system
  • Implemented two-layer lazy loading system: plugin-specific layer using modal-specific types when loading='lazy' and theme-level layer using global types when delay_scripts option is enabled
  • Updated modal component to load lazy content before showing modal instead of on initialization

Fixed

  • Fixed duplicate lazy content loading by adding WeakSet tracking in modal component
  • Ensure modal components depend on modal partial scripts, preventing initialization race conditions
airfleet-elements-modals-plugin

Release 2.0.0

Adds Airfleet Framework plugin dependency and removes scoped framework composer package

GitHub
View full changelog

Changed

  • Breaking: Added new dependency - Airfleet Framework plugin - and removed scoped framework composer package
  • Added plugin dependencies in main plugin file (Requires Plugins metadata field)
  • Internal: Increased Node.js version requirement to >=24
  • Internal: Bump npm dependency @airfleet/wordpress-dev to ^4.0.0
  • Internal: Bump composer dependency airfleet/wordpress-dev to ^4.0.0
  • Internal: Switched package manager to Bun
  • Internal: Updated linters and development tools
  • Internal: Updated configuration for development tools
  • Internal: Moved configuration sections from package.json to dedicated config files
  • Internal: Updated browserslist configuration
  • Internal: Updated package.json scripts to use Airfleet CLI
  • Internal: Updated README.md to remove Getting Started and Documentation sections
  • Internal: Updated Plugin URI metadata field in main plugin file
  • Internal: Updated GitHub workflows
  • Internal: Added .airfleet-license and .airfleet-visible
airfleet-elements-modals-plugin

Release 1.2.0

Lazy-load toggle added to modals for scripts and iframes, with loading triggered by event airfleet-modal-show-request.

GitHub
View full changelog

Added

  • Added Lazy-load toggle to Modal posts. This adds lazy-loading capability to any modal post for scripts and iframes. Loading is triggered when event airfleet-modal-show-request is received.
  • Added lazy loading capability to elements-components-form-submit-modal component. When loading state is passed to this component, any scripts and iframes within the modal content will be loaded as configured and passed from the form.
  • Added filter airfleet/elements/modals/content that allows modifying the content of each modal.
airfleet-elements-modals-plugin

Release 1.1.3

Fixed a bug with calling airfleet_modals_priority() from the inc folder.

GitHub
View full changelog

Fixed

  • Fixed calling airfleet_modals_priority() from inc folder by including airfleet-elements-modals-api.php earlier in the airfleet-elements-modals.php file
airfleet-elements-modals-plugin

Release 1.1.2

Added a filter to customize the priority of modal rendering in wp_footer

GitHub
View full changelog

Added

  • Added filter airfleet/elements/modals/priority to customize the priority of modal rendering in wp_footer (default: 20)
airfleet-elements-modals-plugin

Release 1.1.1

Updated modal style class logic for improved styling flexibility and consistency.

GitHub
View full changelog

Changed

  • elements-partials-modal: Updated the modal style class logic to include an additional BEM-style modifier class (--style-*) alongside the existing __style-* class. This enhances styling flexibility and improves consistency with BEM naming conventions.
airfleet-elements-modals-plugin

Release 1.1.0

Updated components to add support for airfleet/elements/empty/$slug filter

GitHub
View full changelog

Changed

  • Updated components to add support for airfleet/elements/empty/$slug filter
airfleet-elements-modals-plugin

Release 1.0.1

Prevents modals from closing when clicking their contents.

GitHub
View full changelog

Fixed

  • elements-partials-modal: prevents modal from closing on click of its contents
airfleet-elements-modals-plugin

Release 1.0.0

Added Airfleet tabs to button modal and removed responsive options from form submit modal.

GitHub
View full changelog

Changed

  • elements-components-button-modal: added Airfleet tabs
  • Excluded elements-components-form-submit-modal from having responsive options
airfleet-elements-modals-plugin

Release 0.6.0

Added default_style property to elements-components-button-modal

GitHub
View full changelog

Added

  • elements-components-button-modal: Added default_style property
airfleet-elements-modals-plugin

Release 0.5.0

Added placeholder display and preview controls for button modals in the editor.

GitHub
View full changelog

Changed

  • elements-components-button-modal: show placeholder in editor when empty
  • elements-components-button-modal: added properties show_preview and preview_text to control placeholder
  • elements-components-button-modal: only load script for frontend
airfleet-elements-modals-plugin

Release 0.4.0

Added JS event to request modal closure and updated default style for modals.

GitHub
View full changelog

Added

  • Added JS event airfleet-modal-close-request (request a modal to close)
  • Added partial elements-partials-modal-close-button (button to close modal)
  • Added partial elements-partials-modal-close-button-content (content for modal close button - defaults to close icon SVG)

Changed

  • elements-partials-modal: updated default style and added CSS variables
  • elements-partials-modal: include partial elements-partials-modal-close-button

Fixed

  • elements-components-form-submit-modal: script now only initializes on dom ready
  • elements-partials-modal: fixed JS event airfleet-modal-shown not firing
airfleet-elements-modals-plugin

Release 0.3.1

Added missing modal style field to button modal component

GitHub
View full changelog

Fixed

  • elements-components-button-modal: added missing modal style field
airfleet-elements-modals-plugin

Release 0.3.0

Added a new submit action for the elements-components-form-submit-modal modal.

GitHub
View full changelog

Added

  • Added Modal elements-components-form-submit-modal submit action (show modal action)
airfleet-elements-modals-plugin

Release 0.2.0

Added support for modals, including display and styling options.

GitHub
View full changelog

Added

  • Added post type afe_modal (manage modals)
  • Added partial elements-partials-modal (display a modal)
  • Added component elements-components-button-modal (display a button to open a modal)
  • Added filter airfleet/elements/modals (set list of modals that will display on the page)
  • Added filter airfleet/elements/modals/styles (set the style options)
  • Added PHP function airfleet_modals (get list of modals that will display on the page)
  • Added PHP function airfleet_modals_add (register a modal to display on the page)
  • Added PHP function airfleet_modals_styles (get modals style options)
  • Added JS event airfleet-modal-show-request (request a modal to show)
  • Added JS event airfleet-modal-shown (fired after modal is open)
  • Added JS event airfleet-modal-closed (fired after modal is open)