From 7dc3de84c25493f499e704d080f967eac28a6a6a Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Tue, 29 Jun 2021 08:51:17 +0200 Subject: [PATCH] list of sites from table to lists (ul/li) to be able to use accordion and more semantic --- view/common/block-layout/list-of-sites.phtml | 75 ++++++++++++-------- view/common/site-list-entry.phtml | 66 ++++++++--------- 2 files changed, 79 insertions(+), 62 deletions(-) diff --git a/view/common/block-layout/list-of-sites.phtml b/view/common/block-layout/list-of-sites.phtml index e4f6fce..651b3ac 100644 --- a/view/common/block-layout/list-of-sites.phtml +++ b/view/common/block-layout/list-of-sites.phtml @@ -2,40 +2,55 @@ $archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta'); ?> -
-
+
- - - - - - - - - - +
+

Latest in collections

+
+
+
+
    +
  • + +
      +
    • Title
    • +
    • Artist
    • +
    • Collection
    • +
    • Date
    • +
    +
    +
    +
    +
    +

    +

    +
    +
  • getSiteMetaValues($site); - echo $this->partial('common/site-list-entry', [ - 'site' => $site, - 'showSummary' => $summaries, - 'site_meta_values' => $site_meta_values, - 'archive_collections' => $archiveSiteHelper->getCollections(), - ]); + $site_meta_values = $archiveSiteHelper->getSiteMetaValues($site); + // table body build file + echo $this->partial('common/site-list-entry', [ + 'site' => $site, + 'showSummary' => $summaries, + 'site_meta_values' => $site_meta_values, + 'archive_collections' => $archiveSiteHelper->getCollections(), + ]); endforeach; ?> - -
-
TitleArtistCollectionDate
- -
- + + +
+ endif; + ?> + + + diff --git a/view/common/site-list-entry.phtml b/view/common/site-list-entry.phtml index a96dbd7..ed8366c 100644 --- a/view/common/site-list-entry.phtml +++ b/view/common/site-list-entry.phtml @@ -1,41 +1,43 @@ summary() : null; +// ?> - - - title() ?> - - - -
- - - - - - - - - - - - - - - +
  • + +
      +
    • + title() ?> +
    • +
    • + +
      + +
    • +
    • + + + +
    • +
    • + + + +
    • +
    +
    +
    +
    - - +
    +

    - escapeHtml($summary)); ?> -
    + escapeHtml($summary)); ?> - - - + View +

    +
    +