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/time/TimeInsertion.php +19 -20 10.10.2 → 11.1.0 View file →
@@ -8,36 +8,35 @@
8 8 }
9 9
10 10 public function textPopup(): void
11 11 {
12 - $text = '<div class="acym__popup__listing text-center grid-x">
13 - <h1 class="acym__title acym__title__secondary text-center cell">'.acym_translation('ACYM_TIME_FORMAT').'</h1>';
12 + $others = [
13 + '{date:1}' => 'ACYM_DATE_FORMAT_LC1',
14 + '{date:2}' => 'ACYM_DATE_FORMAT_LC2',
15 + '{date:3}' => 'ACYM_DATE_FORMAT_LC3',
16 + '{date:4}' => 'ACYM_DATE_FORMAT_LC4',
17 + '{date:m/d/Y}' => 'm/d/Y',
18 + '{date:d/m/Y}' => 'd/m/Y',
19 + '{date:l}' => 'l',
20 + '{date:W}' => 'W',
21 + '{date:F}' => 'F',
22 + '{date:Y}' => 'Y',
14 23
15 - $others = [];
16 - $others['{date:1}'] = 'ACYM_DATE_FORMAT_LC1';
17 - $others['{date:2}'] = 'ACYM_DATE_FORMAT_LC2';
18 - $others['{date:3}'] = 'ACYM_DATE_FORMAT_LC3';
19 - $others['{date:4}'] = 'ACYM_DATE_FORMAT_LC4';
20 - $others['{date:m/d/Y}'] = 'm/d/Y';
21 - $others['{date:d/m/y}'] = 'd/m/y';
22 - $others['{date:l}'] = 'l';
23 - $others['{date:W}'] = 'W';
24 - $others['{date:F}'] = 'F';
25 - $others['{date:Y}'] = 'Y';
24 + ];
26 25
26 + echo '<div class="acym__popup__listing text-center grid-x">
27 + <h1 class="acym__title acym__title__secondary text-center cell">'.esc_html(acym_translation('ACYM_TIME_FORMAT')).'</h1>';
27 28
28 29 $k = 0;
29 30 foreach ($others as $tagname => $tag) {
30 - $text .= '<div class="grid-x medium-12 cell acym__row__no-listing acym__listing__row__popup text-left" onclick="setTag(\''.$tagname.'\', jQuery(this));" >
31 - <div class="cell medium-6 small-12 acym__listing__title acym__listing__title__dynamics">'.acym_translation($tag).'</div>
32 - <div class="cell medium-6 small-12 acym__listing__title acym__listing__title__dynamics">'.acym_getDate(time(), acym_translation($tag)).'</div>
33 - </div>';
31 + echo '<div class="grid-x medium-12 cell acym__row__no-listing acym__listing__row__popup text-left" onclick="setTag(\''.esc_attr($tagname).'\', jQuery(this));" >
32 + <div class="cell medium-6 small-12 acym__listing__title acym__listing__title__dynamics">'.esc_html(acym_translation($tag)).'</div>
33 + <div class="cell medium-6 small-12 acym__listing__title acym__listing__title__dynamics">'.esc_html(acym_getDate(time(), acym_translation($tag))).'</div>
34 + </div>';
34 35 $k = 1 - $k;
35 36 }
36 37
37 - $text .= '</div>';
38 -
39 - echo $text;
38 + echo '</div>';
40 39 }
41 40
42 41 public function replaceContent(object &$email): void
43 42 {