Plugin Directory

Changeset 2473608


Ignore:
Timestamp:
02/12/2021 09:31:28 AM (5 years ago)
Author:
medaboub
Message:

mqttchat 1.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mqttchat/trunk/mqttchat.php

    r2377795 r2473608  
    44 */
    55/**
    6  * Plugin Name: MqttChat
    7  * Plugin URI: https://mqtt-chat.com/developers/installation-guide/mqtt-chat-cloud-web/wordpress
    8  * Description: Wordpress MqttChat Plugin.
    9  * Version: 1.0.0
     6 * 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
    1010 * Author: Gaddour Mohamed
    1111 * Author URI: https://mqtt-chat.com
     
    3939    private $_userLink;
    4040   
     41   
    4142    function __construct(){
    4243     add_action('init',array($this,'init')) ;
     
    101102     add_settings_section("mqttchat-settings-options","Settings",array($this,"mqttchat_settings_options"),"mqttchat-admin");
    102103     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");
    104105    }
    105106
    106107    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>';
    110112    }
    111113
     
    126128                'app_id',
    127129                esc_attr( 'app_id' ), //becomes part of id attribute of error message
    128                 __( 'Invalid MqttChat APP_ID format!', 'wordpress' ), //default text zone
     130                __( 'Invalid MQTT Chat APP_ID format!', 'wordpress' ), //default text zone
    129131                'error'
    130132            );
     
    148150        wp_register_script(
    149151            '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 file
    151              array('jquery') ,// this array lists the scripts upon which your script depends
    152              '',
    153               true
     152            '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
    154156         );
    155157         
Note: See TracChangeset for help on using the changeset viewer.