Plugin Directory

Changeset 3145650


Ignore:
Timestamp:
09/03/2024 02:53:53 AM (19 months ago)
Author:
toitx
Message:

change the way to get uuu script tag element

Location:
accessibility-uuu-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • accessibility-uuu-widget/trunk/accessibility-uuu-widget.php

    r3136400 r3145650  
    55 * @package       ACCESSIBIL
    66 * @author        Toitx
    7  * @version       1.0.1
     7 * @version       1.0.2
    88 * @license       GPL-3.0-or-later
    99 *
     
    1212 * Plugin URI:    https://wordpress.org/plugins/accessibility-uuu-widget
    1313 * Description:   This plugin integrates with a third-party service provided by UUU. By installing and using this plugin, a script from UUU will be embedded into your WordPress site. This script is used to enhance website accessibility and improve user experience.
    14  * Version:       1.0.1
     14 * Version:       1.0.2
    1515 * Author:        Toitx
    1616 * Author URI:    https://uuu.user-a11y.com
     
    2727
    2828// Plugin version
    29 define( 'ACCESSIBIL_VERSION',       '1.0.1' );
     29define( 'ACCESSIBIL_VERSION',       '1.0.2' );
    3030
    3131// Plugin Root File
     
    5151 *
    5252 * @author  Toitx
    53  * @since   1.0.1
     53 * @since   1.0.2
    5454 * @return  object|Accessibility_Uuu_Widget
    5555 */
     
    9393
    9494function uuuaccessibility_admin_styles() {
    95     $version = '1.0.1';
     95    $version = '1.0.2';
    9696    wp_register_style(
    9797        'uuuaccessibility-admin-style',
     
    121121function uuuaccessibility_display_script() {
    122122    $api_key = get_option('uuuaccessibility_text_display');
    123     $script_version = '1.0.1';
     123    $script_version = '1.0.2';
    124124
    125125    wp_register_script(
     
    134134
    135135    $inline_script = 'document.addEventListener("DOMContentLoaded", function() {';
    136     $inline_script .= 'var script = document.querySelector("script#uuuaccessibility-a11y-script-js");';
     136    $inline_script .= 'var script = document.querySelector(\'script[src^="https://uuu.user-a11y.com/assets/js/a11y/script.min.js"]\');';
    137137    $inline_script .= 'if (script) {';
    138138    $inline_script .= '  script.setAttribute("uuu_a11y_apikey", "' . esc_attr($api_key) . '");';
  • accessibility-uuu-widget/trunk/readme.txt

    r3136400 r3145650  
    44Requires at least: 5.0
    55Tested up to: 6.6
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    53535. Translation
    5454== Changelog ==
    55 = 1.0.1 =
     55= 1.0.2 =
    5656* Initial release
    5757== Upgrade Notice ==
    58 = 1.0.1 =
     58= 1.0.2 =
    5959This is the first version of the UUU plugin.
    6060== License ==
Note: See TracChangeset for help on using the changeset viewer.