-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.xml
192 lines (174 loc) · 8 KB
/
install.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?xml version="1.0" encoding="utf-8"?>
<module type="plugin" name="newsletters">
<title>Newsletters</title>
<summary>Allows to perform a mass mailing to all the users of the script and subscribers</summary>
<author>Intelliants LLC</author>
<contributor>Intelliants LLC</contributor>
<version>4.2.0</version>
<date>2018-09-05</date>
<compatibility>4.2</compatibility>
<actions>
<action name="newsletter_archive" url="newsletters/emails/" icon="list" pages="newsletters, newsletters_subscribers"><![CDATA[]]></action>
<action name="subscribers" url="newsletters/subscribers/" icon="list" pages="newsletters, newsletters_emails"><![CDATA[]]></action>
<action name="add_subscriber" url="newsletters/subscribers/add/" icon="plus-alt" pages="newsletters_subscribers"><![CDATA[]]></action>
<action name="newsletters_add" url="newsletters/add/" icon="plus" pages="newsletters"><![CDATA[]]></action>
</actions>
<adminpages>
<page name="newsletters" order="115" url="newsletters/" menus="menu" filename="queue">Newsletters</page>
<page name="newsletters_subscribers" parent="newsletters" url="newsletters/subscribers/" filename="subscribers">Subscribers</page>
<page name="newsletters_emails" parent="newsletters" url="newsletters/emails/" filename="emails">Email Archive</page>
<page name="newsletters_add" parent="newsletters" url="newsletters/add/" action="add" filename="queue">Add email</page>
</adminpages>
<pages>
<page name="newsletters" nofollow="1" url="newsletters/">Newsletters</page>
</pages>
<emails>
<email description="Newsletters" divider="1"><![CDATA[]]></email>
<email name="newsletter_subscription"
description="Newsletter Subscription"
subject="Newsletters from {$siteName}">
<![CDATA[
<p>Thanks for subscribing to our newsletters at {$siteUrl}!</p>
<p>To confirm your subscription, please, <a href="{$siteUrl}newsletters/?subscribe={$newslettersToken}&email={$newslettersEmail}">follow this link</a></p>
<p>______________________________<br />
Thank you,<br />
{$siteName} Administration Team<br />
{$siteUrl}<br />
</p>
]]>
</email>
<email name="newsletter_send_subscribers"
description="Newsletter Sending - Subscribers"
subject="Newsletters from {$siteName}">
<![CDATA[
<p>Greetings {$fullName}!</p>
{$newslettersContent}
<p>To unsubscribe from the newsletters please use <a href="{$siteUrl}newsletters/?unsubscribe={$newslettersToken}">this link</a>.</p>
<p>______________________________<br />
Thank you,<br />
{$siteName} Administration Team<br />
{$siteUrl}<br />
</p>
]]>
</email>
<email name="newsletter_send_members"
description="Newsletter Sending - Members"
subject="Newsletters from {$siteName}">
<![CDATA[
<p>Greetings {$fullName}!</p>
{$newslettersContent}
<p>______________________________<br />
Thank you,<br />
{$siteName} Administration Team<br />
{$siteUrl}<br />
</p>
]]>
</email>
</emails>
<configgroup name="newsletters">Newsletters Subscribers</configgroup>
<config group="newsletters" type="radio" name="newsletters_block_fullname" values="1,0" description="Enable Fullname field on Newsletters block">0</config>
<cron name="Newsletters queue">*/5 * * * * modules/newsletters/includes/cron/mailer.php</cron>
<phrases>
<phrase category="admin" key="from_name">From Name</phrase>
<phrase category="admin" key="from_mail">From Mail</phrase>
<phrase category="admin" key="last_sent">Last sent</phrase>
<phrase category="admin" key="newsletters_subscribers">Subscribers</phrase>
<phrase category="admin" key="newsletter">Newsletters</phrase>
<phrase category="admin" key="no_recipients">Message would not have recipients.</phrase>
<phrase category="admin" key="pause">Pause</phrase>
<phrase category="admin" key="queue_added">Emails have been added to the queue.</phrase>
<phrase category="admin" key="queue_empty">There are no messages.</phrase>
<phrase category="admin" key="queue_removed">Mail queue was removed.</phrase>
<phrase category="admin" key="recipients">Recipients</phrase>
<phrase category="admin" key="sender">Sender</phrase>
<phrase category="admin" key="subscribers">Subscribers</phrase>
<phrase category="admin" key="newsletters_add">Add Email</phrase>
<phrase category="admin" key="newsletter_archive">Email archive</phrase>
<phrase category="admin" key="add_subscriber">Add Subscriber</phrase>
<phrase category="common" key="subscriber_email_exists">This E-mail has already been added to the subscription list earlier.</phrase>
<phrase category="frontend" key="newsletters_confirmed">Email is confirmed. Thanks!</phrase>
<phrase category="frontend" key="newsletters_confirmation_code_incorrect">Token is incorrect</phrase>
<phrase category="frontend" key="empty_email_input">The E-mail field is empty</phrase>
<phrase category="frontend" key="enter_email">Enter your E-mail</phrase>
<phrase category="frontend" key="enter_fullname">Enter your Fullname</phrase>
<phrase category="frontend" key="newsletters_unsubscribed">You have been unsubscribed from the newsletters.</phrase>
<phrase category="frontend" key="subscribe">Subscribe</phrase>
<phrase category="frontend" key="subscription_email_sent">Done! Please check your inbox for the futher instructions.</phrase>
</phrases>
<blocks>
<block name="newsletters_subscription" title="Newsletters" collapsible="0" position="right" type="smarty"
filename="block.newsletters.tpl"><![CDATA[]]></block>
</blocks>
<hooks>
<hook name="adminDashboardStatistics" page_type="admin"><![CDATA[$items['newsletters:newsletters'] = 'plugin';]]></hook>
</hooks>
<install>
<sql>
<![CDATA[
CREATE TABLE `{prefix}newsletter_subscribers` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`date` datetime NOT NULL,
`fullname` varchar(50) NULL,
`email` varchar(50) NOT NULL,
`topics` text NOT NULL,
`token` char(32) NOT NULL,
`last_sent` timestamp NOT NULL,
`status` enum('active', 'inactive') NOT NULL default 'inactive',
UNIQUE `EMAIL` (`email`),
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
</install>
<install>
<sql>
<![CDATA[
CREATE TABLE `{prefix}newsletter_messages` (
`id` mediumint(7) unsigned NOT NULL auto_increment,
`from_name` varchar(50) NOT NULL,
`from_mail` varchar(50) NOT NULL,
`subj` varchar(200) NOT NULL,
`body` text NOT NULL,
`html` tinyint(1) unsigned NOT NULL,
`active` tinyint(1) unsigned NOT NULL default 1,
`total` mediumint(7) unsigned NOT NULL,
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
<sql>
<![CDATA[
CREATE TABLE `{prefix}newsletter_messages_archive` (
`id` mediumint(7) unsigned NOT NULL auto_increment,
`from_name` varchar(50) NOT NULL,
`from_mail` varchar(50) NOT NULL,
`date_added` datetime NOT NULL,
`subj` varchar(200) NOT NULL,
`body` text NOT NULL,
`html` tinyint(1) unsigned NOT NULL,
`active` tinyint(1) unsigned NOT NULL default 1,
`total` mediumint(7) unsigned NOT NULL,
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
<sql>
<![CDATA[
CREATE TABLE `{prefix}newsletter_recipients` (
`id` int(8) unsigned NOT NULL auto_increment,
`message_id` mediumint(7) unsigned NOT NULL,
`recipients` text NOT NULL,
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
</install>
<uninstall>
<sql>
<![CDATA[
DROP TABLE IF EXISTS `{prefix}newsletter_subscribers`, `{prefix}newsletter_messages`,
`{prefix}newsletter_recipients`, `{prefix}newsletter_messages_archive`;
]]>
</sql>
</uninstall>
</module>