Plugin Directory

Changeset 1849894


Ignore:
Timestamp:
03/30/2018 11:38:53 AM (8 years ago)
Author:
botnation
Message:

Correction de l'import des fichiers de langue

Location:
chatbot-botnation/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chatbot-botnation/trunk/chatbot-botnation.php

    r1842771 r1849894  
    44    Description: Create easily your own AI chatbot for Word Press powered by Botnation AI. Free chatbot building platform.
    55    Author: <a href='https://botnation.ai'>Botnation AI</a>
    6     Version: 1.2.1
     6    Version: 1.2.2
    77    Text Domain: chatbot-botnation
    88    Domain Path: /languages
  • chatbot-botnation/trunk/includes/bnai-cb-administration.php

    r1841321 r1849894  
    33 * Insert an administration menu to configure the plugin.
    44 */
     5    $chatbot_botnation_options = 'bnai_cb_options';
     6
     7    // Hook the 'admin_menu' action hook, run the function named 'bnai_cb_Add_My_Admin_Link()'
     8    add_action( 'admin_menu', 'bnai_cb_create_menu' );
     9
     10    // Add a new top level menu link to the ACP
     11    function bnai_cb_create_menu() {
     12        add_options_page(
     13            'Chatbot Botnation Options',
     14            'Chatbot Botnation',
     15            'manage_options',
     16            'bnai_cb',
     17            'bnai_cb_options_build_page_html_cb'
     18        );
     19    }
     20
     21    /**
     22     * register our bnai_cb_settings_init to the admin_init action hook
     23     */
     24    add_action( 'admin_init', 'bnai_cb_register_settings' );
    525
    626    /**
    727     * custom option and settings
    828     */
    9     function bnai_cb_settings_init() {
    10         // register a new setting for "chatbot-botnation" page
    11         register_setting( 'chatbot-botnation', 'bnai_cb_options' );
    12 
    13         // register a new section in the "bnai_cb" page
     29    function bnai_cb_register_settings() {
     30        // register a new setting for page
     31        register_setting( 'bnai_cb', 'bnai_cb_options' );
     32
     33        // register a new section in the page
    1434        add_settings_section(
    1535            'bnai_cb_section_developers',
     
    3555        // WEBSITE ID
    3656        add_settings_field(
    37             'bnai_cb_field_website_id', // as of WP 4.6 this value is used only internally
    38             // use $args' label_for to populate the id inside the callback
     57            'bnai_cb_field_website_id',
    3958            __( 'Website ID', 'chatbot-botnation' ),
    4059            'bnai_cb_field_website_id_cb',
     
    4968        // AUTO START
    5069        add_settings_field(
    51             'bnai_cb_field_auto_start', // as of WP 4.6 this value is used only internally
    52             // use $args' label_for to populate the id inside the callback
     70            'bnai_cb_field_auto_start',
    5371            __( 'Auto start', 'chatbot-botnation' ),
    5472            'bnai_cb_field_auto_start_cb',
     
    6381        // REF
    6482        add_settings_field(
    65             'bnai_cb_field_ref', // as of WP 4.6 this value is used only internally
    66             // use $args' label_for to populate the id inside the callback
     83            'bnai_cb_field_ref',
    6784            __( 'Ref.', 'chatbot-botnation' ),
    6885            'bnai_cb_field_ref_cb',
     
    7592        );
    7693    }
    77 
    78     /**
    79      * register our bnai_cb_settings_init to the admin_init action hook
    80      */
    81     add_action( 'admin_init', 'bnai_cb_settings_init' );
    8294
    8395    /**
     
    167179    }
    168180
    169     // Add a new top level menu link to the ACP
    170     function bnai_cb_options_pages() {
    171         add_options_page(
    172             'Chatbot Botnation Options',
    173             'Chatbot Botnation',
    174             'manage_options',
    175             'bnai_cb',
    176             'bnai_cb_options_page_html'
    177         );
    178     }
    179 
    180     // Hook the 'admin_menu' action hook, run the function named 'bnai_cb_Add_My_Admin_Link()'
    181     add_action( 'admin_menu', 'bnai_cb_options_pages' );
    182 
    183 
    184     function bnai_cb_options_page_html() {
     181    function bnai_cb_options_build_page_html_cb() {
    185182        // check user capabilities
    186183        if ( ! current_user_can( 'manage_options' ) ) {
  • chatbot-botnation/trunk/includes/bnai-cb-constants.php

    r1841321 r1849894  
    11<?php
    22    if ( !defined( 'BNAI_CB_WIDGET_JS_PATH' ) ) {
    3         define( 'BNAI_CB_WIDGET_JS_PATH', "https://cbassets-stage.botnation.ai/js/widget.js" );
     3        define( 'BNAI_CB_WIDGET_JS_PATH', "https://cbassets.botnation.ai/js/widget.js" );
    44    }
    55
  • chatbot-botnation/trunk/readme.txt

    r1841330 r1849894  
    4545== Changelog ==
    4646
     47= 1.2.2 =
     48* Fixed a bug that prevented to save settings.
     49
    4750= 1.2.1 =
    4851* Added french translations.
Note: See TracChangeset for help on using the changeset viewer.