-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_form.php
195 lines (173 loc) · 8.84 KB
/
config_form.php
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
193
194
195
<?php echo js_tag('vendor/tinymce/tinymce.min'); ?>
<script type="text/javascript">
jQuery(document).ready(function () {
Omeka.wysiwyg({
selector: '.html-editor'
});
});
</script>
<?php
$view = get_view();
?>
<h2><?php echo __('New Item Addition'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_item', __('Enable Notification')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, sends a notification every time a new Item is added.'); ?>
</p>
<?php echo $view->formCheckbox('email_notification_new_item', get_option('email_notification_new_item'), null, array('1', '0')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_item_email_subject', __('E-mail Subject')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The subject line for the notification e-mail sent to recipients.'); ?>
</p>
<?php echo $view->formText('email_notification_new_item_email_subject', get_option('email_notification_new_item_email_subject')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_item_email_message', __('E-mail Message')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The notification message to be sent to recipients. User can insert any of the following fields (within curly braces) in the text, as many times as they want; they will be substituted by the actual values when the message is sent: %s', '<b>{item_title}</b>, <b>{item_creator}</b>, <b>{item_creation_date}</b>, <b>{item_collection_title}</b>, <b>{item_public_status}</b>, <b>{item_featured_status}</b>, <b>{item_admin_url}</b>, <b>{item_public_url}</b>') ?>
</p>
<?php echo $view->formTextarea('email_notification_new_item_email_message', get_option('email_notification_new_item_email_message'), array('rows' => '10', 'cols' => '60', 'class' => array('html-editor'))); ?>
</div>
</div>
<h2><?php echo __('New Collection Addition'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_collection', __('Enable Notification')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, sends a notification every time a new Collection is added.'); ?>
</p>
<?php echo $view->formCheckbox('email_notification_new_collection', get_option('email_notification_new_collection'), null, array('1', '0')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_collection_email_subject', __('E-mail Subject')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The subject line for the notification e-mail sent to recipients.'); ?>
</p>
<?php echo $view->formText('email_notification_new_collection_email_subject', get_option('email_notification_new_collection_email_subject')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_collection_email_message', __('E-mail Message')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The notification message to be sent to recipients. User can insert any of the following fields (within curly braces) in the text, as many times as they want; they will be substituted by the actual values when the message is sent: %s', '<b>{collection_title}</b>, <b>{collection_creator}</b>, <b>{collection_creation_date}</b>, <b>{collection_public_status}</b>, <b>{collection_featured_status}</b>, <b>{collection_admin_url}</b>, <b>{collection_public_url}</b>'); ?>
</p>
<?php echo $view->formTextarea('email_notification_new_collection_email_message', get_option('email_notification_new_collection_email_message'), array('rows' => '10', 'cols' => '60', 'class' => array('html-editor'))); ?>
</div>
</div>
<h2><?php echo __('New Exhibit Addition'); ?></h2>
<?php if (plugin_is_active('ExhibitBuilder')): ?>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_exhibit', __('Enable Notification')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, sends a notification every time a new Exhibit is added.'); ?>
</p>
<?php echo $view->formCheckbox('email_notification_new_exhibit', get_option('email_notification_new_exhibit'), null, array('1', '0')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_exhibit_email_subject', __('E-mail Subject')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The subject line for the notification e-mail sent to recipients.'); ?>
</p>
<?php echo $view->formText('email_notification_new_exhibit_email_subject', get_option('email_notification_new_exhibit_email_subject')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_exhibit_email_message', __('E-mail Message')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The notification message to be sent to recipients. User can insert any of the following fields (within curly braces) in the text, as many times as they want; they will be substituted by the actual values when the message is sent: %s', '<b>{exhibit_title}</b>, <b>{exhibit_creator}</b>, <b>{exhibit_creation_date}</b>, <b>{exhibit_public_status}</b>, <b>{exhibit_featured_status}</b>, <b>{exhibit_admin_url}</b>, <b>{exhibit_public_url}</b>') ?>
</p>
<?php echo $view->formTextarea('email_notification_new_exhibit_email_message', get_option('email_notification_new_exhibit_email_message'), array('rows' => '10', 'cols' => '60', 'class' => array('html-editor'))); ?>
</div>
</div>
<?php else: ?>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_new_exhibit_email_message', __('Plugin Unavailable')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The Exhibit Builder plugin is not installed or active. Install and activate the plugin in order to be able to configure notifications for new Exhibits.'); ?>
</p>
</div>
</div>
<?php endif; ?>
<h2><?php echo __('Recipients'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_recipient_address', __('Recipient Address')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('The address(es) that will receive the notification. Multiple addresses must be separated by a comma (,).'); ?>
</p>
<?php echo $view->formInput('email_notification_recipient_address', get_option('email_notification_recipient_address'), array('type'=>'email','multiple'=>'multiple')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_notify_editors', __('Notify Editors')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, system sends a notification of new submissions also to users with editing role.'); ?>
</p>
<?php echo $view->formCheckbox('email_notification_notify_editors', get_option('email_notification_notify_editors'), null, array('1', '0')); ?>
</div>
</div>
<h2><?php echo __('Publishing'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_notify_owner', __('Notify Owner')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, system sends a notification to original owner when an Item / Collection / Exhibit they contributed is made public.'); ?>
</p>
<?php echo $view->formCheckbox('email_notification_notify_owner', get_option('email_notification_notify_owner'), null, array('1', '0')); ?>
</div>
</div>
<h2><?php echo __('Alerts'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('email_notification_notification_alert', __('Notification Alert')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, system shows an alert informing contributor that notifications have been sent.'); ?>
</p>
<?php echo $view->formCheckbox('email_notification_notification_alert', get_option('email_notification_notification_alert'), null, array('1', '0')); ?>
</div>
</div>