Compare commits
2 Commits
2a24a7c4ab
...
1e2a2e40a6
Author | SHA1 | Date |
---|---|---|
buttle | 1e2a2e40a6 | |
buttle | 8f21090659 |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue