| @@ -22,13 +22,19 @@ | ||
| 22 | 22 | $termsURL = ''; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | if (!empty($termspolicy['privacy_type']) && $termspolicy['privacy_type'] === 'url' && !empty($privacyURL)) { |
| 26 | - $privacyURL = '<a href="'.esc_url($privacyURL).'" target="_blank">'.esc_html(acym_translation('ACYM_PRIVACY_POLICY')).'</a>'; | |
| 26 | + $privacyLabel = acym_translation('ACYM_PRIVACY_POLICY'); | |
| 27 | + $privacyURL = '<a href="'.esc_url($privacyURL).'" target="_blank" rel="noopener noreferrer" aria-label="'.esc_attr( | |
| 28 | + $privacyLabel.', '.acym_translation('ACYM_OPENS_NEW_WINDOW') | |
| 29 | + ).'">'.esc_html($privacyLabel).'</a>'; | |
| 27 | 30 | } |
| 28 | 31 | |
| 29 | 32 | if (!empty($termspolicy['terms_type']) && $termspolicy['terms_type'] === 'url' && !empty($termsURL)) { |
| 30 | - $termsURL = '<a href="'.esc_url($termsURL).'" target="_blank">'.esc_html(acym_translation('ACYM_TERMS_CONDITIONS')).'</a>'; | |
| 33 | + $termsLabel = acym_translation('ACYM_TERMS_CONDITIONS'); | |
| 34 | + $termsURL = '<a href="'.esc_url($termsURL).'" target="_blank" rel="noopener noreferrer" aria-label="'.esc_attr( | |
| 35 | + $termsLabel.', '.acym_translation('ACYM_OPENS_NEW_WINDOW') | |
| 36 | + ).'">'.esc_html($termsLabel).'</a>'; | |
| 31 | 37 | } |
| 32 | 38 | |
| 33 | 39 | |
| 34 | 40 | if (empty($termsURL) && empty($privacyURL)) { |
| @@ -44,9 +50,9 @@ | ||
| 44 | 50 | if (!empty($termslink)) { |
| 45 | 51 | echo '<div class="acym__subscription__form__termscond">'; |
| 46 | 52 | echo '<div class="onefield fieldacyterms" id="field_terms_'.esc_attr($form->form_tag_name).'">'; |
| 47 | 53 | echo '<label for="mailingdata_terms_'.esc_attr($form->form_tag_name).'">'; |
| 48 | - echo '<input id="mailingdata_terms_'.esc_attr($form->form_tag_name).'" class="checkbox" type="checkbox" name="terms" title="'.esc_attr( | |
| 54 | + echo '<input id="mailingdata_terms_'.esc_attr($form->form_tag_name).'" class="checkbox" type="checkbox" name="terms" aria-required="true" title="'.esc_attr( | |
| 49 | 55 | acym_translation('ACYM_TERMS_CONDITIONS') |
| 50 | 56 | ).'"/> '; |
| 51 | 57 | echo wp_kses( |
| 52 | 58 | $termslink, |