Skip to content

Commit

Permalink
Merge branch 'master' into TMS-1058
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed Aug 20, 2024
2 parents 2e6e177 + a7e4b3d commit 3311281
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- TMS-1058: Remove text-decoration & decrease font-size for single-post h1-heading

## [1.14.0] - 2024-06-17

- TMS-1054: Remove hero overlay-toggle from single page editor

## [1.13.0] - 2024-06-17

- TMS-1045: Style changes:
Expand Down
42 changes: 42 additions & 0 deletions lib/ACF/AlterPageSettingsFields.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
use TMS\Theme\Base\Logger;

/**
* Alter Page settings -fields
*/
class AlterPageSettingsFields {

/**
* Constructor
*/
public function __construct() {
\add_filter(
'tms/acf/group/fg_page_settings',
[ $this, 'remove_hero_overlay_setting' ],
100
);
}


/**
* Remove overlay TrueFalse-field from page settings
*
* @param Field\Group $group Group-object of settings.
*
* @return array
*/
public function remove_hero_overlay_setting( $group ) {
try {
if ( $group->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() );
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3311281

Please sign in to comment.