Municipio 5.0.2
Version 5.0.2 is a patchrelease for version 5.0.1, fixing some minor issues that has been identified since the last release.
Municipio Theme (5.129.4)
- Bugfix: Refined how timestamps are fetched in archives.
- Bugfix: Refined how timestamps are fetched in singular pages.
- Bugfix: Fixed ordering issues for posts with identical date-time values by adding an additional ORDER BY ID to date queries.
- Chore: Adds a template & instructions for generating feature documentation with a LLM.
- Bugfix: Resolves some issues with mobile adaption of collapisble search view.
* Due to the overhaul of dates; event may have to be adjusted to your preference since datebadge has been hardcoded for this posttype in some locations.
Modularity (6.67.4)
- Feature: Removed the option to specify the source of the post date. It will now automatically match the archive view setting from Municipio.
-
Posts Module Enhancements:
- Improved handling of sticky posts and pagination in
GetPosts.php
, addressing potential issues with post counts and page limits. Sticky posts are now correctly merged and sorted. - Refactored post preparation and data handling in
Posts.php
andAbstractController.php
, including adding sticky post data and default values for post objects. Highlighting logic was moved to a dedicated method. - Updated template controllers (
ExpandableListTemplate.php
,ListTemplate.php
) and views (features-grid.blade.php
,grid.blade.php
,index.blade.php
,news.blade.php
,segment.blade.php
) to use the new post data structure and handle sticky posts correctly. Addeddata-js-item-id
andattributeList
to post elements for better tracking and extensibility. - Modified partials (
box.blade.php
,collection-item.blade.php
,news-item.blade.php
) to utilize the updated post data and attributes. - Module is now resolving event timestamps correctly. If multiple occasions is resolved, the closest date in the future will be used. If the event is passed, the last will be used.
- Improved handling of sticky posts and pagination in
-
Search Module Update: Adjusted button styling in
search.blade.php
.
Styleguide (0.11.1220)
- Bugfix: Fix alignment in newsitems vertically.
Component Library (4.47.11)
-
Block Component Enhancements:
- Added support for date arrays and date badges in
Block.php
,block.blade.php
, andblock.json
. Ratio class added. Content check added.
- Added support for date arrays and date badges in
-
Card Component Enhancements:
- Added support for date arrays and date badges in
Card.php
andcard.json
. Addedhas-datebadge
class. - Updated date and date badge components in
components/date.blade.php
andcomponents/datebadge.blade.php
to handle date arrays.
- Added support for date arrays and date badges in
-
Date Component Overhaul:
- Completely refactored the
Date
component (Date.php
,date.blade.php
) for improved date handling, formatting, and time since/until calculations. IntroducedDateFormatter
,TimeSinceFormatter
, andDateConfig
classes for better organization and maintainability. Added error handling for invalid dates. Supports nowLabel, timeNowCap, date format setting. - Added
DateConfig.php
to handle date formatting configuration. - Added
DateFormatter.php
to handle localized date formatting. - Added
TimeSinceFormatter.php
to handle time since calculations.
- Completely refactored the
-
News Item Component Enhancements:
- Added support for date arrays in
NewsItem.php
andnewsItem.json
. Added standing class. - Updated date partial in
partials/date.blade.php
to handle date arrays.
- Added support for date arrays in
-
Type Hinting Error Handling: Improved error handling for type hinting issues in
Register.php
, excludinglang
from the check.
Algolia Index (3.2.1)
- A patch has been implemented to correctly remove inline content in <style> and <script> tags from indexed content markup.