Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: timestamp getters for PostObjectInterface #1283

Merged

Conversation

thorbrink
Copy link
Contributor

@thorbrink thorbrink commented Jan 23, 2025

This pull request includes several changes across multiple files, primarily focusing on adding and testing date handling functionality and enhancing post object decorators. The most important changes include the addition of a method to format dates to Unix timestamps, updates to post object decorators to include published and modified times, and corresponding tests for these functionalities.

Date Handling Enhancements:

Post Object Decorators Enhancements:

  • library/PostObject/Decorators/BackwardsCompatiblePostObject.php, library/PostObject/Decorators/IconResolvingPostObject.php, library/PostObject/Decorators/PostObjectFromOtherBlog.php, library/PostObject/Decorators/PostObjectFromWpPost.php, library/PostObject/Decorators/PostObjectWithSeoRedirect.php: Added getPublishedTime and getModifiedTime methods to various post object decorators. [1] [2] [3] [4] [5]

Post Object Interface and Implementation:

  • library/PostObject/PostObject.php, library/PostObject/PostObjectInterface.php: Added getPublishedTime and getModifiedTime methods to the post object interface and its implementation. [1] [2]

Blade Template Updates:

@thorbrink thorbrink merged commit b32b465 into main Jan 28, 2025
7 of 9 checks passed
@thorbrink thorbrink deleted the feature/Addera-PostObjectInterfacegetTimestamp-CU-8697mj7dy branch January 28, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants