diff --git a/config/module.ini b/config/module.ini index cc0ea35..77b532f 100644 --- a/config/module.ini +++ b/config/module.ini @@ -8,5 +8,5 @@ author_link = "https://github.com/Daniel-KM" module_link = "https://github.com/Daniel-KM/Omeka-S-module-Ebook" support_link = "https://github.com/Daniel-KM/Omeka-S-module-Ebook/issues" configurable = true -version = "3.0.5" -omeka_version_constraint = "^1.3.0 || ^2.0.0" +version = "3.0.6" +omeka_version_constraint = "^2.0.0" diff --git a/view/common/block-layout/file.phtml b/view/common/block-layout/file.phtml deleted file mode 100644 index f035477..0000000 --- a/view/common/block-layout/file.phtml +++ /dev/null @@ -1,47 +0,0 @@ - - -
-
- -
- item(); - if ($item): - ?> - media() ?: $item->primaryMedia(); - if ($media): - echo $media->render([ - 'thumbnailType' => $thumbnailType, - 'link' => $link, - ]); - endif; - ?> - -

link($item->displayTitle()) ?>

- -

displayTitle() ?>

- - - - caption(); - if ($caption): - ?> -
- -
- -
-
diff --git a/view/common/block-layout/item-showcase.phtml b/view/common/block-layout/item-showcase.phtml deleted file mode 100644 index 5fba711..0000000 --- a/view/common/block-layout/item-showcase.phtml +++ /dev/null @@ -1,67 +0,0 @@ -getHelperPluginManager(); -$thumbnail = $plugins->get('thumbnail'); -$hyperlink = $plugins->get('hyperlink'); -$siteSetting = $plugins->get('siteSetting'); - -$linkType = $siteSetting('attachment_link_type', 'item'); -?> - -
- -

- - - item(); - if ($item): - $media = $attachment->media() ?: $item->primaryMedia(); - if ($media): - $render = $item->linkRaw($thumbnail($media, $thumbnailType)); - endif; - - if ($showTitleOption == 'item_title'): - $title = $item->displayTitle(); - elseif ($media && $showTitleOption == 'file_name'): - $title = $media->displayTitle(); - endif; - - if ($title): - if ($media && $linkType === 'media'): - $link = $media->link($title); - elseif ($media && $linkType === 'original' && $media->hasOriginal()): - $link = $hyperlink($title, $media->originalUrl()); - else: - $link = $item->link($title); - endif; - endif; - endif; - - $caption = $attachment->caption(); - ?> -
- - - -
- -
- -
- -