2020-08-20 10:18:33 +02:00
< ? php
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware .
*
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law .
*
* http :// www . shopmodule . com
*
* @ copyright ( C ) D3 Data Development ( Inh . Thomas Dartsch )
* @ author D3 Data Development - Daniel Seifert < support @ shopmodule . com >
* @ link http :// www . oxidmodule . com
*/
2020-11-06 09:44:45 +01:00
use D3\Extsearch\Application\Controller\Admin as ModuleControllerAdmin ;
use D3\Extsearch\Application\Controller as ModuleController ;
use D3\Extsearch\Modules\Application\Component as ModuleExtComponent ;
use D3\Extsearch\Modules\Application\Controller\Admin as ModuleExtControllerAdmin ;
use D3\Extsearch\Modules\Application\Controller as ModuleExtController ;
use D3\Extsearch\Modules\Application\Model as ModuleExtModel ;
use D3\Extsearch\Modules\Core\d3_oxutilsview_extsearch ;
2020-08-20 10:18:33 +02:00
use OxidEsales\VisualCmsModule\Application\Controller\Admin\VisualCmsAdmin as VisualCMSAdmin ;
use OxidEsales\Eshop\Application\Controller as OxidController ;
use OxidEsales\Eshop\Application\Model as OxidModel ;
use OxidEsales\Eshop\Application\Component as OxidComponent ;
use OxidEsales\Eshop\Core as OxidCore ;
/**
* Metadata version
*/
2020-11-06 09:44:45 +01:00
$sMetadataVersion = '2.0' ;
$sLogo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> ' ;
2020-08-20 10:18:33 +02:00
$sModuleId = 'd3_extsearch' ;
2020-11-06 09:44:45 +01:00
2020-08-20 10:18:33 +02:00
/**
* Module information
*/
2020-11-06 09:44:45 +01:00
$aModule = [
2020-08-20 10:18:33 +02:00
'id' => $sModuleId ,
2020-11-06 09:44:45 +01:00
'title' => [
'de' => $sLogo . 'Erweiterte Suche' ,
'en' => $sLogo . 'Extended Search'
],
'description' => [
2020-08-20 10:18:33 +02:00
'de' => 'Stellt fehlertolerante Suche und weitere Filtermöglichkeiten zur Verfügung.<br>Aktivieren Sie die Moduleinträge bitte immer und steuern Sie die Modulaktivität ausschließlich im Adminbereich des Moduls.' ,
2020-11-06 09:44:45 +01:00
'en' => 'Provides error-tolerant search and other filter options. Please always activate the module entries and control the module activity exclusively in the admin area of the module.' ,
],
2020-08-20 10:18:33 +02:00
'thumbnail' => 'picture.png' ,
2020-11-06 09:44:45 +01:00
'version' => '6.6.0.0' ,
2020-08-20 10:18:33 +02:00
'author' => 'D³ Data Development (Inh.: Thomas Dartsch)' ,
'email' => 'support@shopmodule.com' ,
'url' => 'http://www.oxidmodule.com/' ,
2020-11-06 09:44:45 +01:00
'extend' => [
OxidController\Admin\ArticleList :: class => ModuleExtControllerAdmin\d3_article_list_extsearch :: class ,
OxidController\ArticleDetailsController :: class => ModuleExtController\d3_details_extsearch :: class ,
OxidCore\Model\BaseModel :: class => ModuleExtModel\d3_basemodel_extsearch :: class ,
OxidModel\Article :: class => ModuleExtModel\d3_oxarticle_phonetic :: class ,
OxidModel\ArticleList :: class => ModuleExtModel\d3_oxarticlelist_extsearch :: class ,
OxidComponent\BasketComponent :: class => ModuleExtComponent\d3_oxcmp_basket_extsearch :: class ,
OxidComponent\UtilsComponent :: class => ModuleExtComponent\d3_oxcmp_utils_extsearch :: class ,
OxidComponent\Widget\ArticleDetails :: class => ModuleExtComponent\d3_oxwarticledetails_extsearch :: class ,
OxidComponent\Widget\ArticleBox :: class => ModuleExtComponent\d3_oxwarticlebox_extsearch :: class ,
OxidComponent\Locator :: class => ModuleExtController\d3_oxlocator_extsearch :: class ,
OxidController\ArticleListController :: class => ModuleExtController\d3_alist_extsearch :: class ,
OxidController\ManufacturerListController :: class => ModuleExtController\d3_manufacturerlist_extsearch :: class ,
OxidController\VendorListController :: class => ModuleExtController\d3_vendorlist_extsearch :: class ,
OxidController\RssController :: class => ModuleExtController\d3_rss_extsearch :: class ,
OxidModel\RssFeed :: class => ModuleExtModel\d3_oxrssfeed_extsearch :: class ,
OxidModel\Search :: class => ModuleExtModel\d3_oxsearch_extsearch :: class ,
OxidController\SearchController :: class => ModuleExtController\d3_ext_search :: class ,
OxidCore\UtilsView :: class => d3_oxutilsview_extsearch :: class ,
],
'controllers' => [
'd3_cfg_extsearch' => ModuleControllerAdmin\d3_cfg_extsearch :: class ,
'd3_cfg_extsearch_list' => ModuleControllerAdmin\d3_cfg_extsearch_list :: class ,
'd3_cfg_extsearch_main' => ModuleControllerAdmin\d3_cfg_extsearch_main :: class ,
'd3_cfg_extsearch_navigation' => ModuleControllerAdmin\d3_cfg_extsearch_navigation :: class ,
'd3_cfg_extsearch_quicksearch' => ModuleControllerAdmin\d3_cfg_extsearch_quicksearch :: class ,
'd3_cfg_extsearch_plugins' => ModuleControllerAdmin\d3_cfg_extsearch_plugins :: class ,
'd3_cfg_extsearch_licence' => ModuleControllerAdmin\d3_cfg_extsearch_licence :: class ,
2020-08-20 10:18:33 +02:00
2020-11-06 09:44:45 +01:00
'd3_cfg_extsearchstat' => ModuleControllerAdmin\d3_cfg_extsearchstat :: class ,
'd3_cfg_extsearchstat_list' => ModuleControllerAdmin\d3_cfg_extsearchstat_list :: class ,
'd3_cfg_extsearch_statistik' => ModuleControllerAdmin\d3_cfg_extsearch_statistik :: class ,
2020-08-20 10:18:33 +02:00
2020-11-06 09:44:45 +01:00
'd3_cfg_extsearchsyneditor' => ModuleControllerAdmin\d3_cfg_extsearchsyneditor :: class ,
'd3_cfg_extsearchsyneditor_list' => ModuleControllerAdmin\d3_cfg_extsearchsyneditor_list :: class ,
'd3_cfg_extsearchsyneditor_main' => ModuleControllerAdmin\d3_cfg_extsearchsyneditor_main :: class ,
'd3_cfg_extsearchsyneditor_manage' => ModuleControllerAdmin\d3_cfg_extsearchsyneditor_manage :: class ,
2020-08-20 10:18:33 +02:00
2020-11-06 09:44:45 +01:00
'd3_cfg_extsearchlog' => ModuleControllerAdmin\d3_cfg_extsearchlog :: class ,
'd3_cfg_extsearchlog_list' => ModuleControllerAdmin\d3_cfg_extsearchlog_list :: class ,
2020-08-20 10:18:33 +02:00
2020-11-06 09:44:45 +01:00
'd3_attribute_extsearch' => ModuleControllerAdmin\d3_attribute_extsearch :: class ,
'd3_attribute2category_extsearch_ajax' => ModuleControllerAdmin\Popups\d3_attribute2category_extsearch_ajax :: class ,
'd3_attribute2manufacturer_extsearch_ajax' => ModuleControllerAdmin\Popups\d3_attribute2manufacturer_extsearch_ajax :: class ,
'd3_attribute2vendor_extsearch_ajax' => ModuleControllerAdmin\Popups\d3_attribute2vendor_extsearch_ajax :: class ,
'd3_category_extsearch' => ModuleControllerAdmin\d3_category_extsearch :: class ,
2020-08-20 10:18:33 +02:00
2020-11-06 09:44:45 +01:00
'd3_extsearch_response' => ModuleController\d3_extsearch_response :: class ,
],
'templates' => [
2020-08-20 10:18:33 +02:00
'd3_cfg_extsearch_main.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearch_main.tpl' ,
'd3_cfg_extsearch_main_sortanalysis.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearch_main_sortanalysis.tpl' ,
'd3_cfg_extsearch_navigation.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearch_navigation.tpl' ,
'd3_cfg_extsearch_plugins.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearch_plugins.tpl' ,
'd3_cfg_extsearch_quicksearch.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearch_quicksearch.tpl' ,
'd3_cfg_extsearch_statistik.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearch_statistik.tpl' ,
'd3_cfg_extsearchsyneditor_list.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearchsyneditor_list.tpl' ,
'd3_cfg_extsearchsyneditor_main.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearchsyneditor_main.tpl' ,
'd3_cfg_extsearchsyneditor_manage.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_cfg_extsearchsyneditor_manage.tpl' ,
'd3_extsearch_report_hitless.tpl' => 'd3/extsearch/Application/views/admin/tpl/reports/d3_extsearch_report_hitless.tpl' ,
'd3_extsearch_report_mostsearches.tpl' => 'd3/extsearch/Application/views/admin/tpl/reports/d3_extsearch_report_mostsearches.tpl' ,
'd3_extsearch_plugin.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_extsearch_plugin.tpl' ,
'd3_extsearch_popup.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_extsearch_popup.tpl' ,
'd3_attribute_extsearch.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_attribute_extsearch.tpl' ,
'd3_attribute_extsearch_ajax.tpl' => 'd3/extsearch/Application/views/admin/tpl/popups/d3_attribute_extsearch_ajax.tpl' ,
'd3_category_extsearch.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_category_extsearch.tpl' ,
'd3_ext_search_suggestsearch.tpl' => 'd3/extsearch/Application/views/tpl/d3_ext_search_suggestsearch.tpl' ,
'd3_ext_search_highlight.tpl' => 'd3/extsearch/Application/views/tpl/d3_ext_search_highlight.tpl' ,
'd3_ext_search_filter.tpl' => 'd3/extsearch/Application/views/tpl/d3_ext_search_filter.tpl' ,
'd3_inc_ext_search_azure.tpl' => 'd3/extsearch/Application/views/tpl/azure/d3_inc_ext_search.tpl' ,
'd3_list_filters_azure.tpl' => 'd3/extsearch/Application/views/tpl/azure/d3extsearch_alist_filters.tpl' ,
'd3_search_contents_flow.tpl' => 'd3/extsearch/Application/views/tpl/flow/d3_search_contents.tpl' ,
'd3_search_filters_flow.tpl' => 'd3/extsearch/Application/views/tpl/flow/d3_search_filters.tpl' ,
'd3_list_filters_flow.tpl' => 'd3/extsearch/Application/views/tpl/flow/d3_list_filters.tpl' ,
'd3_search_contents_wave.tpl' => 'd3/extsearch/Application/views/tpl/flow/d3_search_contents.tpl' ,
'd3_search_filters_wave.tpl' => 'd3/extsearch/Application/views/tpl/flow/d3_search_filters.tpl' ,
'd3_list_filters_wave.tpl' => 'd3/extsearch/Application/views/tpl/flow/d3_list_filters.tpl' ,
'd3_inc_ext_search_mobile.tpl' => 'd3/extsearch/Application/views/tpl/mobile/d3_inc_ext_search.tpl' ,
'd3_list_filters_mobile.tpl' => 'd3/extsearch/Application/views/tpl/mobile/d3extsearch_alist_filters.tpl' ,
'd3_ext_search_filter_category.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/category.tpl' ,
'd3_ext_search_filter_vendor.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/vendor.tpl' ,
'd3_ext_search_filter_manufacturer.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/manufacturer.tpl' ,
'd3_ext_search_filter_attribute.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/attribute.tpl' ,
'd3_ext_search_filter_priceselector.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/priceselector.tpl' ,
'd3_ext_search_filter_jqslider.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/jqslider.tpl' ,
'd3_ext_search_filter_inc_multibuttons.tpl' => 'd3/extsearch/Application/views/tpl/filterelements/inc/multibuttons.tpl' ,
'd3_ddeovisualcmsadmin_extsearch.tpl' => 'd3/extsearch/Application/views/tpl/d3_ddoevisualcmsadmin_extsearch.tpl' ,
'd3_togglegroup_extsearch.tpl' => 'd3/extsearch/Application/views/admin/tpl/d3_togglegroup_extsearch.tpl' ,
2020-11-06 09:44:45 +01:00
],
2020-08-20 10:18:33 +02:00
'events' => [
'onActivate' => '\D3\Extsearch\setup\Events::onActivate' ,
'onDeactivate' => '\D3\Extsearch\setup\Events::onDeactivate' ,
],
2020-11-06 09:44:45 +01:00
'settings' => [
[
2020-08-20 10:18:33 +02:00
'group' => 'd3thememapping_module' ,
'name' => 'd3custParentThemeMappedToWave_' . $sModuleId ,
'type' => 'str' ,
'value' => ''
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'group' => 'd3thememapping_module' ,
'name' => 'd3custParentThemeMappedToFlow_' . $sModuleId ,
'type' => 'str' ,
'value' => ''
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'group' => 'd3thememapping_module' ,
'name' => 'd3custParentThemeMappedToMobile_' . $sModuleId ,
'type' => 'str' ,
'value' => ''
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'group' => 'd3thememapping_module' ,
'name' => 'd3custParentThemeMappedToAzure_' . $sModuleId ,
'type' => 'str' ,
'value' => ''
2020-11-06 09:44:45 +01:00
],
],
'blocks' => [
[
2020-08-20 10:18:33 +02:00
'template' => 'page/search/search.tpl' ,
'block' => 'search_results' ,
'file' => 'Application/views/blocks/page/search/d3_inc_ext_search.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'layout/base.tpl' ,
'block' => 'head_css' ,
'file' => 'Application/views/blocks/layout/d3_extsearch_css.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'layout/base.tpl' ,
'block' => 'base_js' ,
'file' => 'Application/views/blocks/layout/d3_extsearch_js.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/header/search.tpl' ,
'block' => 'widget_header_search_form' ,
'file' => 'Application/views/blocks/widget/header/d3_extsearch_headersearch.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/header/search.tpl' ,
'block' => 'header_search_field' ,
'file' => 'Application/views/blocks/widget/header/d3_extsearch_searchfield.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'page/list/list.tpl' ,
'block' => 'page_list_listbody' ,
'file' => 'Application/views/blocks/page/list/d3extsearch_alist_noartfilters.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'page/list/list.tpl' ,
'block' => 'page_list_listhead' ,
'file' => 'Application/views/blocks/page/list/d3extsearch_alist_filters.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/locator/attributes.tpl' ,
'block' => 'widget_locator_attributes' ,
'file' => 'Application/views/blocks/widget/locator/d3_list_disabledefaultfilters.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/product/listitem_infogrid.tpl' ,
'block' => 'widget_product_listitem_infogrid_titlebox' ,
'file' => 'Application/views/blocks/widget/product/d3_extsearch_listiteminfogrid_title.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/product/listitem_grid.tpl' ,
'block' => 'widget_product_listitem_grid' ,
'file' => 'Application/views/blocks/widget/product/d3_extsearch_listitemgrid_title.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/product/listitem_grid.tpl' ,
'block' => 'widget_product_listitem_infogrid_titlebox' ,
'file' => 'Application/views/blocks/widget/product/d3_extsearch_listitemgrid_flowtitlebox.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/product/listitem_line.tpl' ,
'block' => 'widget_product_listitem_line_titlebox' ,
'file' => 'Application/views/blocks/widget/product/d3_extsearch_listitemline_flowtitlebox.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/product/listitem_line.tpl' ,
'block' => 'widget_product_listitem_line_selections' ,
'file' => 'Application/views/blocks/widget/product/d3_extsearch_listitemline_selections.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'widget/product/listitem_line.tpl' ,
'block' => 'widget_product_listitem_line_description' ,
'file' => 'Application/views/blocks/widget/product/d3_extsearch_listitemline_description.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'content_main.tpl' ,
'block' => 'admin_content_main_form' ,
'file' => 'Application/views/admin/blocks/d3_extsearch_content_main.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'attribute_main.tpl' ,
'block' => 'admin_attribute_main_form' ,
'file' => 'Application/views/admin/blocks/d3_extsearch_attribute_main.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'include/category_main_form.tpl' ,
'block' => 'admin_category_main_form' ,
'file' => 'Application/views/admin/blocks/d3_extsearch_category_main.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
[
2020-08-20 10:18:33 +02:00
'template' => 'article_extend.tpl' ,
'block' => 'admin_article_extend_form' ,
'file' => 'Application/views/admin/blocks/d3_extsearch_article_extend.tpl' ,
'position' => 1 ,
2020-11-06 09:44:45 +01:00
],
]
];
2020-08-20 10:18:33 +02:00
2020-11-06 09:44:45 +01:00
if ( class_exists ( VisualCmsAdmin :: class )) {
$aModule [ 'extend' ][ VisualCmsAdmin :: class ] = ModuleExtControllerAdmin\d3_ddoevisualcmsadmin_extsearch :: class ;
2020-08-20 10:18:33 +02:00
}
if ( class_exists ( OeStatistics_Report_Base :: class )) {
2020-11-06 09:44:45 +01:00
$aModule [ 'controllers' ][ 'd3_extsearch_report_base' ] = ModuleControllerAdmin\Reports\d3_extsearch_report_base :: class ;
$aModule [ 'controllers' ][ 'd3_extsearch_report_hitless' ] = ModuleControllerAdmin\Reports\d3_extsearch_report_hitless :: class ;
$aModule [ 'controllers' ][ 'd3_extsearch_report_mostsearches' ] = ModuleControllerAdmin\Reports\d3_extsearch_report_mostsearches :: class ;
2020-08-20 10:18:33 +02:00
}