| @@ -47,18 +47,22 @@ | ||
| 47 | 47 | ); ?></span></div> |
| 48 | 48 | <br /> |
| 49 | 49 | <div class="cell acym__automation__summary__information__one"> |
| 50 | 50 | <?php |
| 51 | - foreach ($data['step']->triggers as $name => $oneTrigger) { | |
| 52 | - if (!is_string($oneTrigger)) { | |
| 53 | - $data['step']->triggers[$name] = acym_translation('ACYM_UNKNOWN'); | |
| 51 | + $triggerNum = 0; | |
| 52 | + foreach ($data['step']->triggers as $oneTrigger) { | |
| 53 | + if ($triggerNum > 0) { | |
| 54 | + echo '<br /><span class="acym__automation__summary__information__one__title">'.esc_html( | |
| 55 | + acym_translation('ACYM_OR') | |
| 56 | + ).'</span><br />'; | |
| 54 | 57 | } |
| 58 | + | |
| 59 | + echo wp_kses( | |
| 60 | + is_string($oneTrigger) ? $oneTrigger : acym_translation('ACYM_UNKNOWN'), | |
| 61 | + $summaryAllowedTags | |
| 62 | + ); | |
| 63 | + $triggerNum++; | |
| 55 | 64 | } |
| 56 | - | |
| 57 | - echo implode( | |
| 58 | - '<br /><span class="acym__automation__summary__information__one__title">'.esc_html(acym_translation('ACYM_OR')).'</span><br />', | |
| 59 | - $data['step']->triggers | |
| 60 | - ); | |
| 61 | 65 | ?> |
| 62 | 66 | </div> |
| 63 | 67 | </div> |
| 64 | 68 | <div class="acym__automation__summary__actions cell grid-x margin-top-2 acym__content"> |