Compare commits
2 Commits
07a791c4ff
...
ed7118bb96
Author | SHA1 | Date |
---|---|---|
buttle | ed7118bb96 | |
buttle | 1ef93c2884 |
|
@ -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',
|
||||
],
|
||||
],
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -15,7 +15,7 @@ class ArchiveSiteMetaBlockForm extends Form
|
|||
'name' => 'o:block[__blockIndex__][o:data][currator]',
|
||||
'type' => Element\Text::class,
|
||||
'options' => [
|
||||
'label' => "Currator",
|
||||
'label' => "Artist",
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
@ -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