2023-W26

Jun 26–Jul 2, 2023

3 releases

This week's releases focused on enhancing the Airfleet ecosystem with new features. The airfleet-views-plugin introduced functionality to register and render views, including setup, controllers, templates, and filters. Additionally, a Strings helper was added to the WordPress framework for case conversions. Finally, the GitHub files sync was updated to include the airfleet-views-plugin. These updates aim to improve the overall user experience and expand the capabilities of Airfleet plugins.

airfleet-views-plugin

Release 0.1.0

Added functionality to register and render views, including setup, controllers, templates, and filters.

GitHub
View full changelog

Added

  • Added filter "airfleet/views/config" for registering views configurations from plugins/theme
  • Added Setup functionality for views: create class ViewNameSetup.php in view folder and extend from Airfleet\Plugins\Views\View\ViewSetup
  • Added Controller functionality for views: create class ViewNameController.php in view folder and extend from Airfleet\Plugins\Views\View\ViewController
  • Added Template functionality for views: create file view-name.php in view folder and render it how you want (context will be available as variables in the template)
  • Added function airfleet_views_render( string $slug, $data = [] ) to render a view
  • Added view helper $_ctrl to access view Controller
  • Added view helper $_dump( ...$vars ) to dump variable information
  • Added view helper $_val( $key, $default ) to get a data variable or return the default value
  • Added action "airfleet/views/setup" - runs after views are registered
  • Added action "airfleet/views/render/{$slug}" - trigger rendering for a specific view
  • Added action "airfleet/views/template/render" - trigger rendering using a specific template
  • Added filter "airfleet/views" - filters all the registered views
  • Added filter "airfleet/views/{$type}" - filters the registered views of a specific type (e.g. partials, components, blocks)
  • Added filter "airfleet/views/template/{$slug}" - filters the template path for a specific view
  • Added filter "airfleet/views/context" - filters the context for all views
  • Added filter "airfleet/views/context/{$slug}" - filters the context for a specific view
  • Added filter "airfleet/views/setup/{$slug}" - filters the setup objects for a specific view
  • Added filter "airfleet/views/controller/{$slug}" - filters the controller class name for a specific view
airfleet-wordpress-framework-php

Release 0.4.0

Added a Strings helper for case conversions

GitHub
View full changelog

Added

  • Added Strings helper (Helpers\Strings) - convert between different cases
github-files

Release 0.1.20

Updated sync.yml to include the airfleet-views-plugin

GitHub
View full changelog

Changed

  • Updated sync.yml to add airfleet/airfleet-views-plugin