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', //'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',
], ],
], ],

View File

@ -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"

View File

@ -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",
], ],
]); ]);

View File

@ -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 "";
} }
} }

View File

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