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/Users/tmpl/genericimport.php +0 -102 trunk → 11.1.1 View file →
@@ -1,102 +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 -?>
5 -<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm">
6 - <input type="hidden" name="acym_import_filename" id="filename" value="<?php echo esc_attr(acym_getVar('cmd', 'acym_import_filename')); ?>" />
7 - <input type="hidden" name="import_columns" id="import_columns" value="" />
8 - <input type="hidden" name="new_list" id="acym__import__new-list" value="" />
9 - <div id="acym__users__import__generic" class="acym__content">
10 - <div class="grid-x grid-margin-y acym_area">
11 - <div class="">
12 - <div class="acym__title"><?php echo esc_html(acym_translation('ACYM_FIELD_MATCHING')); ?></div>
13 - <p class="acym__users__import__generic__instructions"><?php echo wp_kses(acym_translation('ACYM_ASSIGN_COLUMNS'), ['b' => []]); ?></p>
14 - </div>
15 -
16 - <div class="cell grid-x" id="acym__users__import__generic__matchdata">
17 - <?php include acym_getView('users', 'ajaxencoding'); ?>
18 - </div>
19 - </div>
20 -
21 - <div class="grid-x acym_area">
22 - <div class="acym__title"><?php echo esc_html(acym_translation('ACYM_PARAMETERS')); ?></div>
23 - <div class="cell grid-x grid-margin-x margin-y">
24 - <div class="cell large-6 grid-x">
25 - <label for="acyencoding" class="cell medium-6"><?php echo esc_html(acym_translation('ACYM_FILE_CHARSET')); ?></label>
26 - <div class="cell medium-6">
27 - <?php
28 - $encodingHelper = new AcyMailing\Helpers\EncodingHelper();
29 - $default = $encodingHelper->detectEncoding($this->content);
30 - $urlEncodedFilename = urlencode($filename);
31 - $attribs = [
32 - 'data-filename' => $urlEncodedFilename,
33 - 'class' => 'acym__select',
34 - ];
35 - $encodingHelper->charsetField('acyencoding', $default, $attribs, true);
36 - ?>
37 - </div>
38 - </div>
39 - <?php if ($this->config->get('require_confirmation')) { ?>
40 - <div class="cell large-6 grid-x">
41 - <?php
42 - acym_switch([
43 - 'name' => 'import_confirmed_generic',
44 - 'value' => $this->config->get('import_confirmed', 1),
45 - 'label' => acym_translation('ACYM_IMPORT_USERS_AS_CONFIRMED'),
46 - ]);
47 - ?>
48 - </div>
49 - <?php } ?>
50 - <div class="cell large-6 grid-x">
51 - <?php
52 - acym_switch([
53 - 'name' => 'import_generate_generic',
54 - 'value' => $this->config->get('import_generate', 1),
55 - 'label' => acym_translation('ACYM_GENERATE_NAME'),
56 - 'tip' => ['textShownInTooltip' => 'ACYM_GENERATE_NAME_DESC'],
57 - ]);
58 - ?>
59 - </div>
60 - <div class="cell large-6 grid-x">
61 - <?php
62 - acym_switch([
63 - 'name' => 'import_overwrite_generic',
64 - 'value' => $this->config->get('import_overwrite', 1),
65 - 'label' => acym_translation('ACYM_OVERWRITE_EXISTING'),
66 - ]);
67 - ?>
68 - </div>
69 - </div>
70 - </div>
71 -
72 - <div class="cell grid-x grid-margin-x margin-top-1">
73 - <div class="cell hide-for-small-only medium-auto"></div>
74 - <?php
75 - acym_cancelButton(
76 - 'ACYM_CANCEL',
77 - '',
78 - 'button medium-6 large-shrink margin-bottom-0'
79 - );
80 -
81 - $entityHelper = new AcyMailing\Helpers\EntitySelectHelper();
82 - $importHelper = new AcyMailing\Helpers\ImportHelper();
83 - $modalData = $entityHelper->entitySelect(
84 - [
85 - 'entity' => 'list',
86 - 'columnsToDisplay' => $entityHelper->getColumnsForList(),
87 - 'additionalData' => fn() => $importHelper->displayAdditionalDataUsersImport(true),
88 - ]
89 - );
90 - acym_modal(
91 - acym_translation('ACYM_IMPORT_SUBSCRIBERS'),
92 - $modalData,
93 - 'acym__user__import__add-subscription__modal',
94 - [],
95 - ['class' => 'button margin-bottom-0']
96 - );
97 - ?>
98 - <div class="cell hide-for-small-only medium-auto"></div>
99 - </div>
100 - </div>
101 - <?php acym_formOptions(true, 'finalizeImport'); ?>
102 -</form>