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' => [
|
2021-10-24 22:42:03 +02:00
|
|
|
'__NAMESPACE__' => 'ArchiveSiteMeta\Controller',
|
|
|
|
'controller' => Controller\ArchiveSiteMetaController::class,
|
2021-10-24 12:01:37 +02:00
|
|
|
'action' => 'index',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2021-10-24 22:42:03 +02:00
|
|
|
'controllers' => [
|
|
|
|
'invokables' => [
|
|
|
|
Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class,
|
|
|
|
],
|
|
|
|
],
|
2021-05-04 10:55:27 +02:00
|
|
|
'view_manager' => [
|
|
|
|
'template_path_stack' => [
|
|
|
|
dirname(__DIR__) . '/view',
|
|
|
|
],
|
2021-10-24 23:55:07 +02:00
|
|
|
'strategies' => [
|
|
|
|
'ViewJsonStrategy',
|
|
|
|
],
|
2021-05-04 10:55:27 +02:00
|
|
|
'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-10-24 23:55:07 +02:00
|
|
|
//'archive-site-meta/archive-site-meta/index' => __DIR__ . '/../view/collections/index.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;',
|
|
|
|
],
|
|
|
|
]
|
|
|
|
];
|