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/Users/tmpl/edit_information.php +77 -0 10.0.0 → 11.1.0 View file →
@@ -1,0 +1,77 @@
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 +use AcyMailing\Classes\FieldClass;
6 +?>
7 +<div class="cell acym__content acym__user__edit__custom__fields margin-y">
8 + <?php
9 + if (!empty($data['allFields'])) {
10 + $fieldClass = new FieldClass();
11 + foreach ($data['allFields'] as $field) {
12 + if (intval($field['field']->active) === 0) {
13 + continue;
14 + }
15 +
16 + $fieldClass->displayField(
17 + $field['field'],
18 + $field['defaultValue'],
19 + $field['values'],
20 + true,
21 + !acym_isAdmin(),
22 + $field['user'],
23 + $field['showField']
24 + );
25 + }
26 + }
27 + ?>
28 + <div class="cell grid-x margin-top-1">
29 + <?php acym_switch(['name' => 'user[active]', 'value' => $data['user-information']->active, 'label' => acym_translation('ACYM_ACTIVE')]); ?>
30 + </div>
31 + <?php if ($this->config->get('require_confirmation', '0') == '1') { ?>
32 + <div class="cell grid-x">
33 + <?php acym_switch(['name' => 'user[confirmed]', 'value' => $data['user-information']->confirmed, 'label' => acym_translation('ACYM_CONFIRMED')]); ?>
34 + </div>
35 + <?php } ?>
36 + <div class="cell grid-x">
37 + <?php
38 + acym_switch([
39 + 'name' => 'user[tracking]',
40 + 'value' => $data['user-information']->tracking,
41 + 'label' => acym_translation('ACYM_TRACK_THIS_SUBSCRIBER'),
42 + 'tip' => ['textShownInTooltip' => 'ACYM_TRACK_THIS_SUBSCRIBER_DESC'],
43 + ]); ?>
44 + </div>
45 + <?php if (!empty($data['user-information']->source)) { ?>
46 + <div class="cell grid-x margin-top-1">
47 + <div class="cell medium-6 small-12">
48 + <?php
49 + echo esc_html(acym_translation('ACYM_DATE_CREATED')).' : <b>';
50 + echo esc_html(
51 + acym_date(
52 + empty($data['user-information']->id) ? time() : $data['user-information']->creation_date,
53 + acym_getDateTimeFormat('ACYM_DATE_FORMAT_LC3')
54 + )
55 + );
56 + echo '</b>';
57 + ?>
58 + </div>
59 + <div class="cell medium-6 small-12">
60 + <?php echo esc_html(acym_translation('ACYM_SOURCE')); ?> : <b><?php echo esc_html($data['user-information']->source); ?></b>
61 + </div>
62 + </div>
63 + <?php } else { ?>
64 + <div class="cell margin-top-1">
65 + <?php echo esc_html(acym_translation('ACYM_DATE_CREATED')); ?> : <b>
66 + <?php
67 + echo esc_html(
68 + acym_date(
69 + empty($data['user-information']->id) ? time() : $data['user-information']->creation_date,
70 + acym_getDateTimeFormat('ACYM_DATE_FORMAT_LC3')
71 + )
72 + );
73 + ?>
74 + </b>
75 + </div>
76 + <?php } ?>
77 +</div>