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/brevo/plugin.php +23 -16 10.2.2 → 11.1.0 View file →
@@ -24,43 +24,50 @@
24 24 }
25 25
26 26 public function onAcymGetSendingMethodsHtmlSetting(&$data)
27 27 {
28 - ob_start();
29 28 ?>
30 - <div class="send_settings cell grid-x acym_vcenter" id="<?php echo self::SENDING_METHOD_ID; ?>_settings">
29 + <div class="send_settings cell grid-x acym_vcenter" id="<?php echo esc_attr(self::SENDING_METHOD_ID); ?>_settings">
31 30 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
32 31 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
33 32 <label for="brevo_identifier" class="cell shrink margin-right-1">
34 - <?php echo acym_translation('ACYM_BREVO_LOGIN'); ?>
33 + <?php echo esc_html(acym_translation('ACYM_BREVO_LOGIN')); ?>
35 34 </label>
36 - <?php echo $this->getLinks(
35 + <?php $this->getLinks(
37 36 'https://get.brevo.com/hbvmwg6onvve'
38 37 ); ?>
39 38 <div class="margin-left-1 cell grid-x acym-grid-margin-x shrink acym_vcenter">
40 - <p class="cell shrink"><?php echo acym_translation('ACYM_ALREADY_HAVE_AN_ACCOUNT'); ?></p>
41 - <a target="_blank" class="cell shrink" href="https://app.brevo.com/settings/keys/smtp"><?php echo strtolower(acym_translation('ACYM_HERE')); ?></a>
39 + <p class="cell shrink"><?php echo esc_html(acym_translation('ACYM_ALREADY_HAVE_AN_ACCOUNT')); ?></p>
40 + <a target="_blank" class="cell shrink" href="https://app.brevo.com/settings/keys/smtp"><?php echo esc_html(
41 + strtolower(acym_translation('ACYM_HERE'))
42 + ); ?></a>
42 43 </div>
43 44 <input id="brevo_identifier"
44 - class="cell"
45 - type="text"
46 - name="config[brevo_identifier]"
47 - value="<?php echo acym_escape($this->config->get('brevo_identifier', '')); ?>">
45 + class="cell"
46 + type="text"
47 + name="config[brevo_identifier]"
48 + value="<?php echo esc_attr($this->config->get('brevo_identifier', '')); ?>">
48 49 </div>
49 50 <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings">
50 - <label for="brevo_smtp_key" class="cell"><?php echo acym_translation('ACYM_BREVO_SMTP_KEY'); ?></label>
51 + <label for="brevo_smtp_key" class="cell"><?php echo esc_html(acym_translation('ACYM_BREVO_SMTP_KEY')); ?></label>
51 52 <input id="brevo_smtp_key"
52 - class="cell"
53 - type="text"
54 - name="config[brevo_smtp_key]"
55 - value="<?php echo acym_escape($this->config->get('brevo_smtp_key')); ?>">
53 + class="cell"
54 + type="text"
55 + name="config[brevo_smtp_key]"
56 + value="<?php echo esc_attr($this->config->get('brevo_smtp_key')); ?>">
56 57 </div>
57 58 </div>
58 59 </div>
59 60 <?php
60 - $data['sendingMethodsHtmlSettings'][self::SENDING_METHOD_ID] = ob_get_clean();
61 61 }
62 62
63 + /**
64 + * @param array $credentials
65 + * @param string $sendingMethod
66 + * @param array $sendingMethodListParams this parameter is only used for the plugin sending method list
67 + *
68 + * @return void
69 + */
63 70 public function onAcymGetCredentialsSendingMethod(array &$credentials, string $sendingMethod, array $sendingMethodListParams = [])
64 71 {
65 72 if ($sendingMethod != self::SENDING_METHOD_ID) return;
66 73