Compare commits

..

2 Commits

Author SHA1 Message Date
buttle ed7118bb96 removes HTML block 2021-05-17 16:27:37 +02:00
buttle 1ef93c2884 adds common block renderer 2021-05-17 13:57:25 +02:00
5 changed files with 20 additions and 9 deletions

View File

@ -10,6 +10,7 @@ return [
//'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.phtml',
'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index.phtml',
'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.phtml',
'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
],
],

View File

@ -1,6 +1,6 @@
[info]
name = "Archive site meta"
description = "Add some meta vaule to pages"
description = "arcHIVE theme helper. Adds some meta vaule to pages and maps routes"
tags = ""
license = "MIT"
author = "Hangar.org"

View File

@ -15,7 +15,7 @@ class ArchiveSiteMetaBlockForm extends Form
'name' => 'o:block[__blockIndex__][o:data][currator]',
'type' => Element\Text::class,
'options' => [
'label' => "Currator",
'label' => "Artist",
],
]);

View File

@ -96,12 +96,10 @@ class ArchiveSiteMeta extends AbstractBlockLayout
public function render(PhpRenderer $view, SitePageBlockRepresentation $block)
{
/*
$controller->layout()->setVariable(
'content',
$this->viewRenderer->render('my/email/view_script.phtml');
);
*/
return "";
return $view->partial('common/block-layout/site-meta', [
'artist' =>$block->dataValue('currator'),
'project_date' => $block->dataValue('project_date'),
'collection' => $block->dataValue('collection'),
]);
}
}

View File

@ -0,0 +1,12 @@
<ul>
<li>
<?= $artist ?>
</li>
<li>
<?= $project_date ?>
</li>
<li>
<?= $collection ?>
</li>
</ul>