Closed gchtr closed 1 month ago
Ticket:
This pull request adds an img_class argument for the get_timber_image_responsive() function. It will add a CSS class for the fallback <img>.
img_class
get_timber_image_responsive()
<img>
PHP
<picture> <?php echo get_timber_picture_responsive( get_post_thumbnail_id(), 'custom-6', [ 'img_class' => 'the-class', ] ); ?> </picture>
Twig
<picture> {{ post.thumbnail|get_timber_picture_responsive('custom-6', { img_class: 'the-class', }) }} </picture>
Ticket:
67
This pull request adds an
img_class
argument for theget_timber_image_responsive()
function. It will add a CSS class for the fallback<img>
.PHP
Twig