diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5577589..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..4324ce9 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,28 @@ +setRiskyAllowed(false) + ->setRules([ + '@auto' => true + ]) + // 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config + ->setFinder( + (new Finder()) + // 💡 root folder to check + ->in(__DIR__) + // 💡 additional files, eg bin entry file + // ->append([__DIR__.'/bin-entry-file']) + // 💡 folders to exclude, if any + // ->exclude([/* ... */]) + // 💡 path patterns to exclude, if any + // ->notPath([/* ... */]) + // 💡 extra configs + // ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode + // ->ignoreVCS(true) // true by default + ) +; diff --git a/oliveskspaces.theme b/oliveskspaces.theme index 801e1a7..7941e6f 100755 --- a/oliveskspaces.theme +++ b/oliveskspaces.theme @@ -698,33 +698,12 @@ function _oliveskspaces_hex_to_hsl(string $hex_string) { return [$h, $s, $l]; } -/* function oliveskspaces_preprocess_mirador(&$variables) { - $block = \Drupal::service('plugin.manager.block')->createInstance($viewer . 'mirador_block', [ - 'iiif_manifest_url' => "/node/$manifest_nid/manifest-single", - 'thumbnail_navigation_position' => 'hidden', - 'window_config' => [ - 'allowClose' => FALSE, - 'allowMaximize' => FALSE, - 'allowTopMenuButton' => FALSE, - 'allowWindowSideBar' => FALSE, - 'hideWindowTitle' => TRUE, - 'panels' => [ - 'info' => FALSE, - 'attribution' => FALSE, - ' canvas' => FALSE, - 'annotations' => FALSE, - 'search' => FALSE, - ], - ], - 'workspace_config' => [ - 'allowNewWindows' => FALSE, - 'isWorkspaceAddVisible' => FALSE, - 'workspaceControlPanel' => [ - 'enable' => FALSE, - ], + $key = "#{$variables['mirador_view_id']}"; + if (!isset($variables['#attached']['drupalSettings']['mirador']['viewers'][$key])) { + return; + } + $viewer = &$variables['#attached']['drupalSettings']['mirador']['viewers'][$key]; - ], - ]); + // ---- Paste configuration overrides below ---- } - */