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/Views/Forms/tmpl/edit_information.php +70 -0 10.1.2 → 11.1.0 View file →
@@ -1,0 +1,70 @@
1 +<?php
2 +defined('ABSPATH') || die('Restricted Access');
3 +?>
4 +<div class="cell grid-x acym__content margin-bottom-1" id="acym__forms__information">
5 + <div class="cell">
6 + <div class="grid-x grid-margin-x margin-y">
7 + <div class="cell medium-6 grid-x acym_vcenter">
8 + <label for="acym__forms__information__name" class="cell medium-6 large-4">
9 + <?php echo esc_html(acym_translation('ACYM_FORM_NAME')); ?>
10 + </label>
11 + <input type="text" id="acym__forms__information__name" class="cell large-5" name="form[name]" v-model="form.name">
12 + </div>
13 + <?php if ($data['form']->type != 'shortcode') { ?>
14 + <div class="cell medium-6 grid-x acym_vcenter">
15 + <label for="acym__forms__information__page" class="cell medium-6 large-4">
16 + <?php echo esc_html(acym_translation('ACYM_PAGE_SELECTION'));
17 + acym_info(['textShownInTooltip' => 'ACYM_PAGE_SELECTION_DESC']); ?>
18 + </label>
19 + <div class="cell medium-6">
20 + <select2multiple v-model="form.pages"
21 + :name="'form[pages]'"
22 + :value="<?php echo esc_attr(json_encode($data['form']->pages)); ?>"
23 + :options="<?php echo esc_attr(json_encode($data['all_pages'])); ?>"></select2multiple>
24 + </div>
25 + </div>
26 + <?php } ?>
27 + <div class="cell medium-6 grid-x acym_vcenter">
28 + <?php
29 + acym_switch([
30 + 'name' => 'form[active]',
31 + 'value' => $data['form']->active,
32 + 'label' => acym_translation('ACYM_ACTIVATED'),
33 + 'attributes' => [
34 + 'v-model' => 'form.active',
35 + ],
36 + 'labelClass' => 'large-4 medium-6 small-9',
37 + ]);
38 + ?>
39 + </div>
40 + <div class="cell medium-6 grid-x acym_vcenter">
41 + <label for="acym__forms__available__language" class="cell medium-6 large-4">
42 + <?php echo esc_html(acym_translation('ACYM_LANGUAGE_AVAILABLE'));
43 + acym_info(['textShownInTooltip' => 'ACYM_LANGUAGE_AVAILABLE_INFO']); ?>
44 + </label>
45 +
46 + <div class="cell medium-6">
47 + <div class="cell medium-6">
48 + <select2multiple v-model="form['display_languages']"
49 + :name="'form[display_languages]'"
50 + :value="<?php echo esc_attr(json_encode($data['form']->display_languages)); ?>"
51 + :options="<?php echo esc_attr(json_encode($data['all_languages'])); ?>"></select2multiple>
52 + </div>
53 + </div>
54 + </div>
55 + <?php
56 + if ($data['form']->type == 'shortcode') {
57 + echo '<div class="cell grid-x acym_vcenter">';
58 + echo '<p class="cell shrink" v-if="!form.id"><i class="acymicon-exclamation-triangle acym__color__orange acym__forms__information__shortcode__warning margin-right-1"></i>'.esc_html(
59 + acym_translation(
60 + 'ACYM_PLEASE_SAVE_FORM_TO_GET_SHORTCODE'
61 + )
62 + ).'</p>';
63 + echo '<p class="cell shrink" v-if="form.id">'.esc_html(acym_translation('ACYM_SHORTCODE_COPY_PASTE')).'</p>';
64 + echo '<code class="cell shrink acym__forms__information__shortcode margin-left-1" v-if="form.id">[acymailing_form_shortcode id="{{ form.id }}"]</code>';
65 + echo '</div>';
66 + }
67 + ?>
68 + </div>
69 + </div>
70 +</div>