Changeset 3294268
- Timestamp:
- 05/15/2025 03:27:12 PM (11 months ago)
- Location:
- andy-votre-assistant-intelligent
- Files:
-
- 2 edited
-
tags/2.0.2/Andy-Wordress-Extension.php (modified) (5 diffs)
-
trunk/Andy-Wordress-Extension.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
andy-votre-assistant-intelligent/tags/2.0.2/Andy-Wordress-Extension.php
r3294265 r3294268 4 4 * Plugin Name: Andy, Votre Assistant Intelligent 5 5 * Description: Installe Andy sur votre site WordPress. 6 * Version: 2.0. 16 * Version: 2.0.2 7 7 * Author: Maxime MORLET (MaxiCom) 8 8 * License: GPLv2 or later … … 82 82 if (version_compare($wp_version, '6.3', '>=')) { 83 83 // Modern WordPress 6.3+ way 84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 1', [84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.2', [ 85 85 'strategy' => 'defer', 86 86 ]); 87 87 } else { 88 88 // Old WordPress way 89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 1', true);89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.2', true); 90 90 91 91 // Add defer manually … … 250 250 <?php 251 251 // Enqueue the script to handle the notice dismissal 252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0. 1', true);252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0.2', true); 253 253 254 254 endif; … … 306 306 <?php 307 307 // Enqueue the script for handling the external settings form submission 308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0. 1', true);308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0.2', true); 309 309 } 310 310 … … 405 405 $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }"; 406 406 407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0. 1');407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0.2'); 408 408 wp_add_inline_style('andy-style', $custom_css); 409 409 } -
andy-votre-assistant-intelligent/trunk/Andy-Wordress-Extension.php
r3294265 r3294268 4 4 * Plugin Name: Andy, Votre Assistant Intelligent 5 5 * Description: Installe Andy sur votre site WordPress. 6 * Version: 2.0. 16 * Version: 2.0.2 7 7 * Author: Maxime MORLET (MaxiCom) 8 8 * License: GPLv2 or later … … 82 82 if (version_compare($wp_version, '6.3', '>=')) { 83 83 // Modern WordPress 6.3+ way 84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 1', [84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.2', [ 85 85 'strategy' => 'defer', 86 86 ]); 87 87 } else { 88 88 // Old WordPress way 89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 1', true);89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.2', true); 90 90 91 91 // Add defer manually … … 250 250 <?php 251 251 // Enqueue the script to handle the notice dismissal 252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0. 1', true);252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0.2', true); 253 253 254 254 endif; … … 306 306 <?php 307 307 // Enqueue the script for handling the external settings form submission 308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0. 1', true);308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0.2', true); 309 309 } 310 310 … … 405 405 $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }"; 406 406 407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0. 1');407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0.2'); 408 408 wp_add_inline_style('andy-style', $custom_css); 409 409 }
Note: See TracChangeset
for help on using the changeset viewer.