Plugin Directory

Changeset 1760564


Ignore:
Timestamp:
11/08/2017 05:27:35 AM (8 years ago)
Author:
sstukov
Message:

1.0.2 Release

Location:
getinchat
Files:
2 edited
6 copied

Legend:

Unmodified
Added
Removed
  • getinchat/tags/1.0.2/getinchat.php

    r1757806 r1760564  
    55 * Author URI: https://getinchat.com
    66 * Description: With GetInChat you can chat with visitors on your website to increase conversion and sales
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 *
    99 * Text Domain:   getinchat
    10  * Domain Path:   /
     10 * Domain Path:   /languages/
    1111 */
    1212
    1313if (!defined('ABSPATH')) die("No script kiddies please!");
    1414
    15 load_plugin_textdomain('getinchat');
     15//load_plugin_textdomain('getinchat');
    1616$lang = get_bloginfo("language");
    17 
     17//echo $lang;
    1818$gic_addr = 'https://www.getinchat.com';
    1919//$gic_addr = 'http://localhost:8000';
    2020
    21 //define ("GIC_LANG", substr($lang,0,2));
    22 
    2321define("GIC_URL",$gic_addr);
    2422define("GIC_PLUGIN_URL",plugin_dir_url(__FILE__));
    2523
     24add_action( 'plugins_loaded', 'getinchat_load_textdomain' );
     25
     26function getinchat_load_textdomain() {
     27  load_plugin_textdomain( 'getinchat', false, basename( dirname( __FILE__ ) ) . '/languages/' );
     28}
     29
    2630register_activation_hook(__FILE__, 'getinchatInstall');
    2731register_deactivation_hook(__FILE__, 'getinchatDelete');
    2832
    2933function getinchat_admin_menu(){
    30     load_plugin_textdomain('getinchat');
    3134    add_menu_page(__('GetInChat','getinchat'), __('GetInChat','getinchat'), 'edit_plugins', basename(__FILE__), 'getinchatPreferences',GIC_PLUGIN_URL."/img/getinchat-icon.png");
    3235}
     
    4043add_action('admin_init', 'getinchat_register_settings');
    4144function getinchat_register_settings(){
    42     //register_setting('getinchat_token', 'getinchat_token', 'getinchat_options_validate');
    4345    register_setting('getinchat_channel_id', 'getinchat_channel_id', 'getinchat_options_validate');
    4446}
     
    6466        getinchat::getInstance()->save();
    6567
    66     load_plugin_textdomain('getinchat', false, PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
     68    //load_plugin_textdomain('getinchat');
     69    //load_plugin_textdomain( 'getinchat', false, basename( dirname( __FILE__ ) ) . '/languages/' );
    6770
    6871    wp_register_style('getinchat_style', plugins_url('getinchat.css', __FILE__));
     
    150153                }
    151154                if($useCurl){
     155
    152156                    if ( $curl = curl_init() ) {
    153157                        curl_setopt($curl, CURLOPT_URL, $path);
     
    168172                                    'header' => 'Content-Type: application/x-www-form-urlencoded',
    169173                                    'content' => $content
    170                                 )
     174                                ),
     175                                'ssl' => array(
     176                                  'verify_peer' => false
     177                              )
    171178                            )
    172179                        )
  • getinchat/tags/1.0.2/readme.txt

    r1757806 r1760564  
    66Tested up to: 4.8.3
    77Requires PHP: 5.2.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99
    1010License: GPLv2 or later
     
    3939== Changelog ==
    4040
     41= 1.0.2 =
     42* Fixes to improve installation process!
    4143
    4244= 1.0.1 =
  • getinchat/trunk/getinchat.php

    r1757806 r1760564  
    55 * Author URI: https://getinchat.com
    66 * Description: With GetInChat you can chat with visitors on your website to increase conversion and sales
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 *
    99 * Text Domain:   getinchat
    10  * Domain Path:   /
     10 * Domain Path:   /languages/
    1111 */
    1212
    1313if (!defined('ABSPATH')) die("No script kiddies please!");
    1414
    15 load_plugin_textdomain('getinchat');
     15//load_plugin_textdomain('getinchat');
    1616$lang = get_bloginfo("language");
    17 
     17//echo $lang;
    1818$gic_addr = 'https://www.getinchat.com';
    1919//$gic_addr = 'http://localhost:8000';
    2020
    21 //define ("GIC_LANG", substr($lang,0,2));
    22 
    2321define("GIC_URL",$gic_addr);
    2422define("GIC_PLUGIN_URL",plugin_dir_url(__FILE__));
    2523
     24add_action( 'plugins_loaded', 'getinchat_load_textdomain' );
     25
     26function getinchat_load_textdomain() {
     27  load_plugin_textdomain( 'getinchat', false, basename( dirname( __FILE__ ) ) . '/languages/' );
     28}
     29
    2630register_activation_hook(__FILE__, 'getinchatInstall');
    2731register_deactivation_hook(__FILE__, 'getinchatDelete');
    2832
    2933function getinchat_admin_menu(){
    30     load_plugin_textdomain('getinchat');
    3134    add_menu_page(__('GetInChat','getinchat'), __('GetInChat','getinchat'), 'edit_plugins', basename(__FILE__), 'getinchatPreferences',GIC_PLUGIN_URL."/img/getinchat-icon.png");
    3235}
     
    4043add_action('admin_init', 'getinchat_register_settings');
    4144function getinchat_register_settings(){
    42     //register_setting('getinchat_token', 'getinchat_token', 'getinchat_options_validate');
    4345    register_setting('getinchat_channel_id', 'getinchat_channel_id', 'getinchat_options_validate');
    4446}
     
    6466        getinchat::getInstance()->save();
    6567
    66     load_plugin_textdomain('getinchat', false, PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
     68    //load_plugin_textdomain('getinchat');
     69    //load_plugin_textdomain( 'getinchat', false, basename( dirname( __FILE__ ) ) . '/languages/' );
    6770
    6871    wp_register_style('getinchat_style', plugins_url('getinchat.css', __FILE__));
     
    150153                }
    151154                if($useCurl){
     155
    152156                    if ( $curl = curl_init() ) {
    153157                        curl_setopt($curl, CURLOPT_URL, $path);
     
    168172                                    'header' => 'Content-Type: application/x-www-form-urlencoded',
    169173                                    'content' => $content
    170                                 )
     174                                ),
     175                                'ssl' => array(
     176                                  'verify_peer' => false
     177                              )
    171178                            )
    172179                        )
  • getinchat/trunk/readme.txt

    r1757806 r1760564  
    66Tested up to: 4.8.3
    77Requires PHP: 5.2.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99
    1010License: GPLv2 or later
     
    3939== Changelog ==
    4040
     41= 1.0.2 =
     42* Fixes to improve installation process!
    4143
    4244= 1.0.1 =
Note: See TracChangeset for help on using the changeset viewer.