Compare commits

...

2 Commits

1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,7 @@
<?php
namespace ArchiveSiteMeta\Site\BlockLayout;
use DateTime;
use Omeka\Api\Representation\SiteRepresentation;
use Omeka\Api\Representation\SitePageRepresentation;
use Omeka\Api\Representation\SitePageBlockRepresentation;
@ -8,13 +9,11 @@ use Omeka\Site\BlockLayout\AbstractBlockLayout;
use Laminas\View\Renderer\PhpRenderer;
use ArchiveSiteMeta\Site\BlockLayout\ContainerInterface;
use Laminas\Form\Element;
use Laminas\Form\FormElementManager;
use ArchiveSiteMeta\Form\ArchiveSiteMetaBlockForm;
class ArchiveSiteMeta extends AbstractBlockLayout
{
/**
@ -107,9 +106,10 @@ class ArchiveSiteMeta extends AbstractBlockLayout
}
$archiveSiteHelper = $view->getHelperPluginManager()->get('archiveSiteMeta');
$collections = $archiveSiteHelper->getCollections();
$date = new DateTime($block->dataValue('project_date'));
return $view->partial('common/block-layout/site-meta', [
'artist' =>$block->dataValue('currator'),
'project_date' => $block->dataValue('project_date'),
'project_date' => $date->format('Y'),
'collection' => $collections[$block->dataValue('collection')],
'site' => $site,
'tech_document_link' => $tech_document_link