Browse Source

mirador modding

master
rdrew 2 weeks ago
parent
commit
5cbdc2cac8
  1. BIN
      .DS_Store
  2. 28
      .php-cs-fixer.dist.php
  3. 33
      oliveskspaces.theme

BIN
.DS_Store vendored

Binary file not shown.

28
.php-cs-fixer.dist.php

@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->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
)
;

33
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 ----
}
*/

Loading…
Cancel
Save