<?php
/**
* 47_CustomModule for Contao Open Source CMS
*
* Copyright (C) 2016 Studienkreis Tourismus
* @author Holger Neuner <neuner@47gradnord.de>
* @project 47_CustomModule
* @license commercial
*/
/**
* Backend Modules
*/
array_insert($GLOBALS['BE_MOD'], 0, array
(
'shop-addons' => array
(
'setup' => array
(
'tables' => array('tl_sm_settings'),
'icon' => 'system/modules/47_CustomModule/assets/icons/settings.png',
),
'affilliate-partner' => array
(
'tables' => array('tl_sm_affilliate_partner'),
'icon' => 'system/modules/47_CustomModule/assets/icons/affilliate-partner.png',
),
)
));
/**
* Frontend-Modules
*/
$GLOBALS['FE_MOD']['47_ModElements']= array
(
// Layout
'47_ModTopBar' => 'CustomModule\Frontend\Modules\TopBar',
'47_ModNavBar' => 'CustomModule\Frontend\Modules\NavBar',
'47_ModFooter' => 'CustomModule\Frontend\Modules\Footer',
'47_ModPageTitle' => 'CustomModule\Frontend\Modules\PageTitle',
'47_ModLoginNotice' => 'CustomModule\Frontend\Modules\LoginNotice',
'47_ModAdvertiseNotice' => 'CustomModule\Frontend\Modules\AdvertiseNotice',
// Affilliate Partner
'47_ModAffilliateDetectId' => 'CustomModule\Frontend\Modules\AffilliateDetectId',
// My Shop Manage Download
'47_ModManageDownload' => 'CustomModule\Frontend\Modules\ModManageDownload',
// Download Vouchers
'47_ModVoucherDownload' => 'CustomModule\Frontend\Modules\ModVoucherDownload',
// Photo Competioion
'47_ModPhotoCompetitionSubmit' => 'CustomModule\Frontend\Modules\ModPhotoCompetitionSubmit',
'47_ModPhotoCompetitionVerify' => 'CustomModule\Frontend\Modules\ModPhotoCompetitionVerify',
// Landing Page Survey
'47_ModLandingpageSurvey' => 'CustomModule\Frontend\Modules\ModLandingpageSurvey',
'47_ModOrderFreeProduct' => 'CustomModule\Frontend\Modules\ModOrderFreeProduct',
);
/**
* Slider
*/
$GLOBALS['TL_CTE']['47_MasterSlider'] = array(
'47_MasterSlider_Start' => 'CustomModule\Frontend\Elements\MasterSliderStart',
'47_MasterSlider_Item' => 'CustomModule\Frontend\Elements\MasterSliderItem',
'47_MasterSlider_Stop' => 'CustomModule\Frontend\Elements\MasterSliderStop',
);
/**
* Elements
*/
$GLOBALS['TL_CTE']['47_Elements'] = array(
// Elements
'47_Element_IntroImageText' => 'CustomModule\Frontend\Elements\IntroImageText',
'47_Element_NewsletterSubscribe' => 'CustomModule\Frontend\Elements\NewsletterSubscribe',
'47_Element_SingleProductteaser' => 'CustomModule\Frontend\Elements\SingleProductteaser',
);
/**
* Frame Work Zeile Umschlag
*/
$GLOBALS['TL_CTE']['47_ElementRow'] = array(
'47_ElementRow_Start' => 'CustomModule\Frontend\Elements\RowStart',
'47_ElementRow_Stop' => 'CustomModule\Frontend\Elements\RowStop',
);
/**
* Frame Work Spalte Umschlag
*/
$GLOBALS['TL_CTE']['47_ElementColumn'] = array(
'47_ElementColumn_Start' => 'CustomModule\Frontend\Elements\ColumnStart',
'47_ElementColumn_Stop' => 'CustomModule\Frontend\Elements\ColumnStop',
);
/**
* Frame Work Kombi Zeile Spalte
*/
$GLOBALS['TL_CTE']['47_ElementRowColumn'] = array(
'47_ElementRowColumn_Start' => 'CustomModule\Frontend\Elements\RowColumnStart',
'47_ElementRowColumn_Stop' => 'CustomModule\Frontend\Elements\RowColumnStop',
);
/**
* Define Wrappers
*/
$GLOBALS['TL_WRAPPERS']['start'][] = '47_MasterSlider_Start';
$GLOBALS['TL_WRAPPERS']['stop'][] = '47_MasterSlider_Stop';
$GLOBALS['TL_WRAPPERS']['start'][] = '47_ElementRow_Start';
$GLOBALS['TL_WRAPPERS']['stop'][] = '47_ElementRow_Stop';
$GLOBALS['TL_WRAPPERS']['start'][] = '47_ElementColumn_Start';
$GLOBALS['TL_WRAPPERS']['stop'][] = '47_ElementColumn_Stop';
$GLOBALS['TL_WRAPPERS']['start'][] = '47_ElementRowColumn_Start';
$GLOBALS['TL_WRAPPERS']['stop'][] = '47_ElementRowColumn_Stop';
/**
* Models
*/
$GLOBALS['TL_MODELS']['tl_member_group'] = 'CustomModule\Models\MemberGroupModel';
// $GLOBALS['TL_MODELS']['tl_member'] = 'CustomModule\Models\MemberModel';
$GLOBALS['TL_MODELS']['tl_sm_affilliate_partner'] = 'CustomModule\Models\AffilliatePartnerModel';
$GLOBALS['TL_MODELS']['tl_sm_downloadcredits'] = 'CustomModule\Models\DownloadcreditsModel';
$GLOBALS['TL_MODELS']['tl_sm_photocompetition_subscriber'] = 'CustomModule\Models\PhotocompetitionSubscriberModel';
/**
* Hooks
*/
$GLOBALS['TL_HOOKS']['createNewUser'][] = array('CustomModule\Hooks', 'createUserCheckAffilliate');
$GLOBALS['TL_HOOKS']['postLogin'][] = array('CustomModule\Hooks', 'postLoginShopUser');
/*
* Notification Center
*/
$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['sympathiemagazine'] = [
'notifications' => [
'email_sender_address' => ['admin_mail'],
'email_sender_name' => ['admin_name'],
'recipients' => ['user_*', 'admin_mail'],
'email_subject' => ['member_*'],
'email_text' => ['user_*', 'domain', 'emailverification_link', 'file1', 'file2', 'file3', 'statusNewsletter'],
//'email_html' => ['shortlogin_url', 'system_url', 'customer_name', 'customer_username', 'organisation_name', 'organisation_strasse', 'organisation_plz', 'organisation_ort', 'organisation_telefon', 'organisation_telefax', 'organisation_email', 'organisation_internet', 'organisation_kontonummer', 'project_name', 'donation_vorname', 'donation_nachname', 'donation_strasse', 'donation_plz', 'donation_ort', 'donation_telefon', 'donation_email', 'donation_internet', 'donation_spendenbetrag', 'donation_zahlungsart', 'donation_infoadressdaten', 'project_email_betreff', 'project_email_text', 'donation_notice', 'titel_portal', 'qrcode_file_link'],
//'file_name' => ['certificate_*', 'member_*', 'admin_email', 'recipient_email', 'system_url'],
//'file_content' => ['certificate_*', 'member_*', 'admin_email', 'recipient_email', 'system_url'],
//'email_recipient_cc' => ['admin_email'],
//'email_recipient_bcc' => ['admin_email'],
//'email_replyTo' => ['admin_email'],
//'attachment_tokens' => ['file_project'],
],
];