| @@ -1,269 +1,0 @@ | ||
| 1 | -<div class="acym__content acym_area padding-vertical-1 padding-horizontal-2 margin-bottom-2"> | |
| 2 | - <div class="cell margin-bottom-2"> | |
| 3 | - <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_CONFIDENTIALITY'); ?></div> | |
| 4 | - <div class="grid-x grid-margin-x"> | |
| 5 | - <?php echo acym_switch( | |
| 6 | - 'config[gdpr_export]', | |
| 7 | - $this->config->get('gdpr_export'), | |
| 8 | - acym_translation('ACYM_GDPR_EXPORT_BUTTON'), | |
| 9 | - [], | |
| 10 | - 'xlarge-3 medium-5 small-9', | |
| 11 | - 'auto', | |
| 12 | - '', | |
| 13 | - 'export_config' | |
| 14 | - ); ?> | |
| 15 | - </div> | |
| 16 | - <div class="grid-x grid-margin-x margin-top-1"> | |
| 17 | - <?php echo acym_switch( | |
| 18 | - 'config[gdpr_delete]', | |
| 19 | - $this->config->get('gdpr_delete'), | |
| 20 | - acym_translation('ACYM_GDPR_DELETE_BUTTON'), | |
| 21 | - [], | |
| 22 | - 'xlarge-3 medium-5 small-9' | |
| 23 | - ); ?> | |
| 24 | - </div> | |
| 25 | - <div class="grid-x grid-margin-x margin-top-1"> | |
| 26 | - <label class="cell large-3" for="security_key"> | |
| 27 | - <?php echo acym_translation('ACYM_IP_COLLECTION').acym_info(['textShownInTooltip' => 'ACYM_IP_COLLECTION_DESC']); ?> | |
| 28 | - </label> | |
| 29 | - <div class="cell large-9"> | |
| 30 | - <div> | |
| 31 | - <?php | |
| 32 | - echo acym_select( | |
| 33 | - [ | |
| 34 | - 'yes' => acym_translation('ACYM_YES'), | |
| 35 | - 'anonymised' => acym_translation('ACYM_ANONYMISED'), | |
| 36 | - 'no' => acym_translation('ACYM_NO'), | |
| 37 | - ], | |
| 38 | - 'config[ip_collection]', | |
| 39 | - $this->config->get('ip_collection', 'yes'), | |
| 40 | - [ | |
| 41 | - 'class' => 'acym__select intext_select', | |
| 42 | - ] | |
| 43 | - ); | |
| 44 | - ?> | |
| 45 | - </div> | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - </div> | |
| 49 | - | |
| 50 | - <div class="cell margin-bottom-2"> | |
| 51 | - <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_TRACKING'); ?></div> | |
| 52 | - | |
| 53 | - <div class="grid-x grid-margin-x margin-y"> | |
| 54 | - <label class="cell xlarge-3 small-5" for="from_as_replyto"> | |
| 55 | - <?php echo acym_translation('ACYM_TRACKINGSYSTEM'); ?> | |
| 56 | - </label> | |
| 57 | - <div class="cell xlarge-9 small-7 acym_vcenter"> | |
| 58 | - <?php $trackingMode = $this->config->get('trackingsystem', 'acymailing'); ?> | |
| 59 | - | |
| 60 | - <input | |
| 61 | - type="checkbox" | |
| 62 | - name="config[trackingsystem][]" | |
| 63 | - id="trackingsystem[0]" | |
| 64 | - value="acymailing" | |
| 65 | - <?php echo stripos($trackingMode, 'acymailing') !== false ? 'checked="checked"' : ''; ?> | |
| 66 | - /> | |
| 67 | - <label for="trackingsystem[0]">AcyMailing<?php echo acym_info(['textShownInTooltip' => 'ACYM_TRACKINGSYSTEM_ACY_DESC']); ?></label> | |
| 68 | - | |
| 69 | - <input | |
| 70 | - type="checkbox" | |
| 71 | - name="config[trackingsystem][]" | |
| 72 | - id="trackingsystem[1]" | |
| 73 | - value="google" | |
| 74 | - <?php echo stripos($trackingMode, 'google') !== false ? 'checked="checked"' : ''; ?> | |
| 75 | - /> | |
| 76 | - <label for="trackingsystem[1]">Google Analytics<?php echo acym_info(['textShownInTooltip' => 'ACYM_TRACKINGSYSTEM_GA_DESC']); ?></label> | |
| 77 | - | |
| 78 | - <input type="hidden" name="config[trackingsystem][]" value="1" /> | |
| 79 | - </div> | |
| 80 | - </div> | |
| 81 | - | |
| 82 | - <div class="grid-x grid-margin-x margin-y margin-top-1"> | |
| 83 | - <?php | |
| 84 | - echo acym_switch( | |
| 85 | - 'config[trackingsystemexternalwebsite]', | |
| 86 | - $this->config->get('trackingsystemexternalwebsite'), | |
| 87 | - acym_translation('ACYM_TRACKINGSYSTEM_EXTERNAL_LINKS').acym_info(['textShownInTooltip' => 'ACYM_TRACKINGSYSTEM_EXTERNAL_LINKS_DESC']), | |
| 88 | - [], | |
| 89 | - 'xlarge-3 medium-5 small-9', | |
| 90 | - 'auto', | |
| 91 | - '', | |
| 92 | - 'external_config' | |
| 93 | - ); | |
| 94 | - ?> | |
| 95 | - </div> | |
| 96 | - <div class="cell grid-x margin-y margin-top-1"> | |
| 97 | - <div class="cell medium-3"> | |
| 98 | - <label for="tracking_delay"> | |
| 99 | - <?php | |
| 100 | - echo acym_escape(acym_translation('ACYM_TRACKING_DELAY')); | |
| 101 | - echo acym_info( | |
| 102 | - [ | |
| 103 | - 'textShownInTooltip' => 'ACYM_TRACKING_DELAY_DESC', | |
| 104 | - ] | |
| 105 | - ); | |
| 106 | - ?> | |
| 107 | - </label> | |
| 108 | - </div> | |
| 109 | - <div class="cell medium-9 grid-x"> | |
| 110 | - <div class="cell medium-6 large-4 xlarge-3 xxlarge-2"> | |
| 111 | - <input | |
| 112 | - id="tracking_delay" | |
| 113 | - type="number" | |
| 114 | - class="intext_input" | |
| 115 | - min="0" | |
| 116 | - name="config[tracking_delay]" | |
| 117 | - value="<?php echo intval($this->config->get('tracking_delay', 0)); ?>" | |
| 118 | - /> | |
| 119 | - </div> | |
| 120 | - </div> | |
| 121 | - </div> | |
| 122 | - </div> | |
| 123 | - <div class="cell margin-bottom-2"> | |
| 124 | - <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_DATA_MANAGEMENT'); ?></div> | |
| 125 | - <?php if (acym_level(ACYM_ESSENTIAL)) { ?> | |
| 126 | - <div class="grid-x grid-margin-x margin-y"> | |
| 127 | - <?php | |
| 128 | - echo acym_switch( | |
| 129 | - 'config[delete_stats_enabled]', | |
| 130 | - $this->config->get('delete_stats_enabled', 0), | |
| 131 | - acym_translation('ACYM_DELETE_DETAILED_STATS_AFTER').acym_info(['textShownInTooltip' => 'ACYM_DELETE_DETAILED_STATS_AFTER_DESC']), | |
| 132 | - [], | |
| 133 | - 'xlarge-3 medium-5 small-9', | |
| 134 | - 'auto', | |
| 135 | - '', | |
| 136 | - 'delete_stats_enabled' | |
| 137 | - ); ?> | |
| 138 | - <div class="cell grid-x" id="delete_stats_enabled"> | |
| 139 | - <?php | |
| 140 | - $delayTypeAuto = $data['typeDelay']; | |
| 141 | - echo $delayTypeAuto->display('config[delete_stats]', $this->config->get('delete_stats', 86400 * 360), \AcyMailing\Types\DelayType::TYPE_WEEKS_MONTHS); | |
| 142 | - ?> | |
| 143 | - </div> | |
| 144 | - </div> | |
| 145 | - <?php } ?> | |
| 146 | - <div class="grid-x grid-margin-x margin-y margin-top-1"> | |
| 147 | - <?php | |
| 148 | - echo acym_switch( | |
| 149 | - 'config[delete_user_history_enabled]', | |
| 150 | - $this->config->get('delete_user_history_enabled', 0), | |
| 151 | - acym_translation('ACYM_DELETE_USER_HISTORY_AFTER'), | |
| 152 | - [], | |
| 153 | - 'xlarge-3 medium-5 small-9', | |
| 154 | - 'auto', | |
| 155 | - '', | |
| 156 | - 'delete_user_history_enabled' | |
| 157 | - ); ?> | |
| 158 | - <div class="cell grid-x" id="delete_user_history_enabled"> | |
| 159 | - <?php | |
| 160 | - $delayTypeAuto = $data['typeDelay']; | |
| 161 | - echo $delayTypeAuto->display('config[delete_user_history]', $this->config->get('delete_user_history', 0), \AcyMailing\Types\DelayType::TYPE_WEEKS_MONTHS); | |
| 162 | - ?> | |
| 163 | - </div> | |
| 164 | - </div> | |
| 165 | - <div class="grid-x grid-margin-x margin-y margin-top-1"> | |
| 166 | - <?php | |
| 167 | - echo acym_switch( | |
| 168 | - 'config[delete_archive_history_enabled]', | |
| 169 | - $this->config->get('delete_archive_history_enabled', 1), | |
| 170 | - acym_translation('ACYM_DELETE_ARCHIVE_HISTORY_AFTER'), | |
| 171 | - [], | |
| 172 | - 'xlarge-3 medium-5 small-9', | |
| 173 | - 'auto', | |
| 174 | - '', | |
| 175 | - 'delete_archive_history_enabled' | |
| 176 | - ); ?> | |
| 177 | - <div class="cell grid-x" id="delete_archive_history_enabled"> | |
| 178 | - <?php | |
| 179 | - $delayTypeAuto = $data['typeDelay']; | |
| 180 | - echo $delayTypeAuto->display( | |
| 181 | - 'config[delete_archive_history_after]', | |
| 182 | - $this->config->get('delete_archive_history_after', 86400 * 90), | |
| 183 | - \AcyMailing\Types\DelayType::TYPE_WEEKS_MONTHS | |
| 184 | - ); | |
| 185 | - ?> | |
| 186 | - </div> | |
| 187 | - </div> | |
| 188 | - </div> | |
| 189 | - <div class="cell margin-bottom-2"> | |
| 190 | - <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_USER_DATA_MANAGEMENT'); ?></div> | |
| 191 | - <div class="grid-x grid-margin-x margin-y"> | |
| 192 | - <?php | |
| 193 | - echo acym_switch( | |
| 194 | - 'config[export_data_changes]', | |
| 195 | - $this->config->get('export_data_changes', 0), | |
| 196 | - acym_translation('ACYM_EXPORT_DATA_CHANGES').acym_info(['textShownInTooltip' => 'ACYM_EXPORT_DATA_CHANGES_DESC']), | |
| 197 | - [], | |
| 198 | - 'xlarge-3 medium-5 small-9', | |
| 199 | - 'auto', | |
| 200 | - '', | |
| 201 | - 'export_data_changes' | |
| 202 | - ); ?> | |
| 203 | - <div id="export_data_changes" class="cell grid-x margin-top-1"> | |
| 204 | - <div class="cell grid-x"> | |
| 205 | - <label class="xlarge-3 medium-5 small-9"><?php echo acym_translation('ACYM_SELECT_FIELDS_TO_EXPORT'); ?></label> | |
| 206 | - <div class="cell xlarge-3 medium-5 small-9"> | |
| 207 | - <?php echo acym_selectMultiple( | |
| 208 | - $data['fields'], | |
| 209 | - 'config[export_data_changes_fields]', | |
| 210 | - $data['export_data_changes_fields'], | |
| 211 | - ['class' => 'acym__select'], | |
| 212 | - 'id', | |
| 213 | - 'name', | |
| 214 | - true | |
| 215 | - ); ?> | |
| 216 | - </div> | |
| 217 | - </div> | |
| 218 | - <div class="cell grid-x margin-top-1"> | |
| 219 | - <div class="cell xlarge-3 medium-5 small-9 grid-x"> | |
| 220 | - <button type="button" class="button button-secondary acy_button_submit cell shrink" data-task="downloadExportChangesFile"> | |
| 221 | - <?php echo acym_translation('ACYM_EXPORT'); ?> | |
| 222 | - </button> | |
| 223 | - </div> | |
| 224 | - <div class="cell xlarge-3 medium-5 small-9"> | |
| 225 | - <?php | |
| 226 | - $choices = [1 => acym_translation('ACYM_CURRENT_MONTH'), 0 => acym_translation('ACYM_PREVIOUS_MONTH')]; | |
| 227 | - echo acym_select($choices, 'export_changes_file_current', 1, ['class' => 'acym__select']); | |
| 228 | - ?> | |
| 229 | - </div> | |
| 230 | - </div> | |
| 231 | - </div> | |
| 232 | - </div> | |
| 233 | - </div> | |
| 234 | - <div class="cell margin-bottom-2"> | |
| 235 | - <div class="acym__title acym__title__secondary"> | |
| 236 | - <?php echo acym_translation('ACYM_DATA_EXPORT_MANAGEMENT'); ?> | |
| 237 | - </div> | |
| 238 | - | |
| 239 | - <div class="grid-x grid-margin-x margin-y"> | |
| 240 | - <label class="cell xlarge-3 medium-5 small-9"> | |
| 241 | - <?php | |
| 242 | - echo acym_translation('ACYM_CSV_SEPARATOR_CHOICE'); | |
| 243 | - echo acym_info( | |
| 244 | - [ | |
| 245 | - 'textShownInTooltip' => acym_translation('ACYM_CSV_SEPARATOR_CHOICE_DESC'), | |
| 246 | - ] | |
| 247 | - ); | |
| 248 | - ?> | |
| 249 | - </label> | |
| 250 | - <div class="cell xlarge-9 medium-7 small-12 acym_vcenter"> | |
| 251 | - <label class="margin-right-1"> | |
| 252 | - <input type="radio" | |
| 253 | - name="config[csv_separator]" | |
| 254 | - value=";" | |
| 255 | - <?php echo $this->config->get('csv_separator', ',') === ';' ? 'checked="checked"' : ''; ?> /> | |
| 256 | - ; | |
| 257 | - </label> | |
| 258 | - | |
| 259 | - <label> | |
| 260 | - <input type="radio" | |
| 261 | - name="config[csv_separator]" | |
| 262 | - value="," | |
| 263 | - <?php echo $this->config->get('csv_separator', ',') === ',' ? 'checked="checked"' : ''; ?> /> | |
| 264 | - , | |
| 265 | - </label> | |
| 266 | - </div> | |
| 267 | - </div> | |
| 268 | - </div> | |
| 269 | -</div> | |