adds common block renderer

This commit is contained in:
buttle 2021-05-17 13:57:25 +02:00
parent 07a791c4ff
commit 1ef93c2884
2 changed files with 17 additions and 7 deletions

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>