From 3bb4f476d1060155fcd1a45102ee758cfd98a02f Mon Sep 17 00:00:00 2001 From: buttle Date: Mon, 31 May 2021 18:00:30 +0200 Subject: [PATCH] adds 'view' button in site list --- asset/css/archive.css | 12 ++++++++++++ view/common/site-list-entry.phtml | 5 ++++- view/omeka/site/item/show.phtml | 5 +++-- view/omeka/site/media/show.phtml | 4 ++-- view/omeka/site/page/show.phtml | 9 +++++++++ 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/asset/css/archive.css b/asset/css/archive.css index 7e82a80..53d4682 100644 --- a/asset/css/archive.css +++ b/asset/css/archive.css @@ -12,3 +12,15 @@ ._expand_site_item:hover { background: #3374C2; } +.end_of_page_button { + cursor: pointer; + text-transform: uppercase; + font-size: 2em; + margin-top: 2em; + border: double; +} +.go_to_site_button { + cursor: pointer; + text-transform: uppercase; + border: double; +} diff --git a/view/common/site-list-entry.phtml b/view/common/site-list-entry.phtml index 67dc1b5..a96dbd7 100644 --- a/view/common/site-list-entry.phtml +++ b/view/common/site-list-entry.phtml @@ -33,6 +33,9 @@ $summary = $showSummary ? $site->summary() : null; escapeHtml($summary)); ?>
- hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?> + diff --git a/view/omeka/site/item/show.phtml b/view/omeka/site/item/show.phtml index 9ce7f89..fb67bcd 100644 --- a/view/omeka/site/item/show.phtml +++ b/view/omeka/site/item/show.phtml @@ -96,8 +96,9 @@ $("#archive_page_title").html(''); trigger('view.show.after'); ?> - diff --git a/view/omeka/site/media/show.phtml b/view/omeka/site/media/show.phtml index 122a90d..fe723e8 100644 --- a/view/omeka/site/media/show.phtml +++ b/view/omeka/site/media/show.phtml @@ -38,8 +38,8 @@ $("#archive_page_title").html(''); render(); ?> displayValues(); ?> - trigger('view.show.after'); ?> diff --git a/view/omeka/site/page/show.phtml b/view/omeka/site/page/show.phtml index e644e9f..54e557b 100644 --- a/view/omeka/site/page/show.phtml +++ b/view/omeka/site/page/show.phtml @@ -92,6 +92,15 @@ if ($activePage): content; ?> +site->title() != "Collections") { ?> + + + + + + trigger('view.show.after'); ?>