From 47b6cd933ad525b40b3dc29264e7b40d09ba865e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Tue, 20 Aug 2024 15:46:08 +0300 Subject: [PATCH 1/2] 1.58.0 --- CHANGELOG.MD | 2 ++ style.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 0f8b5b59..2e22acf2 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.58.0] - 2024-08-21 + - TMS-1057: Increase articles lead-text font-size ## [1.57.0] - 2024-06-26 diff --git a/style.css b/style.css index 28d7902f..fd3902e9 100644 --- a/style.css +++ b/style.css @@ -2,7 +2,7 @@ * Theme Name: TMS Theme Base * Description: Tampere Multisite Base Theme * Domain Path: /lang - * Version: 1.57.0 + * Version: 1.58.0 * Author: Geniem * Author URI: https://geniem.fi * Text Domain: tms-theme-base From 0b13611bf1032f4b73e6aa28f9ecc875967d5683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Tue, 27 Aug 2024 09:45:47 +0300 Subject: [PATCH 2/2] TMS-1061: Change hero video-field from URL to File --- CHANGELOG.MD | 2 ++ lib/ACF/Fields/HeroFields.php | 6 +++--- partials/layouts/layout-hero.dust | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 2e22acf2..51329485 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-1061: Change hero video-field from URL to File, since the URL wasn't working + ## [1.58.0] - 2024-08-21 - TMS-1057: Increase articles lead-text font-size diff --git a/lib/ACF/Fields/HeroFields.php b/lib/ACF/Fields/HeroFields.php index 7b775c67..8903ba3d 100644 --- a/lib/ACF/Fields/HeroFields.php +++ b/lib/ACF/Fields/HeroFields.php @@ -80,9 +80,9 @@ protected function sub_fields() : array { ->set_wrapper_width( 50 ) ->set_instructions( $strings['image']['instructions'] ); - $video_field = ( new Field\URL( $strings['video']['label'] ) ) - ->set_key( "${key}_video" ) - ->set_name( 'video' ) + $video_field = ( new Field\File( $strings['video']['label'] ) ) + ->set_key( "${key}_video_file" ) + ->set_name( 'video_file' ) ->set_wrapper_width( 50 ) ->set_instructions( $strings['video']['instructions'] ); diff --git a/partials/layouts/layout-hero.dust b/partials/layouts/layout-hero.dust index ed533fbe..58cc67c3 100644 --- a/partials/layouts/layout-hero.dust +++ b/partials/layouts/layout-hero.dust @@ -4,9 +4,9 @@
{/use_overlay} - {?video} + {?video_file} - {/video} + {/video_file}