Compare commits
No commits in common. "1e2a2e40a6288712b9aeac5dd682d200f2ca84d1" and "2a24a7c4ab475ee1370988ae5a503cb7bd98b51c" have entirely different histories.
1e2a2e40a6
...
2a24a7c4ab
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
namespace ArchiveSiteMeta\Site\BlockLayout;
|
||||
|
||||
use DateTime;
|
||||
use Omeka\Api\Representation\SiteRepresentation;
|
||||
use Omeka\Api\Representation\SitePageRepresentation;
|
||||
use Omeka\Api\Representation\SitePageBlockRepresentation;
|
||||
|
@ -9,10 +8,12 @@ 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;
|
||||
|
||||
use Laminas\Form\Element;
|
||||
|
||||
use Laminas\Form\FormElementManager;
|
||||
|
||||
use ArchiveSiteMeta\Form\ArchiveSiteMetaBlockForm;
|
||||
|
||||
class ArchiveSiteMeta extends AbstractBlockLayout
|
||||
{
|
||||
|
@ -106,10 +107,9 @@ 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' => $date->format('Y'),
|
||||
'project_date' => $block->dataValue('project_date'),
|
||||
'collection' => $collections[$block->dataValue('collection')],
|
||||
'site' => $site,
|
||||
'tech_document_link' => $tech_document_link
|
||||
|
|
Loading…
Reference in New Issue