Changeset 1849894
- Timestamp:
- 03/30/2018 11:38:53 AM (8 years ago)
- Location:
- chatbot-botnation/trunk
- Files:
-
- 4 edited
-
chatbot-botnation.php (modified) (1 diff)
-
includes/bnai-cb-administration.php (modified) (6 diffs)
-
includes/bnai-cb-constants.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chatbot-botnation/trunk/chatbot-botnation.php
r1842771 r1849894 4 4 Description: Create easily your own AI chatbot for Word Press powered by Botnation AI. Free chatbot building platform. 5 5 Author: <a href='https://botnation.ai'>Botnation AI</a> 6 Version: 1.2. 16 Version: 1.2.2 7 7 Text Domain: chatbot-botnation 8 8 Domain Path: /languages -
chatbot-botnation/trunk/includes/bnai-cb-administration.php
r1841321 r1849894 3 3 * Insert an administration menu to configure the plugin. 4 4 */ 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' ); 5 25 6 26 /** 7 27 * custom option and settings 8 28 */ 9 function bnai_cb_ settings_init() {10 // register a new setting for "chatbot-botnation"page11 register_setting( ' chatbot-botnation', 'bnai_cb_options' );12 13 // register a new section in the "bnai_cb"page29 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 14 34 add_settings_section( 15 35 'bnai_cb_section_developers', … … 35 55 // WEBSITE ID 36 56 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', 39 58 __( 'Website ID', 'chatbot-botnation' ), 40 59 'bnai_cb_field_website_id_cb', … … 49 68 // AUTO START 50 69 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', 53 71 __( 'Auto start', 'chatbot-botnation' ), 54 72 'bnai_cb_field_auto_start_cb', … … 63 81 // REF 64 82 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', 67 84 __( 'Ref.', 'chatbot-botnation' ), 68 85 'bnai_cb_field_ref_cb', … … 75 92 ); 76 93 } 77 78 /**79 * register our bnai_cb_settings_init to the admin_init action hook80 */81 add_action( 'admin_init', 'bnai_cb_settings_init' );82 94 83 95 /** … … 167 179 } 168 180 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() { 185 182 // check user capabilities 186 183 if ( ! current_user_can( 'manage_options' ) ) { -
chatbot-botnation/trunk/includes/bnai-cb-constants.php
r1841321 r1849894 1 1 <?php 2 2 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" ); 4 4 } 5 5 -
chatbot-botnation/trunk/readme.txt
r1841330 r1849894 45 45 == Changelog == 46 46 47 = 1.2.2 = 48 * Fixed a bug that prevented to save settings. 49 47 50 = 1.2.1 = 48 51 * Added french translations.
Note: See TracChangeset
for help on using the changeset viewer.