Google Language Translator - Version 5.0.38

Version Description

Download this release

Release Info

Developer rm2773
Plugin Icon wp plugin Google Language Translator
Version 5.0.38
Comparing to
See all releases

Code changes from version 5.0.37 to 5.0.38

Files changed (3) hide show
  1. css/style.php +71 -94
  2. google-language-translator.php +1 -1
  3. readme.txt +4 -1
css/style.php CHANGED
@@ -2,105 +2,82 @@
2
 
3
  $glt_css = get_option("googlelanguagetranslator_css");
4
 
5
- echo '<style type="text/css">';
6
- echo $glt_css;
7
 
8
- if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- if(get_option('googlelanguagetranslator_display')=='Vertical') {
11
- if (get_option('googlelanguagetranslator_language_option')=='specific') {
12
- echo '#flags {display:none !important; }';
13
- }
14
-
15
- echo 'p.hello { font-size:12px; color:darkgray; }';
16
- echo '#google_language_translator, #flags { text-align:left; }';
17
- } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') {
18
-
19
- if (get_option('googlelanguagetranslator_language_option')=='specific') {
20
- echo '#flags {display:none !important; }';
21
- }
22
-
23
- if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') {
24
- echo '#google_language_translator { text-align:left !important; }';
25
- echo 'select.goog-te-combo { float:right; }';
26
- echo '.goog-te-gadget { padding-top:13px; }';
27
- echo '.goog-te-gadget .goog-te-combo { margin-top:-7px !important; }';
28
- }
29
-
30
- echo '.goog-te-gadget { margin-top:2px !important; }';
31
- echo 'p.hello { font-size:12px; color:#666; }';
32
- } else if (get_option('googlelanguagetranslator_display')=='SIMPLE') {
33
- if (get_option('googlelanguagetranslator_language_option')=='specific') {
34
- echo '#flags {display:none !important; }';
35
- }
36
- if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') {
37
- echo '.goog-te-gadget { float:right; padding-right:10px; clear:right; }';
38
- }
39
- }
40
 
41
- if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') {
42
- echo '#google_language_translator, #language { clear:both; width:160px; text-align:right; }';
43
- echo '#language { float:right; }';
44
- echo '#flags { text-align:right; width:165px; float:right; clear:right; }';
45
- echo '#flags ul { float:right !important; }';
46
- echo 'p.hello { text-align:right; float:right; clear:both; }';
47
- echo '.glt-clear { height:0px; clear:both; margin:0px; padding:0px; }';
48
- }
 
49
 
50
- if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') {
51
- echo '#google_language_translator { clear:both; }';
52
- echo '#flags { width:165px; }';
53
- echo '#flags a { display:inline-block; margin-right:2px; }';
54
- } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') {
55
- echo '#flags { width:165px; }';
56
- echo '#flags a { display:inline-block; margin-left:2px; }';
57
- }
58
- }
 
 
 
59
 
60
- if (get_option('googlelanguagetranslator_manage_translations') == 0) {
61
- if(get_option('googlelanguagetranslator_active')==1) {
62
- echo '.goog-tooltip {display: none !important;}';
63
- echo '.goog-tooltip:hover {display: none !important;}';
64
- echo '.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}';
65
- }
66
- }
67
 
68
- if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
69
- if(get_option('googlelanguagetranslator_active')==1) {
70
- echo '#google_language_translator { width:auto !important; }';
71
- }
72
-
73
- } elseif(get_option('googlelanguagetranslator_showbranding')=='No' && get_option('googlelanguagetranslator_display')!='SIMPLE') {
74
- if(get_option('googlelanguagetranslator_active')==1) {
75
- echo '#google_language_translator a {display: none !important; }';
76
- echo '.goog-te-gadget {color:transparent !important;}';
77
- echo '.goog-te-gadget { font-size:0px !important; }';
78
- echo '.goog-branding { display:none; }';
79
- }
80
- }
81
 
82
- if (get_option('googlelanguagetranslator_translatebox') == 'no') {
83
- if(get_option('googlelanguagetranslator_active')==1) {
84
- echo '#google_language_translator { display:none; }';
85
- }
86
- }
 
 
 
 
 
 
87
 
88
- if (get_option('googlelanguagetranslator_flags') == 'hide_flags') {
89
- if(get_option('googlelanguagetranslator_active') ==1) {
90
- echo '#flags { display:none; }';
91
- }
92
- }
93
-
94
- if(get_option('googlelanguagetranslator_toolbar')=='Yes') {
95
- if(get_option('googlelanguagetranslator_active')==1) {
96
- echo '#google_language_translator {color: transparent;}';
97
- echo 'body { top:0px !important; }';
98
- }
99
- } elseif(get_option('googlelanguagetranslator_toolbar')=='No') {
100
- if(get_option('googlelanguagetranslator_active')==1) {
101
- echo '.goog-te-banner-frame{visibility:hidden !important;}';
102
- echo 'body { top:0px !important;}';
103
- }
104
- }
105
- echo '</style>';
106
- ?>
2
 
3
  $glt_css = get_option("googlelanguagetranslator_css");
4
 
5
+ echo '<style type="text/css">';
6
+ echo $glt_css;
7
 
