Plugin Directory


Ignore:
Timestamp:
05/11/2022 06:58:43 AM (4 years ago)
Author:
MooveAgency
Message:

Updated setting tabindex

Location:
gdpr-cookie-compliance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gdpr-cookie-compliance/tags/4.8.4/class-gdpr-modules.php

    r2721723 r2721728  
    157157
    158158        $content            = isset( $modal_options[ 'moove_gdpr_info_bar_content' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_info_bar_content' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_info_bar_content' . $wpml_lang ] : $_content;
    159         $content            = str_replace( '[setting]', '<span role="link" tabindex="1" data-href="#moove_gdpr_cookie_modal" class="change-settings-button">', $content );
     159        $tabindex                   = apply_filters('gdpr_tabindex_attribute', '', '1' );
     160        $content            = str_replace( '[setting]', '<span role="link" ' . $tabindex . ' data-href="#moove_gdpr_cookie_modal" class="change-settings-button">', $content );
    160161        $content            = str_replace( '[/setting]', '</span>', $content );
    161162        $content            = apply_filters( 'gdpr_info_bar_notice_content', $content );
  • gdpr-cookie-compliance/trunk/class-gdpr-modules.php

    r2721723 r2721728  
    157157
    158158        $content            = isset( $modal_options[ 'moove_gdpr_info_bar_content' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_info_bar_content' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_info_bar_content' . $wpml_lang ] : $_content;
    159         $content            = str_replace( '[setting]', '<span role="link" tabindex="1" data-href="#moove_gdpr_cookie_modal" class="change-settings-button">', $content );
     159        $tabindex                   = apply_filters('gdpr_tabindex_attribute', '', '1' );
     160        $content            = str_replace( '[setting]', '<span role="link" ' . $tabindex . ' data-href="#moove_gdpr_cookie_modal" class="change-settings-button">', $content );
    160161        $content            = str_replace( '[/setting]', '</span>', $content );
    161162        $content            = apply_filters( 'gdpr_info_bar_notice_content', $content );
Note: See TracChangeset for help on using the changeset viewer.