removed media_type attribute

This commit is contained in:
buttle 2021-06-22 12:17:35 +02:00
parent fd225e386b
commit 2cb3e788ea
2 changed files with 2 additions and 17 deletions

View File

@ -7,7 +7,7 @@
``` ```
cd ./modules cd ./modules
https://git.hangar.org/arcHIVE-tech/Sketchfab-omeka-module.git https://git.hangar.org/arcHIVE-tech/Sketchfab-omeka-module/archive/main.zip
unzip main.zip unzip main.zip
mv sketchfab-omeka-module Sketchfab mv sketchfab-omeka-module Sketchfab
rm main.zip rm main.zip

View File

@ -47,7 +47,6 @@ class Sketchfab extends AbstractBlockLayout
? $block->data() + $this->defaultSettings ? $block->data() + $this->defaultSettings
: $this->defaultSettings; : $this->defaultSettings;
$form->setData([ $form->setData([
'o:block[__blockIndex__][o:data][media_type]' => $data['media_type'],
'o:block[__blockIndex__][o:data][title]' => $data['title'], 'o:block[__blockIndex__][o:data][title]' => $data['title'],
'o:block[__blockIndex__][o:data][width]' => $data['width'], 'o:block[__blockIndex__][o:data][width]' => $data['width'],
'o:block[__blockIndex__][o:data][ratio]' => $data['ratio'], 'o:block[__blockIndex__][o:data][ratio]' => $data['ratio'],
@ -80,22 +79,8 @@ class Sketchfab extends AbstractBlockLayout
return $view->partial('common/block-layout/sketchfab', [ return $view->partial('common/block-layout/sketchfab', [
'title' => false, 'title' => false,
'width' => $width, 'width' => $width,
'height' => $height, 'height' => $height,
'sketchfab_iframe' => $media->mediaData()['html'], 'sketchfab_iframe' => $media->mediaData()['html'],
]); ]);
//return $media->mediaData()['html'];
/*
$width = $block->dataValue('width');
$height = $width / $block->dataValue('ratio');
return $view->partial('common/block-layout/archiveOrg', [
'media_type' => $block->dataValue('media_type'),
'title' => $block->dataValue('title'),
'width' => $width,
'height' => $height,
'url' => $media->source(),
'id' => 'achive_org-' . ++$id,
'thumbnails' => $thumbnails,
]);
*/
} }
} }