2021-05-04 10:55:27 +02:00
|
|
|
<?php
|
2021-10-24 12:01:37 +02:00
|
|
|
use Laminas\Router\Http\Literal;
|
2021-05-04 10:55:27 +02:00
|
|
|
namespace ArchiveSiteMeta;
|
|
|
|
|
|
|
|
return [
|
2021-10-24 12:01:37 +02:00
|
|
|
//https://docs.laminas.dev/tutorials/getting-started/routing-and-controllers/
|
|
|
|
'router' => [
|
|
|
|
'routes' => [
|
|
|
|
'archiveSiteMeta' => [
|
|
|
|
'type' => \Laminas\Router\Http\Literal::class,
|
|
|
|
'options' => [
|
|
|
|
'route' => '/collections',
|
|
|
|
'defaults' => [
|
|
|
|
'controller' => Controller\ArchiveSiteMeta::class,
|
|
|
|
'action' => 'index',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-05-04 10:55:27 +02:00
|
|
|
'view_manager' => [
|
|
|
|
'template_path_stack' => [
|
|
|
|
dirname(__DIR__) . '/view',
|
|
|
|
],
|
|
|
|
'template_map' => [
|
2021-10-24 12:01:37 +02:00
|
|
|
// used to remove available blocks when editing a page
|
|
|
|
'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
|
|
|
|
|
2021-05-08 14:09:58 +02:00
|
|
|
//'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.phtml',
|
2021-05-24 18:16:28 +02:00
|
|
|
//'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index/index.phtml',
|
2021-10-24 12:01:37 +02:00
|
|
|
//'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.phtml',
|
2021-05-24 18:16:28 +02:00
|
|
|
//'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
|
2021-05-04 10:55:27 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'view_helpers' => [
|
2021-05-04 12:53:55 +02:00
|
|
|
'factories' => [
|
|
|
|
'archiveSiteMeta' => Service\ViewHelper\ArchiveSiteMetaViewHelperFactory::class,
|
|
|
|
//'archiveSiteMeta' => View\Helper\ArchiveSiteMeta::class,
|
|
|
|
//'siteCollections' => View\Helper\SiteCollections::class,
|
2021-05-04 10:55:27 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'block_layouts' => [
|
|
|
|
'factories' => [
|
|
|
|
'archiveSiteMeta' => Service\BlockLayout\ArchiveSiteMetaFactory::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'form_elements' => [
|
|
|
|
'invokables' => [
|
|
|
|
Form\ArchiveSiteMetaBlockForm::class => Form\ArchiveSiteMetaBlockForm::class,
|
|
|
|
],
|
|
|
|
'factories' => [
|
|
|
|
Form\ConfigForm::class => Service\Form\ConfigFormFactory::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'config' => [
|
|
|
|
'SiteMeta' => [
|
|
|
|
'sitemeta_collections' => '',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'DefaultSettings' => [
|
|
|
|
'ArchiveSiteMetaBlockForm' => [
|
|
|
|
'page_type' => 'home',
|
|
|
|
'currator' => '',
|
|
|
|
'project_date' => '',
|
|
|
|
'collection' => '',
|
|
|
|
'wrapStyle' => 'overflow-y: hidden;display: flex;flex-direction: column;justify-content: center;',
|
|
|
|
],
|
|
|
|
]
|
|
|
|
];
|