Releases: timber/timber
Releases · timber/timber
Dates and loading options
- Dates now use date_i18n filter (thanks @aMoniker)
- The twig |date filter now defaults to your WP Admin settings (thanks @aMoniker)
- You can send Timber::$dirname an array to specify multiple locations of twig files within a theme
- Load views from anywhere on the server (thanks @th3fallen)
- Load twig files from anywhere on the server using an absolute path
- Use another version of Twig if you have it loaded (thanks @michaelbutler)
- more tests!
Image, Transient and Helper improvements
- BREAKING CHANGE ALERT wp_title no longer appends bloginfo('name') to end of string (thanks @aduth)
- BREAKING CHANGE ALERT get_preview now respects tag (thanks @jnweaver)
- TimberHelper::transient is more reliable (thanks @mgmartel)
- Secure urls in TimberImage if current page is served over SSL (thanks @mgmartel)
- Re-wrote most of letterboxing functionality
- Re-organized Helper functions
Misc improvements to images, router and other bugs
- TimberPost::children() now sorts by menu_order, title as WordPress core does (thanks @aduth)
- Fixed an occaisonal warning (thanks @matthewsoares)
- TimberImage::alt() now returns your image's alt tag info from WordPress (thanks @jnweaver)
- In the router, non-404 headers are forced asap (thanks @mgmartel)
- Router now accepts + signs in paths
Crop control when resizing
- Now you can resize/crop images with positional preferences, thanks @mmikkel. Here are the docs: https://github.com/jarednova/timber/wiki/TimberImage#resize
- Removed the Timber Starter Guide from the admin, a link to the GitHub wiki suffices.
0.16.8
- You can now retrieve prev/next posts within the same category (post.next('category').title, etc.). (thanks @slimndap)
- Fixed issue with letterboxing images when WP is installed in a subdirectory ( @wesrice)
- Fix for images stored inside custom content path (@mmikkel)
- Cleaned-up some things in Timber Starter theme (@southernfriedbb, @jarednova)
0.16.6
- Router plays nice with installs in subdirectories (thanks @TerminalPixel)
- ACF Timber now initializes on Init (thanks @zerek)
- Composer is updated (thanks @Rarst)
- $autoescape bug fixed (thanks @parisholley)
- You can now select a term ID from a specific taxonomy (thanks @mgmartel)
- added stripshortcodes filter
- TimberMenuItems now have is_external method
- Other misc bugs
print_a and bug fix
- Fixed a bug in TimberPost::content() that was generating a warning
- Restoring
print_a
filter, which prints out both the properties (likeprint_r
) and values for public methods that don't require arguments
More Misc Bugs, Post Pagination
Misc fixes, width/height for images
- Added width, height and aspect methods for TimberImages
- Timber::pagination can now accept a single integer as the overall "size" argument (for the total number of pages that get shown)
- TimberPost->class (usage:
<article class="{{post.class}}"
>) will now show you the products of post_class - Sanity checks for ACF (thanks @parisholley)
- Fixed bug in TimberPost::prev and TimberPost::next that could return draft posts (thanks @slimndap)
- Fixed bug with extra ellipsis in some previews (thanks @parisholley)