Plugin Directory

Changeset 3411263


Ignore:
Timestamp:
12/04/2025 05:47:41 PM (4 months ago)
Author:
maxicomdev
Message:

Release v2.12.0

Location:
andy-votre-assistant-intelligent
Files:
22 added
3 edited

Legend:

Unmodified
Added
Removed
  • andy-votre-assistant-intelligent/trunk/Andy-Wordress-Extension.php

    r3411254 r3411263  
    44 * Plugin Name: Andy, Votre Assistant Intelligent
    55 * Description: Installe Andy sur votre site WordPress.
    6  * Version: 2.11.0
     6 * Version: 2.12.0
    77 * Author: Maxime MORLET (MaxiCom)
    88 * License: GPLv2 or later
     
    273273    if (version_compare($wp_version, '6.3', '>=')) {
    274274        // Modern WordPress 6.3+ way
    275         wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.11.0', [
     275        wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.12.0', [
    276276            'strategy' => 'defer',
    277277        ]);
     
    281281    } else {
    282282        // Old WordPress way
    283         wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.11.0', true);
     283        wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.12.0', true);
    284284
    285285        // Add defer manually
     
    299299        'openChatBoxOnLoad'   => $open_chat_box,
    300300        'userId'              => get_current_user_id(),
     301        'language'            => andy_get_user_language(), // Pass language to widget
    301302    ]);
    302303}
     
    464465        <?php
    465466            // Enqueue the script to handle the notice dismissal
    466             wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.11.0', true);
     467            wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.12.0', true);
    467468
    468469            endif;
     
    520521<?php
    521522    // Enqueue the script for handling the external settings form submission
    522     wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.11.0', true);
     523    wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.12.0', true);
    523524}
    524525
     
    757758    }";
    758759
    759     wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.11.0');
     760    wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.12.0');
    760761    wp_add_inline_style('andy-style', $custom_css);
    761762}
  • andy-votre-assistant-intelligent/trunk/Andy/assets/Andy-Widget/scripts/Andy.js

    r3389446 r3411263  
    11/* CONST SECTION */
    22const WEB_SOCKET_URL = `wss://websocket.essayez-andy.fr/`;
     3
     4// Translation dictionary
     5const TRANSLATIONS = {
     6    fr: {
     7        placeholder: 'Écrivez un message...',
     8        liveChat: 'Chat en direct',
     9        telephone: 'Téléphone',
     10        address: 'Adresse',
     11        contact: 'Contact',
     12        contactUs: 'Nous contacter :',
     13        contactUsTitle: 'Nous contacter',
     14        haveQuestion: 'Vous avez une question?',
     15        newConversation: 'Démarrer une nouvelle conversation avec Andy',
     16        requestHuman: 'Demander l\'intervention d\'un conseiller',
     17    },
     18    en: {
     19        placeholder: 'Write a message...',
     20        liveChat: 'Live Chat',
     21        telephone: 'Phone',
     22        address: 'Address',
     23        contact: 'Contact',
     24        contactUs: 'Contact us:',
     25        contactUsTitle: 'Contact Us',
     26        haveQuestion: 'Have a question?',
     27        newConversation: 'Start a new conversation with Andy',
     28        requestHuman: 'Request human advisor assistance',
     29    }
     30};
     31
     32// Get current language from andy object or default to French
     33const currentLanguage = (typeof andy !== 'undefined' && andy.language) ? andy.language : 'fr';
     34const t = TRANSLATIONS[currentLanguage] || TRANSLATIONS.fr;
    335
    436// DOM Elements
     
    4375    'linkedin_page': 'LinkedIn',
    4476    'mail': 'Email',
    45     'tel': 'Téléphone',
    46     'adresse': 'Adresse',
    47     'contact_page': 'Contact',
     77    'tel': t.telephone,
     78    'adresse': t.address,
     79    'contact_page': t.contact,
    4880    'twitter': 'Twitter',
    4981    'youtube': 'YouTube'
     
    5385// Initialize contact methods when DOM is loaded
    5486document.addEventListener('DOMContentLoaded', function() {
     87    // Set placeholder text based on language
     88    if (chatInput) {
     89        chatInput.placeholder = t.placeholder;
     90    }
     91   
     92    // Translate HTML elements
     93    const contactToggle = document.getElementById('contact-toggle');
     94    if (contactToggle) {
     95        contactToggle.title = t.contactUsTitle;
     96    }
     97   
     98    const contactMethodsHeader = document.querySelector('.contact-methods-header h3');
     99    if (contactMethodsHeader) {
     100        contactMethodsHeader.textContent = t.contactUs;
     101    }
     102   
     103    const chatHeaderTitle = document.querySelector('#center-header-div h2');
     104    if (chatHeaderTitle) {
     105        chatHeaderTitle.textContent = t.haveQuestion;
     106    }
     107   
     108    const newConversationButton = document.getElementById('new-conversation-request-header-button');
     109    if (newConversationButton) {
     110        const titleElement = newConversationButton.querySelector('title');
     111        if (titleElement) {
     112            titleElement.textContent = t.newConversation;
     113        }
     114    }
     115   
     116    const humanRequestButton = document.getElementById('human-request-header-button');
     117    if (humanRequestButton) {
     118        const titleElement = humanRequestButton.querySelector('title');
     119        if (titleElement) {
     120            titleElement.textContent = t.requestHuman;
     121        }
     122    }
     123   
    55124    // Add Font Awesome if not already added
    56125    if (!document.querySelector('link[href*="font-awesome"]')) {
     
    86155    liveChatItem.className = 'contact-method-item';
    87156    liveChatItem.href = '#';
    88     liveChatItem.title = 'Live Chat';
     157    liveChatItem.title = t.liveChat;
    89158
    90159    /* CHAT BUBBLE CLICK EVENT SECTION */
  • andy-votre-assistant-intelligent/trunk/readme.txt

    r3411254 r3411263  
    66Requires PHP: 7.3 
    77Donate link: https://essayez-andy.fr
    8 Stable tag: 2.11.0
     8Stable tag: 2.12.0
    99License: GPLv2 or later 
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    6060== Changelog ==
    6161
    62 = 2.11.0 = 
     62= 2.12.0 = 
    6363* Rebranding complet orienté IA. 
    6464* Amélioration de la génération du contexte et de la FAQ. 
     
    7575== Upgrade Notice ==
    7676
    77 = 2.11.0 = 
     77= 2.12.0 = 
    7878Mise à jour recommandée : meilleure pertinence IA et branding clarifié. Aucun changement de configuration requis.
Note: See TracChangeset for help on using the changeset viewer.