Changeset 1760564
- Timestamp:
- 11/08/2017 05:27:35 AM (8 years ago)
- Location:
- getinchat
- Files:
-
- 2 edited
- 6 copied
-
tags/1.0.2 (copied) (copied from getinchat/trunk)
-
tags/1.0.2/getinchat.css (copied) (copied from getinchat/trunk/getinchat.css)
-
tags/1.0.2/getinchat.php (copied) (copied from getinchat/trunk/getinchat.php) (5 diffs)
-
tags/1.0.2/img (copied) (copied from getinchat/trunk/img)
-
tags/1.0.2/readme.txt (copied) (copied from getinchat/trunk/readme.txt) (2 diffs)
-
tags/1.0.2/templates (copied) (copied from getinchat/trunk/templates)
-
trunk/getinchat.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
getinchat/tags/1.0.2/getinchat.php
r1757806 r1760564 5 5 * Author URI: https://getinchat.com 6 6 * Description: With GetInChat you can chat with visitors on your website to increase conversion and sales 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * 9 9 * Text Domain: getinchat 10 * Domain Path: / 10 * Domain Path: /languages/ 11 11 */ 12 12 13 13 if (!defined('ABSPATH')) die("No script kiddies please!"); 14 14 15 load_plugin_textdomain('getinchat');15 //load_plugin_textdomain('getinchat'); 16 16 $lang = get_bloginfo("language"); 17 17 //echo $lang; 18 18 $gic_addr = 'https://www.getinchat.com'; 19 19 //$gic_addr = 'http://localhost:8000'; 20 20 21 //define ("GIC_LANG", substr($lang,0,2));22 23 21 define("GIC_URL",$gic_addr); 24 22 define("GIC_PLUGIN_URL",plugin_dir_url(__FILE__)); 25 23 24 add_action( 'plugins_loaded', 'getinchat_load_textdomain' ); 25 26 function getinchat_load_textdomain() { 27 load_plugin_textdomain( 'getinchat', false, basename( dirname( __FILE__ ) ) . '/languages/' ); 28 } 29 26 30 register_activation_hook(__FILE__, 'getinchatInstall'); 27 31 register_deactivation_hook(__FILE__, 'getinchatDelete'); 28 32 29 33 function getinchat_admin_menu(){ 30 load_plugin_textdomain('getinchat');31 34 add_menu_page(__('GetInChat','getinchat'), __('GetInChat','getinchat'), 'edit_plugins', basename(__FILE__), 'getinchatPreferences',GIC_PLUGIN_URL."/img/getinchat-icon.png"); 32 35 } … … 40 43 add_action('admin_init', 'getinchat_register_settings'); 41 44 function getinchat_register_settings(){ 42 //register_setting('getinchat_token', 'getinchat_token', 'getinchat_options_validate');43 45 register_setting('getinchat_channel_id', 'getinchat_channel_id', 'getinchat_options_validate'); 44 46 } … … 64 66 getinchat::getInstance()->save(); 65 67 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/' ); 67 70 68 71 wp_register_style('getinchat_style', plugins_url('getinchat.css', __FILE__)); … … 150 153 } 151 154 if($useCurl){ 155 152 156 if ( $curl = curl_init() ) { 153 157 curl_setopt($curl, CURLOPT_URL, $path); … … 168 172 'header' => 'Content-Type: application/x-www-form-urlencoded', 169 173 'content' => $content 170 ) 174 ), 175 'ssl' => array( 176 'verify_peer' => false 177 ) 171 178 ) 172 179 ) -
getinchat/tags/1.0.2/readme.txt
r1757806 r1760564 6 6 Tested up to: 4.8.3 7 7 Requires PHP: 5.2.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 10 10 License: GPLv2 or later … … 39 39 == Changelog == 40 40 41 = 1.0.2 = 42 * Fixes to improve installation process! 41 43 42 44 = 1.0.1 = -
getinchat/trunk/getinchat.php
r1757806 r1760564 5 5 * Author URI: https://getinchat.com 6 6 * Description: With GetInChat you can chat with visitors on your website to increase conversion and sales 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * 9 9 * Text Domain: getinchat 10 * Domain Path: / 10 * Domain Path: /languages/ 11 11 */ 12 12 13 13 if (!defined('ABSPATH')) die("No script kiddies please!"); 14 14 15 load_plugin_textdomain('getinchat');15 //load_plugin_textdomain('getinchat'); 16 16 $lang = get_bloginfo("language"); 17 17 //echo $lang; 18 18 $gic_addr = 'https://www.getinchat.com'; 19 19 //$gic_addr = 'http://localhost:8000'; 20 20 21 //define ("GIC_LANG", substr($lang,0,2));22 23 21 define("GIC_URL",$gic_addr); 24 22 define("GIC_PLUGIN_URL",plugin_dir_url(__FILE__)); 25 23 24 add_action( 'plugins_loaded', 'getinchat_load_textdomain' ); 25 26 function getinchat_load_textdomain() { 27 load_plugin_textdomain( 'getinchat', false, basename( dirname( __FILE__ ) ) . '/languages/' ); 28 } 29 26 30 register_activation_hook(__FILE__, 'getinchatInstall'); 27 31 register_deactivation_hook(__FILE__, 'getinchatDelete'); 28 32 29 33 function getinchat_admin_menu(){ 30 load_plugin_textdomain('getinchat');31 34 add_menu_page(__('GetInChat','getinchat'), __('GetInChat','getinchat'), 'edit_plugins', basename(__FILE__), 'getinchatPreferences',GIC_PLUGIN_URL."/img/getinchat-icon.png"); 32 35 } … … 40 43 add_action('admin_init', 'getinchat_register_settings'); 41 44 function getinchat_register_settings(){ 42 //register_setting('getinchat_token', 'getinchat_token', 'getinchat_options_validate');43 45 register_setting('getinchat_channel_id', 'getinchat_channel_id', 'getinchat_options_validate'); 44 46 } … … 64 66 getinchat::getInstance()->save(); 65 67 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/' ); 67 70 68 71 wp_register_style('getinchat_style', plugins_url('getinchat.css', __FILE__)); … … 150 153 } 151 154 if($useCurl){ 155 152 156 if ( $curl = curl_init() ) { 153 157 curl_setopt($curl, CURLOPT_URL, $path); … … 168 172 'header' => 'Content-Type: application/x-www-form-urlencoded', 169 173 'content' => $content 170 ) 174 ), 175 'ssl' => array( 176 'verify_peer' => false 177 ) 171 178 ) 172 179 ) -
getinchat/trunk/readme.txt
r1757806 r1760564 6 6 Tested up to: 4.8.3 7 7 Requires PHP: 5.2.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 10 10 License: GPLv2 or later … … 39 39 == Changelog == 40 40 41 = 1.0.2 = 42 * Fixes to improve installation process! 41 43 42 44 = 1.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.