removed media_type attribute
This commit is contained in:
parent
fd225e386b
commit
2cb3e788ea
|
@ -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
|
||||||
|
|
|
@ -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'],
|
||||||
|
@ -83,19 +82,5 @@ class Sketchfab extends AbstractBlockLayout
|
||||||
'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,
|
|
||||||
]);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue