Changeset 3292666
- Timestamp:
- 05/13/2025 03:09:24 PM (11 months ago)
- Location:
- andy-votre-assistant-intelligent
- Files:
-
- 2 edited
-
tags/1.2.7/Andy-Wordress-Extension.php (modified) (5 diffs)
-
trunk/Andy-Wordress-Extension.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
andy-votre-assistant-intelligent/tags/1.2.7/Andy-Wordress-Extension.php
r3292664 r3292666 4 4 * Plugin Name: Andy, Votre Assistant Intelligent 5 5 * Description: Installe Andy sur votre site WordPress. 6 * Version: 1.2. 66 * Version: 1.2.7 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', [], '1.2. 6', [84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '1.2.7', [ 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', [], '1.2. 6', true);89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '1.2.7', true); 90 90 91 91 // Add defer manually … … 249 249 <?php 250 250 // Enqueue the script to handle the notice dismissal 251 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '1.2. 6', true);251 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '1.2.7', true); 252 252 253 253 endif; … … 305 305 <?php 306 306 // Enqueue the script for handling the external settings form submission 307 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '1.2. 6', true);307 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '1.2.7', true); 308 308 } 309 309 … … 404 404 $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }"; 405 405 406 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '1.2. 6');406 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '1.2.7'); 407 407 wp_add_inline_style('andy-style', $custom_css); 408 408 } -
andy-votre-assistant-intelligent/trunk/Andy-Wordress-Extension.php
r3291472 r3292666 4 4 * Plugin Name: Andy, Votre Assistant Intelligent 5 5 * Description: Installe Andy sur votre site WordPress. 6 * Version: 1.2. 66 * Version: 1.2.7 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', [], '1.2. 6', [84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '1.2.7', [ 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', [], '1.2. 6', true);89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '1.2.7', true); 90 90 91 91 // Add defer manually … … 249 249 <?php 250 250 // Enqueue the script to handle the notice dismissal 251 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '1.2. 6', true);251 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '1.2.7', true); 252 252 253 253 endif; … … 305 305 <?php 306 306 // Enqueue the script for handling the external settings form submission 307 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '1.2. 6', true);307 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '1.2.7', true); 308 308 } 309 309 … … 404 404 $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }"; 405 405 406 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '1.2. 6');406 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '1.2.7'); 407 407 wp_add_inline_style('andy-style', $custom_css); 408 408 }
Note: See TracChangeset
for help on using the changeset viewer.