... | ... |
@@ -17,10 +17,14 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao']['news_submitted'] |
17 | 17 |
), |
18 | 18 |
'email_text' => array |
19 | 19 |
( |
20 |
+ 'member_firstname', // The firstname of the recipient |
|
21 |
+ 'member_lastname', // The lastname of the recipient |
|
20 | 22 |
'news_topics' // The titles of all new news |
21 | 23 |
), |
22 | 24 |
'email_html' => array |
23 | 25 |
( |
26 |
+ 'member_firstname', // The firstname of the recipient |
|
27 |
+ 'member_lastname', // The lastname of the recipient |
|
24 | 28 |
'news_topics_html', // The titles of all new news |
25 | 29 |
'news_topics' // The titles of all new news |
26 | 30 |
) |
... | ... |
@@ -26,4 +26,4 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao']['news_submitted'] |
26 | 26 |
) |
27 | 27 |
); |
28 | 28 |
|
29 |
-$GLOBALS['TL_CRON']['daily'][] = array('eSM_nc_news\\NewsNotifications', 'sendNotifications'); |
|
30 | 29 |
\ No newline at end of file |
30 |
+$GLOBALS['TL_CRON']['hourly'][] = array('eSM_nc_news\NewsNotifications', 'sendNotifications'); |
|
31 | 31 |
\ No newline at end of file |
... | ... |
@@ -24,4 +24,6 @@ $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao']['news_submitted'] |
24 | 24 |
'news_topics_html', // The titles of all new news |
25 | 25 |
'news_topics' // The titles of all new news |
26 | 26 |
) |
27 |
-); |
|
28 | 27 |
\ No newline at end of file |
28 |
+); |
|
29 |
+ |
|
30 |
+$GLOBALS['TL_CRON']['daily'][] = array('eSM_nc_news\\NewsNotifications', 'sendNotifications'); |
|
29 | 31 |
\ No newline at end of file |
... | ... |
@@ -9,23 +9,19 @@ |
9 | 9 |
* @license commercial |
10 | 10 |
*/ |
11 | 11 |
|
12 |
-$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao'] = array |
|
12 |
+$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao']['news_submitted'] = array |
|
13 | 13 |
( |
14 |
- // Type |
|
15 |
- 'news_submitted' => array |
|
14 |
+ 'recipients' => array |
|
16 | 15 |
( |
17 |
- 'recipients' => array |
|
18 |
- ( |
|
19 |
- 'member_email' // The email address of the recipient |
|
20 |
- ), |
|
21 |
- 'email_text' => array |
|
22 |
- ( |
|
23 |
- 'news_topics' // The titles of all new news |
|
24 |
- ), |
|
25 |
- 'email_html' => array |
|
26 |
- ( |
|
27 |
- 'news_topics_html', // The titles of all new news |
|
28 |
- 'news_topics' // The titles of all new news |
|
29 |
- ) |
|
16 |
+ 'member_email' // The email address of the recipient |
|
17 |
+ ), |
|
18 |
+ 'email_text' => array |
|
19 |
+ ( |
|
20 |
+ 'news_topics' // The titles of all new news |
|
21 |
+ ), |
|
22 |
+ 'email_html' => array |
|
23 |
+ ( |
|
24 |
+ 'news_topics_html', // The titles of all new news |
|
25 |
+ 'news_topics' // The titles of all new news |
|
30 | 26 |
) |
31 | 27 |
); |
32 | 28 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * News notification extension for Contao |
|
5 |
+ * |
|
6 |
+ * Copyright (c) 2016 Benjamin Roth |
|
7 |
+ * |
|
8 |
+ * @link http://www.esales-media.de |
|
9 |
+ * @license commercial |
|
10 |
+ */ |
|
11 |
+ |
|
12 |
+$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao'] = array |
|
13 |
+( |
|
14 |
+ // Type |
|
15 |
+ 'news_submitted' => array |
|
16 |
+ ( |
|
17 |
+ 'recipients' => array |
|
18 |
+ ( |
|
19 |
+ 'member_email' // The email address of the recipient |
|
20 |
+ ), |
|
21 |
+ 'email_text' => array |
|
22 |
+ ( |
|
23 |
+ 'news_topics' // The titles of all new news |
|
24 |
+ ), |
|
25 |
+ 'email_html' => array |
|
26 |
+ ( |
|
27 |
+ 'news_topics_html', // The titles of all new news |
|
28 |
+ 'news_topics' // The titles of all new news |
|
29 |
+ ) |
|
30 |
+ ) |
|
31 |
+); |
|
0 | 32 |
\ No newline at end of file |