From 2f4b8de07bbd1238099badc041dd2b8b3e3a22c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 24 Jun 2024 10:37:16 +0300 Subject: [PATCH 1/3] TMS-1054: Remove hero overlay-toggle from single page editor --- CHANGELOG.MD | 2 ++ lib/ACF/AlterPageSettingsFields.php | 42 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 lib/ACF/AlterPageSettingsFields.php diff --git a/CHANGELOG.MD b/CHANGELOG.MD index a9d5bae..c241730 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-1054: Remove hero overlay-toggle from single page editor + ## [1.13.0] - 2024-06-17 - TMS-1045: Style changes: diff --git a/lib/ACF/AlterPageSettingsFields.php b/lib/ACF/AlterPageSettingsFields.php new file mode 100644 index 0000000..95cd9b6 --- /dev/null +++ b/lib/ACF/AlterPageSettingsFields.php @@ -0,0 +1,42 @@ +get_key() === 'fg_page_settings' ) { + $group->remove_field( 'fg_page_settings_remove_overlay' ); + } + } + catch ( Exception $e ) { + ( new Logger() )->error( $e->getMessage(), $e->getTrace() ); + } + + return $group; + } +} + +( new AlterPageSettingsFields() ); From 48141920e721a907162a7aa7f09c00a05e1833e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 24 Jun 2024 11:26:30 +0300 Subject: [PATCH 2/3] TMS-1054: Param comment fix --- lib/ACF/AlterPageSettingsFields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ACF/AlterPageSettingsFields.php b/lib/ACF/AlterPageSettingsFields.php index 95cd9b6..7a4c503 100644 --- a/lib/ACF/AlterPageSettingsFields.php +++ b/lib/ACF/AlterPageSettingsFields.php @@ -21,7 +21,7 @@ public function __construct() { /** * Remove overlay TrueFalse-field from page settings * - * @param Field\Group[] $fields Array of settings. + * @param Field\Group $group Group-object of settings. * * @return array */ From a7e4b3d67cc92bfe09e3efed30e2a235356b6a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Tue, 25 Jun 2024 20:08:51 +0300 Subject: [PATCH 3/3] 1.14.0 --- CHANGELOG.MD | 2 ++ style.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index c241730..4f1dd47 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.14.0] - 2024-06-17 + - TMS-1054: Remove hero overlay-toggle from single page editor ## [1.13.0] - 2024-06-17 diff --git a/style.css b/style.css index b6ac351..ec9b6b1 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* * Theme Name: TMS Theme Filharmonia * Description: Tampere Multisite Filharmonia Theme - * Version: 1.13.0 + * Version: 1.14.0 * Author: Geniem * Author URI: https://geniem.fi * Template: tms-theme-base