Changeset 2473608
- Timestamp:
- 02/12/2021 09:31:28 AM (5 years ago)
- File:
-
- 1 edited
-
mqttchat/trunk/mqttchat.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mqttchat/trunk/mqttchat.php
r2377795 r2473608 4 4 */ 5 5 /** 6 * Plugin Name: M qttChat7 * Plugin URI: https:// mqtt-chat.com/developers/installation-guide/mqtt-chat-cloud-web/wordpress8 * Description: Wordpress MqttChat Plugin.9 * Version: 1. 0.06 * Plugin Name: MQTT CHAT 7 * Plugin URI: https://doc.mqtt-chat.com/mqttchat-cloud-web/custom-plugins/wordpress 8 * Description: MQTT CHAT is a chat module that can be easily integrated into your website or android application. 9 * Version: 1.2.0 10 10 * Author: Gaddour Mohamed 11 11 * Author URI: https://mqtt-chat.com … … 39 39 private $_userLink; 40 40 41 41 42 function __construct(){ 42 43 add_action('init',array($this,'init')) ; … … 101 102 add_settings_section("mqttchat-settings-options","Settings",array($this,"mqttchat_settings_options"),"mqttchat-admin"); 102 103 add_settings_field("mqttchat-app-id","Your APP_ID",array($this,"mqttchat_app_id"),"mqttchat-admin","mqttchat-settings-options"); 103 add_settings_field("mqttchat-uf"," Use Friends",array($this,"mqttchat_uf"),"mqttchat-admin","mqttchat-settings-options");104 add_settings_field("mqttchat-uf","Enable UF ?",array($this,"mqttchat_uf"),"mqttchat-admin","mqttchat-settings-options"); 104 105 } 105 106 106 107 function mqttchat_settings_options(){ 107 $mqttchat_doc_link="https://mqttchat.telifoun.com/developers/documentation/mqtt-chat-web-cloud"; 108 echo '<p>Please enter <a href="'.$mqttchat_doc_link.'" target="_blank">APP_ID</a> 109 and <a href="'.$mqttchat_doc_link.'" target="_blank">USE_FRIENDS</a> settings.</p>'; 108 $mqttchat_doc_link="https://doc.mqtt-chat.com/mqttchat-cloud-web/custom-plugins/wordpress"; 109 $mqttchat_uf_link="https://doc.mqtt-chat.com/mqttchat-cloud-web/integration#friends-feature"; 110 echo '<p>Please enter MQTT Chat <a href="'.$mqttchat_doc_link.'" target="_blank">APP_ID</a> 111 and <a href="'.$mqttchat_uf_link.'" target="_blank">UF</a> settings.</p>'; 110 112 } 111 113 … … 126 128 'app_id', 127 129 esc_attr( 'app_id' ), //becomes part of id attribute of error message 128 __( 'Invalid M qttChat APP_ID format!', 'wordpress' ), //default text zone130 __( 'Invalid MQTT Chat APP_ID format!', 'wordpress' ), //default text zone 129 131 'error' 130 132 ); … … 148 150 wp_register_script( 149 151 'mqttchat-script', // name your script so that you can attach other scripts and de-register, etc. 150 "https://cluster1.telifoun.com/rest/'.get_locale().'/mqttchat.js?appId=$app_id&uf=$uf", // this is the location of your script file151 array('jquery') ,// this array lists the scripts upon which your script depends152 '',153 true152 'https://cluster1.telifoun.com/rest/'.substr(get_locale(),0,2).'/mqttchat.js?appId='.$app_id.'&uf='.$uf, // this is the location of your script file 153 array('jquery') ,// this array lists the scripts upon which your script depends 154 '', 155 true 154 156 ); 155 157
Note: See TracChangeset
for help on using the changeset viewer.