display($this->steps, 'summary');
if (!empty($data['id'])) {
?>
admin)) {
$data['automation']->name = acym_translation($data['automation']->name);
$data['automation']->description = acym_translation($data['automation']->description);
} ?>
: name); ?>
: description); ?>
triggers as $name => $oneTrigger) {
if (!is_string($oneTrigger)) {
$data['step']->triggers[$name] = acym_translation('ACYM_UNKNOWN');
}
}
echo implode(
'
'.esc_html(acym_translation('ACYM_OR')).'
',
$data['step']->triggers
);
?>
conditions)) {
$orNum = 0;
$andNum = 0;
$typeTrigger = $data['condition']->conditions['type_condition'];
unset($data['condition']->conditions['type_condition']);
if (empty($data['condition']->conditions)) {
echo ''.esc_html(
acym_translation(
'ACYM_YOU_DID_NOT_SET_CONDITION'
)
).'
';
} else {
echo ''.esc_html(
acym_translationSprintf(
'ACYM_CONDITIONS_APPLY_TO',
acym_translation($typeTrigger == 'classic' ? '' : 'ACYM_ONE_ACYMAILING_SUBSCRIBER_CONDITION')
)
).'
';
foreach ($data['condition']->conditions as $or => $orValues) {
if ($or === 'type_condition') continue;
$andNum = 0;
if ($orNum > 0) {
echo ''.esc_html(
acym_translation('ACYM_OR')
).'
';
}
foreach ($orValues as $and => $andValue) {
if (is_array($andValue)) continue;
if ($andNum > 0) {
echo ''.esc_html(acym_translation('ACYM_AND')).'
';
}
echo wp_kses((string)$andValue, $summaryAllowedTags).'
';
$andNum++;
}
$orNum++;
}
}
} else {
echo ''.esc_html(acym_translation('ACYM_SELECT_CONDITIONS')).'';
}
?>
actions)) {
echo ''.esc_html(
acym_translationSprintf(
'ACYM_ACTIONS_SUBSCRIBER_WILL',
acym_strtolower(acym_translation(empty($data['id']) ? 'ACYM_MASS_ACTION' : 'ACYM_AUTOMATION'))
)
).'
';
$andNum = 0;
foreach ($data['action']->actions as $and => $andValue) {
if (is_array($andValue)) continue;
if ($andNum > 0) echo ''.esc_html(acym_translation('ACYM_AND')).'
';
echo wp_kses((string)$andValue, $summaryAllowedTags).'
';
$andNum++;
}
} else {
echo ''.esc_html(acym_translation('ACYM_SELECT_ACTIONS')).'';
}
?>
filters)) {
$orNum = 0;
$andNum = 0;
echo ''.esc_html(
acym_translationSprintf(
'ACYM_FILTERS_APPLY_TO',
acym_strtolower(acym_translation(empty($data['id']) ? 'ACYM_MASS_ACTION' : 'ACYM_AUTOMATION')),
acym_translation($data['action']->filters['type_filter'] == 'classic' ? 'ACYM_ALL_ACYMAILING_USERS' : 'ACYM_ONE_ACYMAILING_USER')
)
).'
';
foreach ($data['action']->filters as $or => $orValues) {
if ($or === 'type_filter') continue;
$andNum = 0;
if ($orNum > 0) echo ''.esc_html(acym_translation('ACYM_OR')).'
';
foreach ($orValues as $and => $andValue) {
if (is_array($andValue)) continue;
if ($andNum > 0) {
echo ''.esc_html(
acym_translation('ACYM_AND')
).'
';
}
echo wp_kses((string)$andValue, $summaryAllowedTags).'
';
$andNum++;
}
$orNum++;
}
} else {
echo ''.esc_html(acym_translation('ACYM_SELECT_FILTERS')).'';
}
?>