Translate WordPress with GTranslate - Version 2.0.17

Version Description

  • GTranslate settings logo moved to localhost
Download this release

Release Info

Developer edo888
Plugin Icon 128x128 Translate WordPress with GTranslate
Version 2.0.17
Comparing to
See all releases

Code changes from version 2.0.16 to 2.0.17

Files changed (2) hide show
  1. gtranslate.php +15 -17
  2. readme.txt +4 -1
gtranslate.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: GTranslate
4
  Plugin URI: https://gtranslate.io/?xyz=998
5
  Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://gtranslate.io/forum/">GTranslate Forum</a>.
6
- Version: 2.0.16
7
  Author: Edvard Ananyan
8
  Author URI: https://gtranslate.io
9
 
@@ -146,7 +146,7 @@ class GTranslate extends WP_Widget {
146
  ?>
147
  <div class="wrap">
148
  <div id="icon-options-general" class="icon32"><br/></div>
149
- <h2><img src="//gtranslate.net/wp-logo.png" border="0" title="GTranslate - your window to the world" alt="GTranslate"></h2>
150
  <?php
151
  if(isset($_POST['save']) and $_POST['save'])
152
  GTranslate::control_options();
@@ -974,21 +974,19 @@ foreach($fincl_langs as $lang)
974
 
975
  $data = get_option('GTranslate');
976
 
977
- $data['pro_version'] = isset($_POST['pro_version']) ? $_POST['pro_version'] : '';
978
- $data['enterprise_version'] = isset($_POST['enterprise_version']) ? $_POST['enterprise_version'] : '';
979
- $data['new_window'] = isset($_POST['new_window']) ? $_POST['new_window'] : '';
980
- $data['analytics'] = isset($_POST['analytics']) ? $_POST['analytics'] : '';
981
- $data['load_jquery'] = isset($_POST['load_jquery']) ? $_POST['load_jquery'] : '';
982
- $data['add_new_line'] = isset($_POST['add_new_line']) ? $_POST['add_new_line'] : '';
983
- //$data['show_dropdown'] = isset($_POST['show_dropdown']) ? $_POST['show_dropdown'] : '';
984
- //$data['show_flags'] = isset($_POST['show_flags']) ? $_POST['show_flags'] : '';
985
- $data['default_language'] = $_POST['default_language'];
986
- $data['translation_method'] = 'onfly'; //$_POST['translation_method'];
987
- $data['widget_look'] = $_POST['widget_look'];
988
- $data['flag_size'] = $_POST['flag_size'];
989
- $data['widget_code'] = stripslashes($_POST['widget_code']);
990
- $data['incl_langs'] = $_POST['incl_langs'];
991
- $data['fincl_langs'] = $_POST['fincl_langs'];
992
 
993
  echo '<p style="color:red;">Changes Saved</p>';
994
  update_option('GTranslate', $data);
3
  Plugin Name: GTranslate
4
  Plugin URI: https://gtranslate.io/?xyz=998
5
  Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://gtranslate.io/forum/">GTranslate Forum</a>.
6
+ Version: 2.0.17
7
  Author: Edvard Ananyan
8
  Author URI: https://gtranslate.io
9
 
146
  ?>
147
  <div class="wrap">
148
  <div id="icon-options-general" class="icon32"><br/></div>
149
+ <h2><img src="<?php echo trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) ); ?>/gt-logo.png" border="0" title="GTranslate - your window to the world" alt="GTranslate"></h2>
150
  <?php
151
  if(isset($_POST['save']) and $_POST['save'])
152
  GTranslate::control_options();
974
 
975
  $data = get_option('GTranslate');
976
 
977
+ $data['pro_version'] = isset($_POST['pro_version']) ? intval($_POST['pro_version']) : '';
978
+ $data['enterprise_version'] = isset($_POST['enterprise_version']) ? intval($_POST['enterprise_version']) : '';
979
+ $data['new_window'] = isset($_POST['new_window']) ? intval($_POST['new_window']) : '';
980
+ $data['analytics'] = isset($_POST['analytics']) ? intval($_POST['analytics']) : '';
981
+ $data['load_jquery'] = isset($_POST['load_jquery']) ? intval($_POST['load_jquery']) : '';
982
+ $data['add_new_line'] = isset($_POST['add_new_line']) ? intval($_POST['add_new_line']) : '';
983
+ $data['default_language'] = isset($_POST['default_language']) ? sanitize_text_field($_POST['default_language']) : 'en';
984
+ $data['translation_method'] = 'onfly';
985
+ $data['widget_look'] = isset($_POST['widget_look']) ? sanitize_text_field($_POST['widget_look']) : 'flags_dropdown';
986
+ $data['flag_size'] = isset($_POST['flag_size']) ? intval($_POST['flag_size']) : '16';
987
+ $data['widget_code'] = isset($_POST['widget_code']) ? stripslashes($_POST['widget_code']) : '';
988
+ $data['incl_langs'] = (isset($_POST['incl_langs']) and is_array($_POST['incl_langs'])) ? $_POST['incl_langs'] : array('en');
989
+ $data['fincl_langs'] = (isset($_POST['fincl_langs']) and is_array($_POST['fincl_langs'])) ? $_POST['fincl_langs'] : array('en');
 
 
990
 
991
  echo '<p style="color:red;">Changes Saved</p>';
992
  update_option('GTranslate', $data);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Author: Edvard Ananyan
4
  Tags: translation proxy, localization, translate, translation, localization, google translate, language, multilingual, multilanguage, bilingual, tradurre, traducir, traduire, traduzione, ubersetzung, mehrsprachig, oversette, oversatta, vertaling, vertaler, meertalig
5
  Requires at least: 2.8
6
  Tested up to: 4.6
7
- Stable tag: 2.0.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Donate link: https://gtranslate.io/?xyz=998#pricing
@@ -395,6 +395,9 @@ You need to go to the language you want to edit, for instance, French: http://do
395
 
396
  == Changelog ==
397
 
 
 
 
398
  = 2.0.16 =
399
  * Fixed possible Cross-Site-Scripting security issue
400
  * GTranslate logo moved to localhost
4
  Tags: translation proxy, localization, translate, translation, localization, google translate, language, multilingual, multilanguage, bilingual, tradurre, traducir, traduire, traduzione, ubersetzung, mehrsprachig, oversette, oversatta, vertaling, vertaler, meertalig
5
  Requires at least: 2.8
6
  Tested up to: 4.6
7
+ Stable tag: 2.0.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Donate link: https://gtranslate.io/?xyz=998#pricing
395
 
396
  == Changelog ==
397
 
398
+ = 2.0.17 =
399
+ * GTranslate settings logo moved to localhost
400
+
401
  = 2.0.16 =
402
  * Fixed possible Cross-Site-Scripting security issue
403
  * GTranslate logo moved to localhost