adds common block renderer
This commit is contained in:
parent
07a791c4ff
commit
1ef93c2884
|
@ -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'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<?= $artist ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $project_date ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $collection ?>
|
||||
</li>
|
||||
</ul>
|
Loading…
Reference in New Issue