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/Controllers/MailboxActions/Edition.php +2 -15 11.0.5 → 11.1.0 View file →
@@ -62,26 +62,12 @@
62 62
63 63 acym_trigger('onAcymMailboxActionDefine', [&$actions]);
64 64
65 65 $actionOptions = ['' => acym_translation('ACYM_CHOOSE_ACTION')];
66 - $actionParameters = '';
67 -
68 66 foreach ($actions as $key => $oneAction) {
69 67 $actionOptions[$key] = $oneAction->name;
70 - $actionParameters .= '<div class="acym__mailbox__edition__action__one__parameters '.$key.' margin-top-1">'.$oneAction->option.'</div>';
71 68 }
72 69
73 - $initialAction = acym_select(
74 - $actionOptions,
75 - 'acym_action[__num__][action]',
76 - '',
77 - [
78 - 'class' => 'acym__select acym__mailbox__edition__action__one__choice',
79 - 'acym-data-infinite' => '',
80 - ]
81 - );
82 - $initialAction .= $actionParameters;
83 -
84 70 $data = [
85 71 'mailboxId' => $mailboxId,
86 72 'mailboxActions' => $mailboxAction,
87 73 'delayType' => new DelayType(),
@@ -86,9 +72,10 @@
86 72 'mailboxActions' => $mailboxAction,
87 73 'delayType' => new DelayType(),
88 74 'groups' => acym_getGroups(),
89 75 'lists' => $listsClass->getAllWithIdName(),
90 - 'initialAction' => $initialAction,
76 + 'actionDeclarations' => $actions,
77 + 'actionOptions' => $actionOptions,
91 78 ];
92 79
93 80 parent::display($data);
94 81 }