system/modules/47_CustomModule/config/config.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3.  * 47_CustomModule for Contao Open Source CMS
  4.  *
  5.  * Copyright (C) 2016 Studienkreis Tourismus
  6.  * @author     Holger Neuner <neuner@47gradnord.de>
  7.  * @project    47_CustomModule
  8.  * @license    commercial
  9.  */
  10. /**
  11.  * Backend Modules
  12.  */
  13. array_insert($GLOBALS['BE_MOD'], 0, array
  14. (
  15.     'shop-addons' => array
  16.     (
  17.         'setup' => array
  18.         (
  19.             'tables'       => array('tl_sm_settings'),
  20.             'icon'         => 'system/modules/47_CustomModule/assets/icons/settings.png',
  21.         ),
  22.         'affilliate-partner' => array
  23.         (
  24.             'tables'       => array('tl_sm_affilliate_partner'),
  25.             'icon'         => 'system/modules/47_CustomModule/assets/icons/affilliate-partner.png',
  26.         ),
  27.     )
  28. ));
  29. /**
  30.  * Frontend-Modules
  31.  */
  32. $GLOBALS['FE_MOD']['47_ModElements']= array
  33. (
  34.     // Layout
  35.     '47_ModTopBar'                  => 'CustomModule\Frontend\Modules\TopBar',
  36.     '47_ModNavBar'                  => 'CustomModule\Frontend\Modules\NavBar',
  37.     '47_ModFooter'                  => 'CustomModule\Frontend\Modules\Footer',
  38.     '47_ModPageTitle'               => 'CustomModule\Frontend\Modules\PageTitle',
  39.     '47_ModLoginNotice'             => 'CustomModule\Frontend\Modules\LoginNotice',
  40.     '47_ModAdvertiseNotice'         => 'CustomModule\Frontend\Modules\AdvertiseNotice',
  41.     // Affilliate Partner
  42.     '47_ModAffilliateDetectId'      => 'CustomModule\Frontend\Modules\AffilliateDetectId',
  43.     // My Shop Manage Download
  44.     '47_ModManageDownload'          => 'CustomModule\Frontend\Modules\ModManageDownload',
  45.     // Download Vouchers
  46.     '47_ModVoucherDownload'          => 'CustomModule\Frontend\Modules\ModVoucherDownload',
  47.     // Photo Competioion
  48.     '47_ModPhotoCompetitionSubmit'   => 'CustomModule\Frontend\Modules\ModPhotoCompetitionSubmit',
  49.     '47_ModPhotoCompetitionVerify'   => 'CustomModule\Frontend\Modules\ModPhotoCompetitionVerify',
  50.     // Landing Page Survey
  51.     '47_ModLandingpageSurvey'        => 'CustomModule\Frontend\Modules\ModLandingpageSurvey',
  52.     '47_ModOrderFreeProduct'         => 'CustomModule\Frontend\Modules\ModOrderFreeProduct',
  53. );
  54. /**
  55.  * Slider
  56.  */
  57. $GLOBALS['TL_CTE']['47_MasterSlider'] = array(
  58.     '47_MasterSlider_Start'     => 'CustomModule\Frontend\Elements\MasterSliderStart',
  59.     '47_MasterSlider_Item'      => 'CustomModule\Frontend\Elements\MasterSliderItem',
  60.     '47_MasterSlider_Stop'      => 'CustomModule\Frontend\Elements\MasterSliderStop',
  61. );
  62. /**
  63.  * Elements
  64.  */
  65. $GLOBALS['TL_CTE']['47_Elements'] = array(
  66.     // Elements
  67.     '47_Element_IntroImageText'         => 'CustomModule\Frontend\Elements\IntroImageText',
  68.     '47_Element_NewsletterSubscribe'    => 'CustomModule\Frontend\Elements\NewsletterSubscribe',
  69.     '47_Element_SingleProductteaser'    => 'CustomModule\Frontend\Elements\SingleProductteaser',
  70. );
  71. /**
  72.  * Frame Work Zeile Umschlag
  73.  */
  74. $GLOBALS['TL_CTE']['47_ElementRow'] = array(
  75.     '47_ElementRow_Start'             => 'CustomModule\Frontend\Elements\RowStart',
  76.     '47_ElementRow_Stop'              => 'CustomModule\Frontend\Elements\RowStop',
  77. );
  78. /**
  79.  * Frame Work Spalte Umschlag
  80.  */
  81. $GLOBALS['TL_CTE']['47_ElementColumn'] = array(
  82.     '47_ElementColumn_Start'             => 'CustomModule\Frontend\Elements\ColumnStart',
  83.     '47_ElementColumn_Stop'              => 'CustomModule\Frontend\Elements\ColumnStop',
  84. );
  85. /**
  86.  * Frame Work Kombi Zeile Spalte
  87.  */
  88. $GLOBALS['TL_CTE']['47_ElementRowColumn'] = array(
  89.     '47_ElementRowColumn_Start'             => 'CustomModule\Frontend\Elements\RowColumnStart',
  90.     '47_ElementRowColumn_Stop'              => 'CustomModule\Frontend\Elements\RowColumnStop',
  91. );
  92. /**
  93.  * Define Wrappers
  94.  */
  95. $GLOBALS['TL_WRAPPERS']['start'][]  = '47_MasterSlider_Start';
  96. $GLOBALS['TL_WRAPPERS']['stop'][]   = '47_MasterSlider_Stop';
  97. $GLOBALS['TL_WRAPPERS']['start'][]  = '47_ElementRow_Start';
  98. $GLOBALS['TL_WRAPPERS']['stop'][]   = '47_ElementRow_Stop';
  99. $GLOBALS['TL_WRAPPERS']['start'][]  = '47_ElementColumn_Start';
  100. $GLOBALS['TL_WRAPPERS']['stop'][]   = '47_ElementColumn_Stop';
  101. $GLOBALS['TL_WRAPPERS']['start'][]  = '47_ElementRowColumn_Start';
  102. $GLOBALS['TL_WRAPPERS']['stop'][]   = '47_ElementRowColumn_Stop';
  103. /**
  104.  * Models
  105.  */
  106. $GLOBALS['TL_MODELS']['tl_member_group']                    = 'CustomModule\Models\MemberGroupModel';
  107. // $GLOBALS['TL_MODELS']['tl_member']                          = 'CustomModule\Models\MemberModel';
  108. $GLOBALS['TL_MODELS']['tl_sm_affilliate_partner']           = 'CustomModule\Models\AffilliatePartnerModel';
  109. $GLOBALS['TL_MODELS']['tl_sm_downloadcredits']              = 'CustomModule\Models\DownloadcreditsModel';
  110. $GLOBALS['TL_MODELS']['tl_sm_photocompetition_subscriber']  = 'CustomModule\Models\PhotocompetitionSubscriberModel';
  111. /**
  112.  * Hooks
  113.  */
  114. $GLOBALS['TL_HOOKS']['createNewUser'][] = array('CustomModule\Hooks''createUserCheckAffilliate');
  115. $GLOBALS['TL_HOOKS']['postLogin'][] = array('CustomModule\Hooks''postLoginShopUser');
  116. /*
  117.  * Notification Center
  118.  */
  119. $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['sympathiemagazine'] = [
  120.     'notifications' => [
  121.         'email_sender_address' => ['admin_mail'],
  122.         'email_sender_name' => ['admin_name'],
  123.         'recipients' => ['user_*''admin_mail'],
  124.         'email_subject' => ['member_*'],
  125.         'email_text' => ['user_*''domain''emailverification_link''file1''file2''file3''statusNewsletter'],
  126.         //'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'],
  127.         //'file_name' => ['certificate_*', 'member_*', 'admin_email', 'recipient_email', 'system_url'],
  128.         //'file_content' => ['certificate_*', 'member_*', 'admin_email', 'recipient_email', 'system_url'],
  129.         //'email_recipient_cc' => ['admin_email'],
  130.         //'email_recipient_bcc' => ['admin_email'],
  131.         //'email_replyTo' => ['admin_email'],
  132.         //'attachment_tokens' => ['file_project'],
  133.     ],
  134. ];