Release 2.1.4
Videos inside a modal no longer continue playing after the modal is closed.
View full changelog
Fixed
- Fixed a bug where videos inside a modal continued playing after the modal was closed
Project releases
Videos inside a modal no longer continue playing after the modal is closed.
data-src instead of src attributeModal margins now use CSS variables and default width is set to 100%.
elements-partials-modal: use CSS variables for modal margins and default the modal width to 100%.Fixes script replacement and iframe attribute handling issues.
PrepareLazyContent logic broke scripts by replacing code like iframe.src = '' inside <script> tags with iframe.data-airfleet-src = "".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.Updated lazy loading attributes and implemented a two-layer system to prevent duplicate content loading and initialization race conditions.
data-airfleet-src and data-airfleet-type attributes instead of data-src and data-type for consistency with global lazy loading systemloading='lazy' and theme-level layer using global types when delay_scripts option is enabledAdds Airfleet Framework plugin dependency and removes scoped framework composer package
Requires Plugins metadata field)@airfleet/wordpress-dev to ^4.0.0airfleet/wordpress-dev to ^4.0.0Lazy-load toggle added to modals for scripts and iframes, with loading triggered by event airfleet-modal-show-request.
airfleet-modal-show-request is received.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.airfleet/elements/modals/content that allows modifying the content of each modal.Fixed a bug with calling airfleet_modals_priority() from the inc folder.
airfleet_modals_priority() from inc folder by including airfleet-elements-modals-api.php earlier in the airfleet-elements-modals.php fileAdded a filter to customize the priority of modal rendering in wp_footer
airfleet/elements/modals/priority to customize the priority of modal rendering in wp_footer (default: 20)Updated modal style class logic for improved styling flexibility and consistency.
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.Updated components to add support for airfleet/elements/empty/$slug filter
airfleet/elements/empty/$slug filterPrevents modals from closing when clicking their contents.
elements-partials-modal: prevents modal from closing on click of its contentsAdded Airfleet tabs to button modal and removed responsive options from form submit modal.
elements-components-button-modal: added Airfleet tabselements-components-form-submit-modal from having responsive optionsAdded default_style property to elements-components-button-modal
elements-components-button-modal: Added default_style propertyAdded placeholder display and preview controls for button modals in the editor.
elements-components-button-modal: show placeholder in editor when emptyelements-components-button-modal: added properties show_preview and preview_text to control placeholderelements-components-button-modal: only load script for frontendAdded JS event to request modal closure and updated default style for modals.
airfleet-modal-close-request (request a modal to close)elements-partials-modal-close-button (button to close modal)elements-partials-modal-close-button-content (content for modal close button - defaults to close icon SVG)elements-partials-modal: updated default style and added CSS variableselements-partials-modal: include partial elements-partials-modal-close-buttonelements-components-form-submit-modal: script now only initializes on dom readyelements-partials-modal: fixed JS event airfleet-modal-shown not firingAdded missing modal style field to button modal component
elements-components-button-modal: added missing modal style fieldAdded a new submit action for the elements-components-form-submit-modal modal.
elements-components-form-submit-modal submit action (show modal action)Added support for modals, including display and styling options.
afe_modal (manage modals)elements-partials-modal (display a modal)elements-components-button-modal (display a button to open a modal)airfleet/elements/modals (set list of modals that will display on the page)airfleet/elements/modals/styles (set the style options)airfleet_modals (get list of modals that will display on the page)airfleet_modals_add (register a modal to display on the page)airfleet_modals_styles (get modals style options)airfleet-modal-show-request (request a modal to show)airfleet-modal-shown (fired after modal is open)airfleet-modal-closed (fired after modal is open)