8
+ if (get_option('googlelanguagetranslator_flags') == 1):
9
+ if(get_option('googlelanguagetranslator_display')=='Vertical'):
10
+ echo 'p.hello { font-size:12px; color:darkgray; }';
11
+ echo '#google_language_translator, #flags { text-align:left; }';
12
+ elseif (get_option('googlelanguagetranslator_display')=='Horizontal'):
13
+ if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right'):
14
+ echo '#google_language_translator { text-align:left !important; }';
15
+ echo 'select.goog-te-combo { float:right; }';
16
+ echo '.goog-te-gadget { padding-top:13px; }';
17
+ echo '.goog-te-gadget .goog-te-combo { margin-top:-7px !important; }';
18
+ endif;
19
+ echo '.goog-te-gadget { margin-top:2px !important; }';
20
+ echo 'p.hello { font-size:12px; color:#666; }';
21
+ elseif (get_option('googlelanguagetranslator_display')=='SIMPLE'):
22
+ if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right'):
23
+ echo '.goog-te-gadget { float:right; clear:right; }';
24
+ endif;
25
+ endif;
26
 
27
+ if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right'):
28
+ echo '#google_language_translator, #language { clear:both; width:160px; text-align:right; }';
29
+ echo '#language { float:right; }';
30
+ echo '#flags { text-align:right; width:165px; float:right; clear:right; }';
31
+ echo '#flags ul { float:right !important; }';
32
+ echo 'p.hello { text-align:right; float:right; clear:both; }';
33
+ echo '.glt-clear { height:0px; clear:both; margin:0px; padding:0px; }';
34
+ endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left'):
37
+ echo '#google_language_translator { clear:both; }';
38
+ echo '#flags { width:165px; }';
39
+ echo '#flags a { display:inline-block; margin-right:2px; }';
40
+ elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right'):
41
+ echo '#flags { width:165px; }';
42
+ echo '#flags a { display:inline-block; margin-left:2px; }';
43
+ endif;
44
+ endif;
45
 
46
+ if (get_option('googlelanguagetranslator_showbranding')=='Yes'):
47
+ if(get_option('googlelanguagetranslator_active')==1):
48
+ echo '#google_language_translator { width:auto !important; }';
49
+ endif;
50
+ elseif (get_option('googlelanguagetranslator_showbranding')=='No' && get_option('googlelanguagetranslator_display')!='SIMPLE'):
51
+ if(get_option('googlelanguagetranslator_active')==1):
52
+ echo '#google_language_translator a {display: none !important; }';
53
+ echo '.goog-te-gadget {color:transparent !important;}';
54
+ echo '.goog-te-gadget { font-size:0px !important; }';
55
+ echo '.goog-branding { display:none; }';
56
+ endif;
57
+ endif;
58
 
59
+ if (get_option('googlelanguagetranslator_translatebox') == 'no'):
60
+ if(get_option('googlelanguagetranslator_active')==1):
61
+ echo '#google_language_translator { display:none; }';
62
+ endif;
63
+ endif;
 
 
64
 
65
+ if (get_option('googlelanguagetranslator_flags') == 0):
66
+ if(get_option('googlelanguagetranslator_active') ==1):
67
+ echo '#flags { display:none; }';
68
+ endif;
69
+ endif;
 
 
 
 
 
 
 
 
70
 
71
+ if (get_option('googlelanguagetranslator_toolbar')=='Yes'):
72
+ if (get_option('googlelanguagetranslator_active')==1):
73
+ echo '#google_language_translator {color: transparent;}';
74
+ echo 'body { top:0px !important; }';
75
+ endif;
76
+ elseif (get_option('googlelanguagetranslator_toolbar')=='No'):
77
+ if (get_option('googlelanguagetranslator_active')==1):
78
+ echo '.goog-te-banner-frame{visibility:hidden !important;}';
79
+ echo 'body { top:0px !important;}';
80
+ endif;
81
+ endif;
82
 
83
+ echo '</style>'; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
google-language-translator.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
- Version: 5.0.37
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Rob Myrick
8
  Author URI: http://www.wp-studio.net/
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 5.0.38
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Rob Myrick
8
  Author URI: http://www.wp-studio.net/
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin link: http://wp-studio.net/how-it-works
5
  Tags: language translator, google translator, language translate, translate wordpress, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
  Tested up to: 4.9.2
8
- Stable tag: 5.0.37
9
 
10
  Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
@@ -46,6 +46,9 @@ A: Yes! Add the "notranslate" class to the HTML element containing your text. Fo
46
 
47
  == Changelog ==
48
 
 
 
 
49
  5.0.37
50
  - Made some additional adjustments in code for the settings page.
51
 
5
  Tags: language translator, google translator, language translate, translate wordpress, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
  Tested up to: 4.9.2
8
+ Stable tag: 5.0.38
9
 
10
  Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
46
 
47
  == Changelog ==
48
 
49
+ 5.0.38
50
+ - Fixed a CSS issue associated with the settings panel changes from the previous update. Flags were not aligning properly with align left/right settings.
51
+
52
  5.0.37
53
  - Made some additional adjustments in code for the settings page.
54