Changeset 3383742
- Timestamp:
- 10/24/2025 06:18:21 AM (5 months ago)
- Location:
- accessibility-assistant/trunk
- Files:
-
- 5 edited
-
accessibility_assistant.php (modified) (6 diffs)
-
admin/languages-listing.php (modified) (2 diffs)
-
assets/js/custom_js.js (modified) (7 diffs)
-
assets/js/dashboard_count.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
accessibility-assistant/trunk/accessibility_assistant.php
r3380041 r3383742 5 5 Description: ADA, EAA, AODA & WCAG Compliance Widget for Website Accessibility 6 6 Author: CartCoder 7 Version: 3.0. 67 Version: 3.0.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 111 111 wp_enqueue_style('swiper_css', plugin_dir_url(__FILE__) . 'assets/css/swiper-bundle.min.css', false, '1.0.0'); 112 112 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 114 114 wp_enqueue_script('slick_js', plugins_url('assets/js/slick.min.js', __FILE__), array('jquery'), '1.0.0', true); 115 115 wp_enqueue_script('swiper_js', plugins_url('assets/js/swiper.min.js', __FILE__), array('jquery'), '1.0.0', true); … … 150 150 $ipaddress = getUserIpAddr(); 151 151 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"; 156 156 $url = "https://ipinfo.io/{$ipaddress}/json" . ($token ? "?token={$token}" : ""); 157 157 $ipdat = @json_decode(file_get_contents($url)); … … 387 387 )); 388 388 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 407 390 408 391 … … 416 399 ); 417 400 /***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 } 419 427 420 428 // Define an array of page slugs where you want to load the script … … 432 440 // Check if current admin page is part of the plugin 433 441 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); 435 443 } 436 444 -
accessibility-assistant/trunk/admin/languages-listing.php
r3380035 r3383742 444 444 }); 445 445 446 console.log("📤 Sending request to:", apiUrl);447 console.log("📦 Payload:", payload);448 449 446 fetch(apiUrl, { 450 447 method: 'POST', … … 455 452 }) 456 453 .then(res => { 457 console.log("📥 Raw Response:", res); 454 458 455 if (!res.ok) throw new Error(`HTTP error! Status: ${res.status}`); 459 456 return res.json(); 460 457 }) 461 458 .then(data => { 462 console.log("✅ Success:", data); 459 463 460 //jQuery(".loader").css("display", "none"); 464 461 window.location.reload(); -
accessibility-assistant/trunk/assets/js/custom_js.js
r3373653 r3383742 17 17 $footerPopup_checkbox.on('change', function () { 18 18 if ($footerPopup_checkbox.is(':checked') && !footerPopup_shown) { 19 console.log('function changed called');20 19 footerPopup_shown = true; 21 20 footerPopup_show(); … … 26 25 }); 27 26 function footerPopup_show() { 28 console.log('function called');29 27 $footerPopup_element.css('display', 'flex'); 30 28 } … … 132 130 /**Edit-language page start */ 133 131 jQuery(".edit-btn").on("click", function (event) { 134 console.log('edit btn clicked');135 132 event.preventDefault(); // Prevent default anchor behavior 136 133 jQuery(".loader").css("display", "flex"); … … 370 367 .then((response) => response.json()) 371 368 .then((data) => { 372 console.log(data);373 369 if (data.status == 200) { 374 370 jQuery(".ada-cc-popup-main").hide(); … … 394 390 .then((response) => response.json()) 395 391 .then((data) => { 396 console.log(data);397 392 if (data.status == 200) { 398 393 jQuery(".ada-cc-popup-main").hide(); … … 747 742 /*** Reusable OTP Submission Handler ***/ 748 743 async function handleOtpSubmit(e, formEl, popupEl) { 749 console.log("OTP form submitted");750 744 e.preventDefault(); 751 745 const otpInput = formEl.querySelector('.otp-input'); … … 1029 1023 let countryCodeApplied = false; 1030 1024 const inputNames = ['ada-cc-free-pincode']; 1031 console.log('country_codeeee' + myScript.country_code);1032 1025 1033 1026 function setCountryCode(inputElement, code) { -
accessibility-assistant/trunk/assets/js/dashboard_count.js
r3374312 r3383742 366 366 // Call a different data handler if needed, based on context 367 367 getDataAnalysis(requestData, function () { 368 console.log('Data analysis completed for:', $this);368 // console.log('Data analysis completed for:', $this); 369 369 }); 370 370 } -
accessibility-assistant/trunk/readme.txt
r3380041 r3383742 308 308 *Updated style 309 309 310 = 3.0.7 = 311 *Removed log 312 310 313 **Explore More Accessibility Options:** 311 314 [Accessibility Assistant Website](https://accessibilityassistant.com/)
Note: See TracChangeset
for help on using the changeset viewer.