PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
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/Views/Configuration/tmpl/languages.php +0 -170 11.1.0 → 11.1.1 View file →
@@ -1,170 +1,0 @@
1 -<?php
2 -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
3 -defined('ABSPATH') || die('Restricted Access');
4 -if (count($data['languages']) > 1 && acym_level(ACYM_ESSENTIAL)) { ?>
5 - <div class="acym__content acym_area padding-vertical-1 padding-horizontal-2">
6 - <div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_MULTILINGUAL')); ?></div>
7 - <div class="grid-x margin-y">
8 - <div class="cell grid-x grid-margin-x">
9 - <?php
10 - acym_switch([
11 - 'name' => 'config[multilingual]',
12 - 'value' => $this->config->get('multilingual'),
13 - 'label' => acym_translation('ACYM_MULTILINGUAL_EMAILS'),
14 - 'labelClass' => 'xlarge-3 medium-5 small-9',
15 - 'toggle' => 'multilingual_config',
16 - ]);
17 - ?>
18 - </div>
19 - <div class="cell grid-x margin-y" id="multilingual_config">
20 - <div class="cell grid-x">
21 - <div class="cell xlarge-3 medium-5">
22 - <label for="acym__config__multilingual-default">
23 - <?php echo esc_html(acym_translation('ACYM_DEFAULT_LANGUAGE'));
24 - acym_info(['textShownInTooltip' => 'ACYM_DEFAULT_LANGUAGE_DESC']); ?>
25 - </label>
26 - </div>
27 - <div class="cell xlarge-4 medium-7">
28 - <?php
29 - $defaultLanguage = ACYM_DEFAULT_LANGUAGE;
30 - if (ACYM_CMS === 'wordpress') $defaultLanguage = strtolower($defaultLanguage);
31 - acym_select(
32 - $data['languages'],
33 - 'config[multilingual_default]',
34 - $this->config->get('multilingual_default', $defaultLanguage),
35 - [
36 - 'class' => 'acym__select',
37 - ],
38 - 'language',
39 - 'name',
40 - null,
41 - false,
42 - true
43 - );
44 - ?>
45 - </div>
46 - </div>
47 - <div class="cell grid-x">
48 - <div class="cell xlarge-3 medium-5">
49 - <label for="acym__config__multilingual-languages">
50 - <?php echo esc_html(acym_translation('ACYM_LANGUAGES_USED'));
51 - acym_info(['textShownInTooltip' => 'ACYM_LANGUAGES_USED_DESC']); ?>
52 - </label>
53 - </div>
54 - <div class="cell xlarge-4 medium-7">
55 - <?php
56 - $selectedLanguages = $this->config->get('multilingual_languages');
57 - acym_selectMultiple(
58 - $data['languages'],
59 - 'config[multilingual_languages]',
60 - explode(',', $selectedLanguages),
61 - [
62 - 'class' => 'acym__select',
63 - 'id' => 'configmultilingual_languages',
64 - ],
65 - 'language',
66 - 'name',
67 - true
68 - );
69 - ?>
70 - <input type="hidden" name="previous_multilingual_languages" value="<?php echo esc_attr($selectedLanguages); ?>" />
71 - </div>
72 - </div>
73 - <div class="cell grid-x">
74 - <div class="cell xlarge-3 medium-5">
75 - <label for="acym__config__multilingual-default">
76 - <?php echo esc_html(acym_translation('ACYM_DEFAULT_USER_LANGUAGE'));
77 - acym_info(['textShownInTooltip' => 'ACYM_DEFAULT_USER_LANGUAGE_DESC']); ?>
78 - </label>
79 - </div>
80 - <div class="cell xlarge-4 medium-7">
81 - <?php
82 - acym_select(
83 - $data['user_languages'],
84 - 'config[multilingual_user_default]',
85 - $this->config->get('multilingual_user_default', 'current_language'),
86 - ['class' => 'acym__select'],
87 - 'language',
88 - 'name',
89 - null,
90 - false,
91 - true
92 - );
93 - ?>
94 - </div>
95 - </div>
96 - <?php if (!empty($data['content_translation'])) { ?>
97 - <div class="cell grid-x">
98 - <div class="cell xlarge-3 medium-5">
99 - <label for="acym__config__multilingual-languages">
100 - <?php echo esc_html(acym_translation('ACYM_TRANSLATE_CONTENT'));
101 - acym_info(['textShownInTooltip' => 'ACYM_TRANSLATE_CONTENT_DESC']); ?>
102 - </label>
103 - </div>
104 - <div class="cell xlarge-4 medium-7">
105 - <?php
106 - acym_select(
107 - $data['content_translation'],
108 - 'config[translate_content]',
109 - $this->config->get('translate_content', 'no'),
110 - [
111 - 'class' => 'acym__select',
112 - ],
113 - 'value',
114 - 'text',
115 - false,
116 - true,
117 - true
118 - );
119 - ?>
120 - </div>
121 - </div>
122 - <?php } ?>
123 - </div>
124 - </div>
125 - </div>
126 -<?php } ?>
127 -
128 -<div class="acym__content acym_area padding-vertical-1 padding-horizontal-2" id="acym__configuration__languages">
129 - <div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_TRANSLATIONS')); ?></div>
130 - <div class="acym__listing margin-top-2">
131 - <div class="grid-x cell acym__configuration__languages__listing acym__listing__header">
132 - <div class="grid-x medium-auto small-11 cell">
133 - <div class="medium-1 small-1 cell acym__listing__header__title">
134 - <?php echo esc_html(acym_translation('ACYM_EDIT')); ?>
135 - </div>
136 - <div class="medium-auto small-3 cell text-left acym__listing__header__title">
137 - <?php echo esc_html(acym_translation('ACYM_NAME')); ?>
138 - </div>
139 - <div class="medium-2 small-2 text-center cell acym__listing__header__title">
140 - <?php echo esc_html(acym_translation('ACYM_ID')); ?>
141 - </div>
142 - </div>
143 - </div>
144 - <?php foreach ($data['languages'] as $oneLanguage) { ?>
145 - <div class="grid-x cell align-middle acym__listing__row">
146 - <div class="medium-1 small-1 cell acym__listing__text">
147 - <?php acym_modal(
148 - '<i class="acymicon-'.esc_attr($oneLanguage->icon).' cursor-pointer acym__color__blue"
149 - data-open="acym_modal_language_'.esc_attr($oneLanguage->language).'"
150 - data-ajax="false"
151 - data-iframe="'.esc_url(acym_completeLink('language&task=displayLanguage&code='.$oneLanguage->language, true)).'"
152 - data-iframe-class="acym__iframe_language"
153 - id="image'.esc_attr($oneLanguage->language).'"></i>',
154 - '',
155 - 'acym_modal_language_'.$oneLanguage->language,
156 - ['data-reveal-larger' => true],
157 - [],
158 - false
159 - ); ?>
160 - </div>
161 - <div class="medium-auto small-auto cell acym__listing__text">
162 - <?php echo esc_html($oneLanguage->name); ?>
163 - </div>
164 - <div class="medium-2 small-2 cell text-center acym__listing__text">
165 - <?php echo esc_html($oneLanguage->language); ?>
166 - </div>
167 - </div>
168 - <?php } ?>
169 - </div>
170 -</div>