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',
|
//'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.phtml',
|
||||||
'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index.phtml',
|
'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index.phtml',
|
||||||
'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.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',
|
'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[info]
|
[info]
|
||||||
name = "Archive site meta"
|
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 = ""
|
tags = ""
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
author = "Hangar.org"
|
author = "Hangar.org"
|
||||||
|
|
|
@ -15,7 +15,7 @@ class ArchiveSiteMetaBlockForm extends Form
|
||||||
'name' => 'o:block[__blockIndex__][o:data][currator]',
|
'name' => 'o:block[__blockIndex__][o:data][currator]',
|
||||||
'type' => Element\Text::class,
|
'type' => Element\Text::class,
|
||||||
'options' => [
|
'options' => [
|
||||||
'label' => "Currator",
|
'label' => "Artist",
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -96,12 +96,10 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
||||||
|
|
||||||
public function render(PhpRenderer $view, SitePageBlockRepresentation $block)
|
public function render(PhpRenderer $view, SitePageBlockRepresentation $block)
|
||||||
{
|
{
|
||||||
/*
|
return $view->partial('common/block-layout/site-meta', [
|
||||||
$controller->layout()->setVariable(
|
'artist' =>$block->dataValue('currator'),
|
||||||
'content',
|
'project_date' => $block->dataValue('project_date'),
|
||||||
$this->viewRenderer->render('my/email/view_script.phtml');
|
'collection' => $block->dataValue('collection'),
|
||||||
);
|
]);
|
||||||
*/
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<?= $artist ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $project_date ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $collection ?>
|
||||||
|
</li>
|
||||||
|
</ul>
|
Loading…
Reference in New Issue