encodingField('config[encoding_format]', $this->config->get('encoding_format', '8bit'));
?>
charsetField(
'config[charset]',
$this->config->get('charset'),
['class' => 'acym__select'],
true
);
?>
[
'label' => 'ACYM_SPECIAL_CHARS',
],
'multiple_part' => [
'label' => 'ACYM_CONFIGURATION_MULTIPART',
],
'prevent_hyphens' => [
'label' => 'ACYM_PREVENT_HYPHENS',
],
'embed_images' => [
'label' => 'ACYM_CONFIGURATION_EMBED_IMAGES',
'info_disabled' => 'ACYM_CONFIGURATION_OPTION_DESC_DISABLED',
],
'embed_files' => [
'label' => 'ACYM_CONFIGURATION_EMBED_ATTACHMENTS',
'info_disabled' => 'ACYM_CONFIGURATION_OPTION_DESC_DISABLED',
],
'archive_index' => [
'label' => 'ACYM_CONFIGURATION_INDEX_ARCHIVE',
],
'send_website_emails' => [
'label' => 'ACYM_SEND_WEBSITE_EMAILS',
],
];
foreach ($options as $oneOption => $option) {
echo '
';
$label = $option['label'];
$info = empty($option['info_disabled']) ? '' : ''.acym_translation($option['info_disabled']).' ';
$description = $label.'_DESC';
$translatedDescription = acym_translation($description);
if ($translatedDescription !== $description) {
$info .= $translatedDescription;
}
$default = empty($option['default']) ? 0 : $option['default'];
acym_switch([
'name' => 'config['.$oneOption.']',
'value' => $this->config->get($oneOption, $default),
'label' => acym_translation($label),
'tip' => empty($info) ? null : ['textShownInTooltip' => $info],
]);
echo '
';
}
?>
config->get('embed_files', 0) ? 'style="display:none;"' : ''; ?>>
'ACYM_CONFIGURATION_ATTACHMENTS_POSITION_DESC']
);
?>
acym_translation('ACYM_TOP_OF_EMAIL_CONTENT'),
'bottom' => acym_translation('ACYM_BOTTOM_OF_EMAIL_CONTENT'),
],
'config[attachments_position]',
$this->config->get('attachments_position', 'bottom'),
['class' => 'acym__select'],
'value',
'text',
null,
false,
true
);
?>
'ACYM_MAIL_MAX_LINE_LENGTH_DESC']); ?>
'config[dkim]',
'value' => $this->config->get('dkim'),
'label' => acym_translation('ACYM_CONFIGURATION_DKIM'),
'tip' => ['textShownInTooltip' => 'ACYM_INTRO_DKIM'],
'toggle' => 'dkim_config',
]); ?>
config->get('dkim_domain', '');
if (empty($domain)) {
$domain = preg_replace(['#^https?://(www\.)*#i', '#^www\.#'], '', ACYM_LIVE);
//we load the first part of the domain, until we get a / (yes, there is always a / at the end as the ACYM_LIVE adds one)
$domain = substr($domain, 0, strpos($domain, '/'));
}
$dkimSelector = $this->config->get('dkim_selector', 'acy');
if ((!empty($dkimSelector) && $dkimSelector != 'acy') || $this->config->get('dkim_passphrase', '') != '' || acym_getVar('int', 'dkimletme')) {
?>
config->get('dkim_public', ''), '"');
echo wp_kses(
acym_translationSprintf(
'ACYM_DKIM_CONFIGURE',
'
'
),
[
'input' => [
'class' => true,
'type' => true,
'id' => true,
'name' => true,
'value' => true,
],
]
);
?>