| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 | 3 | defined('ABSPATH') || die('Restricted Access'); |
| 4 | 4 | ?> |
| 5 | -<div class="acym__subscription__form__lists"> | |
| 5 | +<div class="acym__subscription__form__lists" role="group" aria-label="<?php echo esc_attr(acym_translation('ACYM_NEWSLETTERS')); ?>"> | |
| 6 | 6 | <?php |
| 7 | 7 | foreach ($form->settings['lists']['displayed'] as $listId) { |
| 8 | 8 | if (!empty($form->settings['lists']['automatic_subscribe']) && in_array($listId, $form->settings['lists']['automatic_subscribe'])) continue; |
| 9 | 9 | if (empty($form->lists[$listId])) continue; |
| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | <label> |
| 13 | 13 | <input type="checkbox" |
| 14 | 14 | value="<?php echo esc_attr($listId); ?>" |
| 15 | 15 | name="subscription[]" |
| 16 | - <?php acym_checked(!empty($form->settings['lists']['checked']) && in_array($listId, $form->settings['lists']['checked'])); ?>> | |
| 16 | + <?php checked(!empty($form->settings['lists']['checked']) && in_array($listId, $form->settings['lists']['checked'])); ?>> | |
| 17 | 17 | <?php echo esc_html($label); ?> |
| 18 | 18 | </label> |
| 19 | 19 | <?php |
| 20 | 20 | } |