From 5cbdc2cac8c0e173359b894eb68f73ce6aa5fa6b Mon Sep 17 00:00:00 2001 From: rdrew Date: Wed, 22 Jul 2026 11:10:47 -0300 Subject: [PATCH] mirador modding --- .DS_Store | Bin 6148 -> 0 bytes .php-cs-fixer.dist.php | 28 ++++++++++++++++++++++++++++ oliveskspaces.theme | 33 ++++++--------------------------- 3 files changed, 34 insertions(+), 27 deletions(-) delete mode 100644 .DS_Store create mode 100644 .php-cs-fixer.dist.php diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 55775890a6464c3f0bc38ee463d6aa433783eac5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKPfrs;6n_I%wji=Vi$FBl*oz4yRv@S`hFUO+9zd3031HoAhjwMV)9h}kNJx6u z_yPO?eg^#j9=&?-;urAX$+K_%Y_L|Z#+Z4@o8Ox^@6GJ|HaoKq07$V_y#`o@njR3}^=aH3s;%dlo!sfCDw?{(j%PP2Y>+ zeEt*Z>rb6IJ75eLL&lz6XKg!n;#O32!X4h*WXyLH+i|x%+Af=!WfsJa7tl~7cvXra zyN|t~%GyQN3aXLFwdH`3HqvEt>iBprzc@c@U0=9yGHV^*oXgKz3-gO7Cut*_yLxM* zeBd_%_ENG)@X!%5tT2IBXmoALs~oCBiF`~p^~E%kZKVf?&JCX*F-OP7M>C_@?8Jr1 z?9}x1#j-i>I+cT3$RBr^`7A8@En4y_EU>*7v=r0lF*nNQ*e`J#wEE=KwRzOUn9Qj| z%yloMG}x(yUUhAMKcaEzCwseWjzpD^`TjbKyx3#G_HKksug0{o8tgM%@eo;FYx1FJ zi-r+mPflsu2}38S(c;mb@3_=o3yLg`S%XLN*>EH4A>}iPwe6-;@q$`z>6>ISS6EMs zE7C9_Ck=pHq23X;kx5(%$!5R;noj2m50%G&8Mp%vz=k@s;WfO0x9|==z-Rah-${y0 zkjrF-ERfq|iQFfT$Ofs9I`POenctVZ=u6!zkqG-;FZ$391D^#o^d~vpDY|#cfMUoP zI(2DFGoTsJ3?R z5SfmCOT`rwb|lJlAgcHvYGtA-6e3o~`7IF+q##kZngPu~Hv|0NAI0SN|J^^={~|~? zngPwg|H%MJt=KC?+?%>vdv?k1S_}0lDi_^S;30P5As`~Uy| 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 ---- } - */