PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/dynamics/amazon/plugin.php +13 -14 11.0.2 → 11.1.0 View file →
@@ -5,8 +5,9 @@
5 5 class plgAcymAmazon extends AcymPlugin
6 6 {
7 7 const SENDING_METHOD_ID = 'amazon';
8 8 const SENDING_METHOD_NAME = 'Amazon SES';
9 + // phpcs:ignore PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- False alarm.
9 10 const SENDING_METHOD_HOST = 'email-smtp.us-east-2.amazonaws.com';
10 11
11 12 public function __construct()
12 13 {
@@ -24,9 +25,8 @@
24 25 }
25 26
26 27 public function onAcymGetSendingMethodsHtmlSetting(&$data)
27 28 {
28 - ob_start();
29 29 ?>
30 30 <div class="send_settings cell grid-x acym_vcenter" id="<?php echo esc_attr(self::SENDING_METHOD_ID); ?>_settings">
31 31 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
32 32 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
@@ -44,33 +44,32 @@
44 44 'https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Fportal.aws.amazon.com%2Fbilling%2Fsignup%2Fresume&client_id=signup',
45 45 'https://aws.amazon.com/en/ses/pricing/'
46 46 ); ?>
47 47 <input id="amazon_host"
48 - class="cell"
49 - type="text"
50 - name="config[amazon_host]"
51 - value="<?php echo esc_attr($this->config->get('amazon_host', self::SENDING_METHOD_HOST)); ?>">
48 + class="cell"
49 + type="text"
50 + name="config[amazon_host]"
51 + value="<?php echo esc_attr($this->config->get('amazon_host', self::SENDING_METHOD_HOST)); ?>">
52 52 </div>
53 53 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
54 54 <label for="amazon_username" class="cell"><?php echo esc_html(acym_translation('ACYM_AMAZON_SES_USERNAME')); ?></label>
55 55 <input id="amazon_username"
56 - class="cell"
57 - type="text"
58 - name="config[amazon_username]"
59 - value="<?php echo esc_attr($this->config->get('amazon_username')); ?>">
56 + class="cell"
57 + type="text"
58 + name="config[amazon_username]"
59 + value="<?php echo esc_attr($this->config->get('amazon_username')); ?>">
60 60 </div>
61 61 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
62 62 <label for="amazon_password" class="cell"><?php echo esc_html(acym_translation('ACYM_AMAZON_SES_PASSWORD')); ?></label>
63 63 <input id="amazon_password"
64 - class="cell"
65 - type="text"
66 - name="config[amazon_password]"
67 - value="<?php echo esc_attr(str_repeat('*', strlen($this->config->get('amazon_password')))); ?>">
64 + class="cell"
65 + type="text"
66 + name="config[amazon_password]"
67 + value="<?php echo esc_attr(str_repeat('*', strlen($this->config->get('amazon_password')))); ?>">
68 68 </div>
69 69 </div>
70 70 </div>
71 71 <?php
72 - $data['sendingMethodsHtmlSettings'][self::SENDING_METHOD_ID] = ob_get_clean();
73 72 }
74 73
75 74 /**
76 75 * @param array $credentials