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/Helpers/global/version.php +20 -4 10.11.1 → 11.1.0 View file →
@@ -1,6 +1,11 @@
1 1 <?php
2 +defined('ABSPATH') || die('Restricted Access');
2 3
4 +/**
5 + * Return TRUE if the level is handled by the current application
6 + * Return FALSE if the level is not enough
7 + */
3 8 function acym_level(int $neededLevel): bool
4 9 {
5 10 $levels = [
6 11 'Starter' => ACYM_STARTER,
@@ -26,10 +31,19 @@
26 31 {
27 32 $link = ACYM_ACYMAILING_WEBSITE.'pricing?utm_source=acymailing_plugin&utm_medium='.$utmMedium.'&utm_campaign=purchase';
28 33 $text = $version === 'essential' ? 'AcyMailing Essential' : 'AcyMailing Enterprise';
29 34 echo '<div class="acym__upgrade cell grid-x text-center align-center">
30 - <h2 class="acym__listing__empty__title cell">'.acym_translationSprintf('ACYM_USE_THIS_FEATURE', '<span class="acym__color__blue">'.$text.'</span>').'</h2>
31 - <a target="_blank" href="'.$link.'" class="cell medium-6 large-shrink button acym__button__upgrade">'.acym_translation('ACYM_UPGRADE_NOW_SIMPLE').'</a>
35 + <h2 class="acym__listing__empty__title cell">'.wp_kses(
36 + acym_translationSprintf('ACYM_USE_THIS_FEATURE', '<span class="acym__color__blue">'.esc_html($text).'</span>'),
37 + [
38 + 'span' => [
39 + 'class' => true,
40 + ],
41 + ]
42 + ).'</h2>
43 + <a target="_blank" href="'.esc_url($link).'" class="cell medium-6 large-shrink button acym__button__upgrade">'.esc_html(
44 + acym_translation('ACYM_UPGRADE_NOW_SIMPLE')
45 + ).'</a>
32 46 </div>';
33 47 }
34 48
35 49 function acym_existsAcyMailing59(): bool
@@ -44,8 +58,10 @@
44 58
45 59 return version_compare($version, '5.9.0', '>=');
46 60 }
47 61
48 -function acym_buttonGetProVersion(string $class = 'cell shrink', string $text = 'ACYM_UPGRADE_NOW_SIMPLE'): string
62 +function acym_displayButtonGetProVersion(string $class = 'cell shrink', string $text = 'ACYM_UPGRADE_NOW_SIMPLE'): void
49 63 {
50 - return '<a href="'.ACYM_ACYMAILING_WEBSITE.'pricing" target="_blank" class="button acym__button__upgrade '.$class.'">'.acym_translation($text).'</a>';
64 + echo '<a href="'.esc_url(ACYM_ACYMAILING_WEBSITE.'pricing').'"
65 + target="_blank"
66 + class="button acym__button__upgrade '.esc_attr($class).'">'.esc_html(acym_translation($text)).'</a>';
51 67 }