Plugin Directory

Changeset 3383742


Ignore:
Timestamp:
10/24/2025 06:18:21 AM (5 months ago)
Author:
cartcoder
Message:

updated version 3.0.7

Location:
accessibility-assistant/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • accessibility-assistant/trunk/accessibility_assistant.php

    r3380041 r3383742  
    55    Description: ADA, EAA, AODA & WCAG Compliance Widget for Website Accessibility
    66    Author: CartCoder
    7     Version: 3.0.6
     7    Version: 3.0.7
    88    License: GPLv2 or later
    99    License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    111111  wp_enqueue_style('swiper_css', plugin_dir_url(__FILE__) . 'assets/css/swiper-bundle.min.css', false, '1.0.0');
    112112  wp_enqueue_script('custom_js', plugins_url('assets/js/custom_js.js', __FILE__), array('jquery'), '1.0.0', true);
    113   wp_enqueue_script('dashboard_js', plugins_url('assets/js/dashboard_count.js', __FILE__), array('jquery'), '1.0.0', true);
     113
    114114  wp_enqueue_script('slick_js', plugins_url('assets/js/slick.min.js', __FILE__), array('jquery'), '1.0.0', true);
    115115  wp_enqueue_script('swiper_js', plugins_url('assets/js/swiper.min.js', __FILE__), array('jquery'), '1.0.0', true);
     
    150150  $ipaddress = getUserIpAddr();
    151151  if ($ipaddress == "127.0.0.1" || $ipaddress == "::1") {
    152     $ipaddress = "8.8.8.8"; 
    153   }
    154 
    155   $token = "d382bafd690271"; 
     152    $ipaddress = "8.8.8.8";
     153  }
     154
     155  $token = "d382bafd690271";
    156156  $url = "https://ipinfo.io/{$ipaddress}/json" . ($token ? "?token={$token}" : "");
    157157  $ipdat = @json_decode(file_get_contents($url));
     
    387387  ));
    388388
    389   wp_localize_script('dashboard_js', 'dashboardScript', array(
    390     'ajax_url' => admin_url('admin-ajax.php'),
    391     'pluginsUrl' => plugins_url(),
    392     'editLanguagesUrl' => admin_url('admin.php?page=accessibility-laguages'),
    393     'backtolanguages' => admin_url('admin.php?page=accessibility-submenu'),
    394     'planlisting' => admin_url('admin.php?page=accessibility-plan'),
    395     'accessibilitywidget' => admin_url('admin.php?page=accessibility-assistance'),
    396     'assistantUrl' => ASSISTANT_URL,
    397     'shopId' => $shopid,
    398     'lastsevenDays' => __('Last 7 Days', 'accessibility-assistant'),
    399     'lastthirtyDays' => __('Last 30 Days', 'accessibility-assistant'),
    400     'thismonth' => __('This Month', 'accessibility-assistant'),
    401     'lastmonth' => __('Last Month', 'accessibility-assistant'),
    402     'nodataFound' => __('No Significant Most Features Usage Found', 'accessibility-assistant'),
    403     'widgetOpens' => __('Widget Opens', 'accessibility-assistant'),
    404     'eventsClicked' => __('Events Clicked', 'accessibility-assistant'),
    405     'noGraphDatamessage' => __('No relevant data is available for the specified range', 'accessibility-assistant'),
    406   ));
     389
    407390
    408391
     
    416399  );
    417400  /***Live paypal sdk end */
    418 
     401  // Define an array of page slugs where you want to load the script
     402  $dashboardPage = [
     403    'accessibility-assistance', // Main menu page
     404  ];
     405  // Check if current admin page is part of the plugin
     406  if (isset($_GET['page']) && in_array($_GET['page'], $dashboardPage)) {
     407    wp_enqueue_script('dashboard_js', plugins_url('assets/js/dashboard_count.js', __FILE__), array('jquery'), '1.0.0', true);
     408    wp_localize_script('dashboard_js', 'dashboardScript', array(
     409      'ajax_url' => admin_url('admin-ajax.php'),
     410      'pluginsUrl' => plugins_url(),
     411      'editLanguagesUrl' => admin_url('admin.php?page=accessibility-laguages'),
     412      'backtolanguages' => admin_url('admin.php?page=accessibility-submenu'),
     413      'planlisting' => admin_url('admin.php?page=accessibility-plan'),
     414      'accessibilitywidget' => admin_url('admin.php?page=accessibility-assistance'),
     415      'assistantUrl' => ASSISTANT_URL,
     416      'shopId' => $shopid,
     417      'lastsevenDays' => __('Last 7 Days', 'accessibility-assistant'),
     418      'lastthirtyDays' => __('Last 30 Days', 'accessibility-assistant'),
     419      'thismonth' => __('This Month', 'accessibility-assistant'),
     420      'lastmonth' => __('Last Month', 'accessibility-assistant'),
     421      'nodataFound' => __('No Significant Most Features Usage Found', 'accessibility-assistant'),
     422      'widgetOpens' => __('Widget Opens', 'accessibility-assistant'),
     423      'eventsClicked' => __('Events Clicked', 'accessibility-assistant'),
     424      'noGraphDatamessage' => __('No relevant data is available for the specified range', 'accessibility-assistant'),
     425    ));
     426  }
    419427
    420428  // Define an array of page slugs where you want to load the script
     
    432440  // Check if current admin page is part of the plugin
    433441  if (isset($_GET['page']) && in_array($_GET['page'], $plugin_pages)) {
    434      wp_enqueue_script('tracking_js', plugins_url('assets/js/tracking.js', __FILE__), array('jquery'), '1.0.0', true);
     442    wp_enqueue_script('tracking_js', plugins_url('assets/js/tracking.js', __FILE__), array('jquery'), '1.0.0', true);
    435443  }
    436444
  • accessibility-assistant/trunk/admin/languages-listing.php

    r3380035 r3383742  
    444444            });
    445445
    446             console.log("📤 Sending request to:", apiUrl);
    447             console.log("📦 Payload:", payload);
    448 
    449446            fetch(apiUrl, {
    450447                    method: 'POST',
     
    455452                })
    456453                .then(res => {
    457                     console.log("📥 Raw Response:", res);
     454
    458455                    if (!res.ok) throw new Error(`HTTP error! Status: ${res.status}`);
    459456                    return res.json();
    460457                })
    461458                .then(data => {
    462                     console.log("✅ Success:", data);
     459
    463460                    //jQuery(".loader").css("display", "none");
    464461                    window.location.reload();
  • accessibility-assistant/trunk/assets/js/custom_js.js

    r3373653 r3383742  
    1717  $footerPopup_checkbox.on('change', function () {
    1818    if ($footerPopup_checkbox.is(':checked') && !footerPopup_shown) {
    19       console.log('function changed called');
    2019      footerPopup_shown = true;
    2120      footerPopup_show();
     
    2625  });
    2726  function footerPopup_show() {
    28     console.log('function called');
    2927    $footerPopup_element.css('display', 'flex');
    3028  }
     
    132130  /**Edit-language page start */
    133131  jQuery(".edit-btn").on("click", function (event) {
    134     console.log('edit btn clicked');
    135132    event.preventDefault(); // Prevent default anchor behavior
    136133    jQuery(".loader").css("display", "flex");
     
    370367      .then((response) => response.json())
    371368      .then((data) => {
    372         console.log(data);
    373369        if (data.status == 200) {
    374370          jQuery(".ada-cc-popup-main").hide();
     
    394390      .then((response) => response.json())
    395391      .then((data) => {
    396         console.log(data);
    397392        if (data.status == 200) {
    398393          jQuery(".ada-cc-popup-main").hide();
     
    747742    /*** Reusable OTP Submission Handler ***/
    748743    async function handleOtpSubmit(e, formEl, popupEl) {
    749       console.log("OTP form submitted");
    750744      e.preventDefault();
    751745      const otpInput = formEl.querySelector('.otp-input');
     
    10291023let countryCodeApplied = false;
    10301024const inputNames = ['ada-cc-free-pincode'];
    1031 console.log('country_codeeee' + myScript.country_code);
    10321025
    10331026function setCountryCode(inputElement, code) {
  • accessibility-assistant/trunk/assets/js/dashboard_count.js

    r3374312 r3383742  
    366366            // Call a different data handler if needed, based on context
    367367            getDataAnalysis(requestData, function () {
    368                 console.log('Data analysis completed for:', $this);
     368               // console.log('Data analysis completed for:', $this);
    369369            });
    370370        }
  • accessibility-assistant/trunk/readme.txt

    r3380041 r3383742  
    308308*Updated style
    309309
     310= 3.0.7 =
     311*Removed log
     312
    310313**Explore More Accessibility Options:**
    311314[Accessibility Assistant Website](https://accessibilityassistant.com/)
Note: See TracChangeset for help on using the changeset viewer.