Google Language Translator - Version 3.0.8

Version Description

Download this release

Release Info

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

Code changes from version 3.0.7 to 3.0.8

glt_css.php → css/style.php RENAMED
@@ -66,9 +66,6 @@ if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
66
  echo '#google_language_translator a {display: none !important; }';
67
  echo '.goog-te-gadget {color:transparent !important;}';
68
  echo '.goog-te-gadget { font-size:0px !important; }';
69
- echo '.goog-tooltip {display: none !important;}';
70
- echo '.goog-tooltip:hover {display: none !important;}';
71
- echo '.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}';
72
  echo '.goog-branding { display:none; }';
73
  }
74
  }
66
  echo '#google_language_translator a {display: none !important; }';
67
  echo '.goog-te-gadget {color:transparent !important;}';
68
  echo '.goog-te-gadget { font-size:0px !important; }';
 
 
 
69
  echo '.goog-branding { display:none; }';
70
  }
71
  }
glt_activate.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
-
3
- function glt_activate() {
4
- add_option('googlelanguagetranslator_active', 1);
5
- add_option('googlelanguagetranslator_language','en');
6
- add_option('googlelanguagetranslator_language_option','all');
7
- add_option('language_display_settings',array ('en' => 1));
8
- add_option('googlelanguagetranslator_flags','show_flags');
9
- add_option('flag_display_settings',array ('flag-en' => 1));
10
- add_option('googlelanguagetranslator_translatebox','yes');
11
- add_option('googlelanguagetranslator_display','Vertical');
12
- add_option('googlelanguagetranslator_toolbar','Yes');
13
- add_option('googlelanguagetranslator_showbranding','Yes');
14
- add_option('googlelanguagetranslator_flags_alignment','flags_left');
15
- add_option('googlelanguagetranslator_analytics',1);
16
- add_option('googlelanguagetranslator_analytics_id','');
17
- add_option('googlelanguagetranslator_css','');
18
- add_option('googlelanguagetranslator_manage_translations',0);
19
- add_option('googlelanguagetranslator_multilanguage',0);
20
- }
21
-
22
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glt_horizontal.php DELETED
@@ -1,624 +0,0 @@
1
- <?php
2
-
3
- function googlelanguagetranslator_horizontal(){
4
- $is_active = get_option ( 'googlelanguagetranslator_active' );
5
- $get_flag_choices = get_option ('flag_display_settings');
6
- $language_choices = googlelanguagetranslator_included_languages();
7
- $floating_widget = get_option ('googlelanguagetranslator_floating_widget');
8
-
9
- if( $is_active == 1){
10
- if ($floating_widget=='yes') {
11
- $str='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</strong></div>';
12
- $str.='<div id="glt-toolbar">';
13
- if ( isset ( $get_flag_choices['flag-af'] ) ) {
14
- $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="24" width="24" alt="Afrikaans"/></a>';
15
- }
16
-
17
-
18
- if ( isset ( $get_flag_choices['flag-sq'] ) ) {
19
- $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="24" width="24" alt="Albanian"/></a>';
20
- }
21
-
22
- if ( isset ( $get_flag_choices['flag-ar'] ) ) {
23
- $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="24" width="24" alt="Arabic"/></a>';
24
- }
25
-
26
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
27
- $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="24" width="24" alt="Armenian"/></a>';
28
- }
29
-
30
- if ( isset ( $get_flag_choices['flag-az'] ) ) {
31
- $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="24" width="24" alt="Azerbaijani"/></a>';
32
- }
33
-
34
- if ( isset ( $get_flag_choices['flag-eu'] ) ) {
35
- $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="24" width="24" alt="Basque"/></a>';
36
- }
37
-
38
- if ( isset ( $get_flag_choices['flag-be'] ) ) {
39
- $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="24" width="24" alt="Belarus"/></a>';
40
- }
41
-
42
- if ( isset ( $get_flag_choices['flag-bn'] ) ) {
43
- $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="24" width="24" alt="Bengali"/></a>';
44
- }
45
-
46
- if ( isset ( $get_flag_choices['flag-bs'] ) ) {
47
- $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="24" width="24" alt="Bosnian"/></a>';
48
- }
49
-
50
- if ( isset ( $get_flag_choices['flag-bg'] ) ) {
51
- $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="24" width="24" alt="Bulgarian"/></a>';
52
- }
53
-
54
- if ( isset ( $get_flag_choices['flag-ca'] ) ) {
55
- $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="24" width="24" alt="Catalan"/></a>';
56
- }
57
-
58
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
59
- $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Afrikaans"/></a>';
60
- }
61
-
62
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
63
- $str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Simplified)"/></a>';
64
- }
65
-
66
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
67
- $str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Traditional)"/></a>';
68
- }
69
-
70
- if ( isset ( $get_flag_choices['flag-cs'] ) ) {
71
- $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="24" width="24" alt="Czech"/></a>';
72
- }
73
-
74
- if ( isset ( $get_flag_choices['flag-hr'] ) ) {
75
- $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="24" width="24" alt="Croatian"/></a>';
76
- }
77
-
78
- if ( isset ( $get_flag_choices['flag-da'] ) ) {
79
- $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="24" width="24" alt="Danish"/></a>';
80
- }
81
-
82
- if ( isset ( $get_flag_choices['flag-nl'] ) ) {
83
- $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="24" width="24" alt="Dutch"/></a>';
84
- }
85
-
86
- if ( isset ( $get_flag_choices['flag-en'] ) ) {
87
- $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="24" width="24" alt="English"/></a>';
88
- }
89
-
90
- if ( isset ( $get_flag_choices['flag-eo'] ) ) {
91
- $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="24" width="24" alt="Esperanto"/></a>';
92
- }
93
-
94
- if ( isset ( $get_flag_choices['flag-et'] ) ) {
95
- $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="24" width="24" alt="Estonian"/></a>';
96
- }
97
-
98
- if ( isset ( $get_flag_choices['flag-tl'] ) ) {
99
- $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Filipino"/></a>';
100
- }
101
-
102
- if ( isset ( $get_flag_choices['flag-fi'] ) ) {
103
- $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="24" width="24" alt="Finnish"/></a>';
104
- }
105
-
106
- if ( isset ( $get_flag_choices['flag-fr'] ) ) {
107
- $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="24" width="24" alt="French"/></a>';
108
- }
109
-
110
- if ( isset ( $get_flag_choices['flag-gl'] ) ) {
111
- $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="24" width="24" alt="Galician"/></a>';
112
- }
113
-
114
- if ( isset ( $get_flag_choices['flag-ka'] ) ) {
115
- $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="24" width="24" alt="Georgian"/></a>';
116
- }
117
-
118
- if ( isset ( $get_flag_choices['flag-de'] ) ) {
119
- $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="24" width="24" alt="German"/></a>';
120
- }
121
-
122
- if ( isset ( $get_flag_choices['flag-el'] ) ) {
123
- $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="24" width="24" alt="Greek"/></a>';
124
- }
125
-
126
- if ( isset ( $get_flag_choices['flag-gu'] ) ) {
127
- $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Gujarati"/></a>';
128
- }
129
-
130
- if ( isset ( $get_flag_choices['flag-ht'] ) ) {
131
- $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="24" width="24" alt="Haitian"/></a>';
132
- }
133
-
134
- if ( isset ( $get_flag_choices['flag-iw'] ) ) {
135
- $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="24" width="24" alt="Hebrew"/></a>';
136
- }
137
-
138
- if ( isset ( $get_flag_choices['flag-hi'] ) ) {
139
- $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Hindi"/></a>';
140
- }
141
-
142
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
143
- $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="24" width="24" alt="Hmong"/></a>';
144
- }
145
-
146
- if ( isset ( $get_flag_choices['flag-hu'] ) ) {
147
- $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="24" width="24" alt="Hungarian"/></a>';
148
- }
149
-
150
- if ( isset ( $get_flag_choices['flag-is'] ) ) {
151
- $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="24" width="24" alt="Icelandic"/></a>';
152
- }
153
-
154
- if ( isset ( $get_flag_choices['flag-id'] ) ) {
155
- $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Indonesian"/></a>';
156
- }
157
-
158
- if ( isset ( $get_flag_choices['flag-ga'] ) ) {
159
- $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="24" width="24" alt="Irish"/></a>';
160
- }
161
-
162
- if ( isset ( $get_flag_choices['flag-it'] ) ) {
163
- $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="24" width="24" alt="Italian"/></a>';
164
- }
165
-
166
- if ( isset ( $get_flag_choices['flag-ja'] ) ) {
167
- $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="24" width="24" alt="Japanese"/></a>';
168
- }
169
-
170
- if ( isset ( $get_flag_choices['flag-jw'] ) ) {
171
- $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Javanese"/></a>';
172
- }
173
-
174
- if ( isset ( $get_flag_choices['flag-kn'] ) ) {
175
- $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="24" width="24" alt="Kannada"/></a>';
176
- }
177
-
178
- if ( isset ( $get_flag_choices['flag-km'] ) ) {
179
- $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="24" width="24" alt="Khmer"/></a>';
180
- }
181
-
182
- if ( isset ( $get_flag_choices['flag-ko'] ) ) {
183
- $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="24" width="24" alt="Korea"/></a>';
184
- }
185
-
186
- if ( isset ( $get_flag_choices['flag-lo'] ) ) {
187
- $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="24" width="24" alt="Laos"/></a>';
188
- }
189
-
190
- if ( isset ( $get_flag_choices['flag-la'] ) ) {
191
- $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="24" width="24" alt="Latin"/></a>';
192
- }
193
-
194
- if ( isset ( $get_flag_choices['flag-lv'] ) ) {
195
- $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="24" width="24" alt="Latvian"/></a>';
196
- }
197
-
198
- if ( isset ( $get_flag_choices['flag-lt'] ) ) {
199
- $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="24" width="24" alt="Lithuanian"/></a>';
200
- }
201
-
202
- if ( isset ( $get_flag_choices['flag-mk'] ) ) {
203
- $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="24" width="24" alt="Macedonian"/></a>';
204
- }
205
-
206
- if ( isset ( $get_flag_choices['flag-ms'] ) ) {
207
- $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="24" width="24" alt="Malay"/></a>';
208
- }
209
-
210
- if ( isset ( $get_flag_choices['flag-mt'] ) ) {
211
- $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="24" width="24" alt="Malta"/></a>';
212
- }
213
-
214
- if ( isset ( $get_flag_choices['flag-mr'] ) ) {
215
- $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="24" width="24" alt="Marathi"/></a>';
216
- }
217
-
218
- if ( isset ( $get_flag_choices['flag-no'] ) ) {
219
- $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="24" width="24" alt="Norwegian"/></a>';
220
- }
221
-
222
- if ( isset ( $get_flag_choices['flag-fa'] ) ) {
223
- $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="24" width="24" alt="Persian"/></a>';
224
- }
225
-
226
- if ( isset ( $get_flag_choices['flag-pl'] ) ) {
227
- $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="24" width="24" alt="Polish"/></a>';
228
- }
229
-
230
- if ( isset ( $get_flag_choices['flag-pt'] ) ) {
231
- $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="24" width="24" alt="Portuguese"/></a>';
232
- }
233
-
234
- if ( isset ( $get_flag_choices['flag-ro'] ) ) {
235
- $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="24" width="24" alt="Romanian"/></a>';
236
- }
237
-
238
- if ( isset ( $get_flag_choices['flag-ru'] ) ) {
239
- $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="24" width="24" alt="Russian"/></a>';
240
- }
241
-
242
- if ( isset ( $get_flag_choices['flag-sr'] ) ) {
243
- $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="24" width="24" alt="Serbian"/></a>';
244
- }
245
-
246
- if ( isset ( $get_flag_choices['flag-sk'] ) ) {
247
- $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="24" width="24" alt="Slovak"/></a>';
248
- }
249
-
250
- if ( isset ( $get_flag_choices['flag-sl'] ) ) {
251
- $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="24" width="24" alt="Slovenian"/></a>';
252
- }
253
-
254
- if ( isset ( $get_flag_choices['flag-es'] ) ) {
255
- $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="24" width="24" alt="Spanish"/></a>';
256
- }
257
-
258
- if ( isset ( $get_flag_choices['flag-sw'] ) ) {
259
- $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="24" width="24" alt="Swahili"/></a>';
260
- }
261
-
262
- if ( isset ( $get_flag_choices['flag-sv'] ) ) {
263
- $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="24" width="24" alt="Swedish"/></a>';
264
- }
265
-
266
- if ( isset ( $get_flag_choices['flag-ta'] ) ) {
267
- $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="24" width="24" alt="Tamil"/></a>';
268
- }
269
-
270
- if ( isset ( $get_flag_choices['flag-te'] ) ) {
271
- $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="24" width="24" alt="Telugu"/></a>';
272
- }
273
-
274
- if ( isset ( $get_flag_choices['flag-th'] ) ) {
275
- $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="24" width="24" alt="Thai"/></a>';
276
- }
277
-
278
- if ( isset ( $get_flag_choices['flag-tr'] ) ) {
279
- $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="24" width="24" alt="Turkish"/></a>';
280
- }
281
-
282
- if ( isset ( $get_flag_choices['flag-uk'] ) ) {
283
- $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="24" width="24" alt="Ukranian"/></a>';
284
- }
285
-
286
- if ( isset ( $get_flag_choices['flag-ur'] ) ) {
287
- $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="24" width="24" alt="Urdu"/></a>';
288
- }
289
-
290
- if ( isset ( $get_flag_choices['flag-vi'] ) ) {
291
- $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="24" width="24" alt="vietnamese"/></a>';
292
- }
293
-
294
- if ( isset ( $get_flag_choices['flag-cy'] ) ) {
295
- $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="24" width="24" alt="Welsh"/></a>';
296
- }
297
-
298
- if ( isset ( $get_flag_choices['flag-yi'] ) ) {
299
- $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
300
- }
301
- $str.='</div>';
302
- }
303
-
304
- foreach ($get_flag_choices as $key) {
305
- //print_r($key);
306
- }
307
-
308
- $str.='<div id="flags">';
309
-
310
-
311
-
312
- if ($key == '1') {
313
- if ( isset ( $get_flag_choices['flag-af'] ) ) {
314
- $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Afrikaans"/></a>';
315
- }
316
- if ( isset ( $get_flag_choices['flag-sq'] ) ) {
317
- $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="18" width="18" alt="Albanian"/></a>';
318
- }
319
-
320
- if ( isset ( $get_flag_choices['flag-ar'] ) ) {
321
- $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="18" width="18" alt="Arabic"/></a>';
322
- }
323
-
324
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
325
- $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="18" width="18" alt="Armenian"/></a>';
326
- }
327
-
328
- if ( isset ( $get_flag_choices['flag-az'] ) ) {
329
- $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="18" width="18" alt="Azerbaijani"/></a>';
330
- }
331
-
332
- if ( isset ( $get_flag_choices['flag-eu'] ) ) {
333
- $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="18" width="18" alt="Basque"/></a>';
334
- }
335
-
336
- if ( isset ( $get_flag_choices['flag-be'] ) ) {
337
- $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="18" width="18" alt="Belarus"/></a>';
338
- }
339
-
340
- if ( isset ( $get_flag_choices['flag-bn'] ) ) {
341
- $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="18" width="18" alt="Bengali"/></a>';
342
- }
343
-
344
- if ( isset ( $get_flag_choices['flag-bs'] ) ) {
345
- $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="18" width="18" alt="Bosnian"/></a>';
346
- }
347
-
348
- if ( isset ( $get_flag_choices['flag-bg'] ) ) {
349
- $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="18" width="18" alt="Bulgarian"/></a>';
350
- }
351
-
352
- if ( isset ( $get_flag_choices['flag-ca'] ) ) {
353
- $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="18" width="18" alt="Catalan"/></a>';
354
- }
355
-
356
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
357
- $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Afrikaans"/></a>';
358
- }
359
-
360
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
361
- $str.='<a id="Chinese-Simplified)" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Simplified)"/></a>';
362
- }
363
-
364
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
365
- $str.='<a id="Chinese-Traditional)" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Traditional)"/></a>';
366
- }
367
-
368
- if ( isset ( $get_flag_choices['flag-cs'] ) ) {
369
- $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="18" width="18" alt="Czech"/></a>';
370
- }
371
-
372
- if ( isset ( $get_flag_choices['flag-hr'] ) ) {
373
- $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="18" width="18" alt="Croatian"/></a>';
374
- }
375
-
376
- if ( isset ( $get_flag_choices['flag-da'] ) ) {
377
- $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="18" width="18" alt="Danish"/></a>';
378
- }
379
-
380
- if ( isset ( $get_flag_choices['flag-nl'] ) ) {
381
- $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="18" width="18" alt="Dutch"/></a>';
382
- }
383
-
384
- if ( isset ( $get_flag_choices['flag-en'] ) ) {
385
- $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="18" width="18" alt="English"/></a>';
386
- }
387
-
388
- if ( isset ( $get_flag_choices['flag-eo'] ) ) {
389
- $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="18" width="18" alt="Esperanto"/></a>';
390
- }
391
-
392
- if ( isset ( $get_flag_choices['flag-et'] ) ) {
393
- $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="18" width="18" alt="Estonian"/></a>';
394
- }
395
-
396
- if ( isset ( $get_flag_choices['flag-tl'] ) ) {
397
- $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Filipino"/></a>';
398
- }
399
-
400
- if ( isset ( $get_flag_choices['flag-fi'] ) ) {
401
- $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="18" width="18" alt="Finnish"/></a>';
402
- }
403
-
404
- if ( isset ( $get_flag_choices['flag-fr'] ) ) {
405
- $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="18" width="18" alt="French"/></a>';
406
- }
407
-
408
- if ( isset ( $get_flag_choices['flag-gl'] ) ) {
409
- $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="18" width="18" alt="Galician"/></a>';
410
- }
411
-
412
- if ( isset ( $get_flag_choices['flag-ka'] ) ) {
413
- $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="18" width="18" alt="Georgian"/></a>';
414
- }
415
-
416
- if ( isset ( $get_flag_choices['flag-de'] ) ) {
417
- $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="18" width="18" alt="German"/></a>';
418
- }
419
-
420
- if ( isset ( $get_flag_choices['flag-el'] ) ) {
421
- $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="18" width="18" alt="Greek"/></a>';
422
- }
423
-
424
- if ( isset ( $get_flag_choices['flag-gu'] ) ) {
425
- $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Gujarati"/></a>';
426
- }
427
-
428
- if ( isset ( $get_flag_choices['flag-ht'] ) ) {
429
- $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="18" width="18" alt="Haitian"/></a>';
430
- }
431
-
432
- if ( isset ( $get_flag_choices['flag-iw'] ) ) {
433
- $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="18" width="18" alt="Hebrew"/></a>';
434
- }
435
-
436
- if ( isset ( $get_flag_choices['flag-hi'] ) ) {
437
- $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Hindi"/></a>';
438
- }
439
-
440
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
441
- $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="18" width="18" alt="Hmong"/></a>';
442
- }
443
-
444
- if ( isset ( $get_flag_choices['flag-hu'] ) ) {
445
- $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="18" width="18" alt="Hungarian"/></a>';
446
- }
447
-
448
- if ( isset ( $get_flag_choices['flag-is'] ) ) {
449
- $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="18" width="18" alt="Icelandic"/></a>';
450
- }
451
-
452
- if ( isset ( $get_flag_choices['flag-id'] ) ) {
453
- $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Indonesian"/></a>';
454
- }
455
-
456
- if ( isset ( $get_flag_choices['flag-ga'] ) ) {
457
- $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="18" width="18" alt="Irish"/></a>';
458
- }
459
-
460
- if ( isset ( $get_flag_choices['flag-it'] ) ) {
461
- $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="18" width="18" alt="Italian"/></a>';
462
- }
463
-
464
- if ( isset ( $get_flag_choices['flag-ja'] ) ) {
465
- $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="18" width="18" alt="Japanese"/></a>';
466
- }
467
-
468
- if ( isset ( $get_flag_choices['flag-jw'] ) ) {
469
- $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Javanese"/></a>';
470
- }
471
-
472
- if ( isset ( $get_flag_choices['flag-kn'] ) ) {
473
- $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="18" width="18" alt="Kannada"/></a>';
474
- }
475
-
476
- if ( isset ( $get_flag_choices['flag-km'] ) ) {
477
- $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="18" width="18" alt="Khmer"/></a>';
478
- }
479
-
480
- if ( isset ( $get_flag_choices['flag-ko'] ) ) {
481
- $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="18" width="18" alt="Korea"/></a>';
482
- }
483
-
484
- if ( isset ( $get_flag_choices['flag-lo'] ) ) {
485
- $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="18" width="18" alt="Laos"/></a>';
486
- }
487
-
488
- if ( isset ( $get_flag_choices['flag-la'] ) ) {
489
- $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="18" width="18" alt="Latin"/></a>';
490
- }
491
-
492
- if ( isset ( $get_flag_choices['flag-lv'] ) ) {
493
- $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="18" width="18" alt="Latvian"/></a>';
494
- }
495
-
496
- if ( isset ( $get_flag_choices['flag-lt'] ) ) {
497
- $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="18" width="18" alt="Lithuanian"/></a>';
498
- }
499
-
500
- if ( isset ( $get_flag_choices['flag-mk'] ) ) {
501
- $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="18" width="18" alt="Macedonian"/></a>';
502
- }
503
-
504
- if ( isset ( $get_flag_choices['flag-ms'] ) ) {
505
- $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="18" width="18" alt="Malay"/></a>';
506
- }
507
-
508
- if ( isset ( $get_flag_choices['flag-mt'] ) ) {
509
- $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="18" width="18" alt="Malta"/></a>';
510
- }
511
-
512
- if ( isset ( $get_flag_choices['flag-mr'] ) ) {
513
- $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="18" width="18" alt="Marathi"/></a>';
514
- }
515
-
516
- if ( isset ( $get_flag_choices['flag-no'] ) ) {
517
- $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="18" width="18" alt="Norwegian"/></a>';
518
- }
519
-
520
- if ( isset ( $get_flag_choices['flag-fa'] ) ) {
521
- $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="18" width="18" alt="Persian"/></a>';
522
- }
523
-
524
- if ( isset ( $get_flag_choices['flag-pl'] ) ) {
525
- $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="18" width="18" alt="Polish"/></a>';
526
- }
527
-
528
- if ( isset ( $get_flag_choices['flag-pt'] ) ) {
529
- $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="18" width="18" alt="Portuguese"/></a>';
530
- }
531
-
532
- if ( isset ( $get_flag_choices['flag-ro'] ) ) {
533
- $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="18" width="18" alt="Romanian"/></a>';
534
- }
535
-
536
- if ( isset ( $get_flag_choices['flag-ru'] ) ) {
537
- $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="18" width="18" alt="Russian"/></a>';
538
- }
539
-
540
- if ( isset ( $get_flag_choices['flag-sr'] ) ) {
541
- $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="18" width="18" alt="Serbian"/></a>';
542
- }
543
-
544
- if ( isset ( $get_flag_choices['flag-sk'] ) ) {
545
- $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="18" width="18" alt="Slovak"/></a>';
546
- }
547
-
548
- if ( isset ( $get_flag_choices['flag-sl'] ) ) {
549
- $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="18" width="18" alt="Slovenian"/></a>';
550
- }
551
-
552
- if ( isset ( $get_flag_choices['flag-es'] ) ) {
553
- $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="18" width="18" alt="Spanish"/></a>';
554
- }
555
-
556
- if ( isset ( $get_flag_choices['flag-sw'] ) ) {
557
- $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="18" width="18" alt="Swahili"/></a>';
558
- }
559
-
560
- if ( isset ( $get_flag_choices['flag-sv'] ) ) {
561
- $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="18" width="18" alt="Swedish"/></a>';
562
- }
563
-
564
- if ( isset ( $get_flag_choices['flag-ta'] ) ) {
565
- $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="18" width="18" alt="Tamil"/></a>';
566
- }
567
-
568
- if ( isset ( $get_flag_choices['flag-te'] ) ) {
569
- $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="18" width="18" alt="Telugu"/></a>';
570
- }
571
-
572
- if ( isset ( $get_flag_choices['flag-th'] ) ) {
573
- $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="18" width="18" alt="Thai"/></a>';
574
- }
575
-
576
- if ( isset ( $get_flag_choices['flag-tr'] ) ) {
577
- $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="18" width="18" alt="Turkish"/></a>';
578
- }
579
-
580
- if ( isset ( $get_flag_choices['flag-uk'] ) ) {
581
- $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="18" width="18" alt="Ukranian"/></a>';
582
- }
583
-
584
- if ( isset ( $get_flag_choices['flag-ur'] ) ) {
585
- $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="18" width="18" alt="Urdu"/></a>';
586
- }
587
-
588
- if ( isset ( $get_flag_choices['flag-vi'] ) ) {
589
- $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="18" width="18" alt="vietnamese"/></a>';
590
- }
591
-
592
- if ( isset ( $get_flag_choices['flag-cy'] ) ) {
593
- $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="18" width="18" alt="Welsh"/></a>';
594
- }
595
-
596
- if ( isset ( $get_flag_choices['flag-yi'] ) ) {
597
- $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="18" width="18" alt="Yiddish"/></a>';
598
- }
599
- $str.='</div>';
600
-
601
- $is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
602
-
603
- if ($is_multilanguage == 1) {
604
- $multilanguagePage = 'multilanguagePage:true,';
605
-
606
- $str.='<script type="text/javascript">
607
- function GoogleLanguageTranslatorInit() {
608
- new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,'.$multilanguagePage . $language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
609
- </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
610
- <div id="google_language_translator"></div>';
611
- return $str;
612
- } elseif ($is_multilanguage == 0) {
613
-
614
- $str.='<script type="text/javascript">
615
- function GoogleLanguageTranslatorInit() {
616
- new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\',layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,'.$language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
617
- </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
618
- <div id="google_language_translator"></div>';
619
- return $str;
620
- }
621
- }
622
- }
623
- }
624
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glt_scripts.php DELETED
@@ -1,40 +0,0 @@
1
- <?php
2
-
3
- function scripts($hook_suffix) {
4
- global $p;
5
- if ($p == $hook_suffix) {
6
- wp_enqueue_script( 'my-admin-script', plugins_url('/admin.js',__FILE__), array('jquery'));
7
- wp_enqueue_script( 'my-flag-script', plugins_url('/flags.js',__FILE__), array('jquery'));
8
- wp_enqueue_script( 'my-toolbar-script', plugins_url('/toolbar.js',__FILE__), array('jquery'));
9
- wp_enqueue_script( 'my-load-toolbar-script', plugins_url('/load-toolbar.js',__FILE__), array('jquery'));
10
- wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
11
- wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
12
- wp_enqueue_style( 'style.css' );
13
- wp_enqueue_style( 'toolbar.css' );
14
- }
15
- }
16
-
17
- function flags() {
18
- wp_enqueue_script( 'flags', plugins_url('/flags.js',__FILE__), array('jquery'));
19
- wp_enqueue_script( 'my-toolbar-script', plugins_url('/toolbar.js',__FILE__), array('jquery'));
20
- wp_enqueue_script( 'my-load-toolbar-script', plugins_url('/load-toolbar.js',__FILE__), array('jquery'));
21
- wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
22
- wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
23
- wp_enqueue_style( 'style.css' );
24
- wp_enqueue_style( 'toolbar.css' );
25
- }
26
-
27
- if (!is_admin()) {
28
- add_action('init', 'flags');
29
- }
30
-
31
- function page_layout (){
32
- global $p;
33
-
34
- add_action( 'admin_enqueue_scripts', 'scripts');
35
-
36
- $p = add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'google_language_translator', 'page_layout_cb');
37
- }
38
- add_action('admin_menu', 'page_layout');
39
-
40
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glt_settings_display.php DELETED
@@ -1,182 +0,0 @@
1
- <?php function page_layout_cb() { ?>
2
- <div class="wrap">
3
- <div id="icon-options-general" class="icon32"></div>
4
- <h2><span class="notranslate">Google Language Translator</span></h2>
5
- <form action="<?php echo admin_url('options.php'); ?>" method="post">
6
- <div class="metabox-holder has-right-sidebar" style="float:left; width:65%">
7
- <div class="postbox" style="width: 100%">
8
- <h3 class="notranslate">Settings</h3>
9
-
10
- <?php settings_fields('google_language_translator'); ?>
11
- <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
12
- <tr>
13
- <td style="width:60%" class="notranslate">Plugin Status:</td>
14
- <td class="notranslate"><?php googlelanguagetranslator_active_cb(); ?></td>
15
- </tr>
16
-
17
- <tr class="notranslate">
18
- <td>Choose the original language of your website</td>
19
- <td><?php googlelanguagetranslator_language_cb(); ?></td>
20
- </tr>
21
-
22
- <tr class="notranslate">
23
- <td>What translation languages will you display to website visitors?<br/>(Note: To show flags you must choose "All Languages")</td>
24
- <td><?php googlelanguagetranslator_language_option_cb(); ?></td>
25
- </tr>
26
-
27
- <tr class="notranslate">
28
- <td colspan="2"><?php language_display_settings_cb(); ?></td>
29
- </tr>
30
-
31
- <tr class="notranslate">
32
- <td class="choose_flags_intro">Show flag images?<br/>(Display up to 72 flags above the translator)</td>
33
- <td class="choose_flags_intro"><?php googlelanguagetranslator_flags_cb(); ?></td>
34
- </tr>
35
-
36
- <tr class="notranslate">
37
- <td class="choose_flags">Choose the flags you want to display:</td>
38
- <td></td>
39
- </tr>
40
-
41
- <tr class="notranslate">
42
- <td colspan="2" class="choose_flags"><?php flag_display_settings_cb(); ?></td>
43
- </tr>
44
-
45
- <tr class="notranslate">
46
- <td>Show floating translation widget? <strong style="color:red">(New!)</strong><br/>
47
- <span>(Displays in the bottom right corner of your website)</span>
48
- </td>
49
- <td><?php googlelanguagetranslator_floating_widget_cb(); ?></td>
50
- </tr>
51
-
52
- <tr class="notranslate">
53
- <td>Show translate box?</td>
54
- <td><?php googlelanguagetranslator_translatebox_cb(); ?></td>
55
- </tr>
56
-
57
- <tr class="notranslate">
58
- <td>Layout options:</td>
59
- <td><?php googlelanguagetranslator_display_cb(); ?></td>
60
- </tr>
61
-
62
- <tr class="notranslate">
63
- <td>Show Google Toolbar?</td>
64
- <td><?php googlelanguagetranslator_toolbar_cb(); ?></td>
65
- </tr>
66
-
67
- <tr class="notranslate">
68
- <td>Show Google Branding?<br/>
69
- <span>(<a href="https://developers.google.com/translate/v2/attribution" target="_blank">Learn more</a> about Google's Attribution Requirements.)</span>
70
- </td>
71
- <td><?php googlelanguagetranslator_showbranding_cb(); ?></td>
72
- </tr>
73
-
74
- <tr class="alignment notranslate">
75
- <td class="flagdisplay">Align the translator left or right?</td>
76
- <td class="flagdisplay"><?php googlelanguagetranslator_flags_alignment_cb(); ?></td>
77
- </tr>
78
-
79
- <tr class="manage_translations notranslate">
80
- <td>Turn on translation management?<br/>(Managed directly through your Google account. Requires <a href="http://translate.google.com/manager/website/settings" target="_blank">Google Translate</a> meta tag installed in header.)</td>
81
- <td><?php googlelanguagetranslator_manage_translations_cb(); ?></td>
82
- </tr>
83
-
84
- <tr class="multilanguage notranslate">
85
- <td>Multilanguage Page Option?: (<em>not recommended)</em><br/>(If checked, a "forced" translation of your webpage will be served when returned to the default language, instead of delivering original content.)</td>
86
- <td><?php googlelanguagetranslator_multilanguage_cb(); ?></td>
87
- </tr>
88
-
89
- <tr class="notranslate">
90
- <td>Google Analytics:</td>
91
- <td><?php googlelanguagetranslator_analytics_cb(); ?></td>
92
- </tr>
93
-
94
- <tr class="analytics notranslate">
95
- <td>Google Analytics ID (Ex. 'UA-11117410-2')</td>
96
- <td><?php googlelanguagetranslator_analytics_id_cb(); ?></td>
97
- </tr>
98
-
99
- <tr class="notranslate">
100
- <td>Copy/Paste this shortcode if adding to pages/posts:</td>
101
- <td>[google-translator]</td>
102
- </tr>
103
- </table>
104
-
105
- <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
106
- <tr class="notranslate">
107
- <td>Copy/Paste this code if adding to header/footer:</td>
108
- <td>&lt?php echo do_shortcode('[google-translator]'); ?&gt</td>
109
- </tr>
110
-
111
- <tr class="notranslate">
112
- <td><?php submit_button(); ?></td>
113
- <td></td>
114
- </tr>
115
- </table>
116
-
117
- </div> <!-- .postbox -->
118
- </div> <!-- .metbox-holder -->
119
-
120
- <div class="metabox-holder" style="float:right; clear:right; width:33%">
121
- <div class="postbox">
122
- <h3 class="notranslate">Preview</h3>
123
- <table style="width:100%">
124
- <tr>
125
- <td style="height:80px; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; padding:15px 15px; margin:0px"><?php echo do_shortcode('[google-translator]'); ?><p class="hello"><span class="notranslate">Translated text:</span> &nbsp; <span>Hello</span></p></td>
126
- </tr>
127
- </table>
128
- </div> <!-- .postbox -->
129
- </div> <!-- .metabox-holder -->
130
-
131
-
132
- <div class="metabox-holder notranslate" style="float: right; width: 33%;">
133
- <div class="postbox">
134
- <h3>Add CSS Styles</h3>
135
- <div class="inside">
136
- <p>You can apply any necessary CSS styles below:</p>
137
- <?php googlelanguagetranslator_css_cb(); ?>
138
- </div>
139
- </div>
140
- </div>
141
- </form>
142
-
143
- <div class="metabox-holder notranslate" style="float: right; width: 33%;">
144
- <div class="postbox">
145
- <h3>GLT Premium is Here! $12</h3>
146
- <div class="inside"><a href="http://www.wp-studio.net/" target="_blank"><img style="background:#444; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px" src="<?php echo plugins_url('google-language-translator/images/logo.png'); ?>"></a><br />
147
- <ul id="features">
148
- <li>Get more design and functionality options</li>
149
- <li>Loads directly with page content, not afterward</li>
150
- <li>jQuery-powered "Elegant" theme to engage your visitors</li>
151
- <li>Manage your website's translations</li>
152
- <li>Show or hide any features you want</li>
153
- <li>Full access to our support forum</li>
154
- <li>Full access to future updates, for life of the plugin</li>
155
- </ul>
156
- </div>
157
- </div>
158
- </div>
159
-
160
- <div class="metabox-holder notranslate" style="float: right; width: 33%;">
161
- <div class="postbox">
162
- <h3>Please Consider A Donation</h3>
163
- <div class="inside">If you like this plugin and find it useful, help keep this plugin actively developed by clicking the donate button <br /><br />
164
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
165
- <input type="hidden" name="cmd" value="_donations">
166
- <input type="hidden" name="business" value="robertmyrick@hotmail.com">
167
- <input type="hidden" name="lc" value="US">
168
- <input type="hidden" name="item_name" value="Support Studio 88 Design and help us bring you more Wordpress goodies! Any donation is kindly appreciated. Thank you!">
169
- <input type="hidden" name="no_note" value="0">
170
- <input type="hidden" name="currency_code" value="USD">
171
- <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
172
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
173
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
174
- </form>
175
-
176
- <br />
177
- <br />
178
- </div>
179
- </div>
180
- </div>
181
- </div> <!-- .wrap -->
182
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glt_settings_init.php DELETED
@@ -1,1191 +0,0 @@
1
- <?php
2
-
3
- /* ------------------------------------------------------------------------ *
4
- * Setting Registration
5
- * ------------------------------------------------------------------------ */
6
-
7
- function initialize_settings() {
8
-
9
- // First, we register a section. This is necessary since all future options must belong to one.
10
- add_settings_section(
11
- 'glt_settings', // ID used to identify this section and with which to register options
12
- 'Settings', // Title to be displayed on the administration page
13
- '', // Callback used to render the description of the section
14
- 'google_language_translator' // Page on which to add this section of options
15
- );
16
-
17
-
18
-
19
-
20
-
21
- //Fieldset 1
22
- add_settings_field( 'googlelanguagetranslator_active','Plugin status:','googlelanguagetranslator_active_cb','google_language_translator','glt_settings');
23
- add_settings_field( 'googlelanguagetranslator_language','Choose the original language of your website','','googlelanguagetranslator_language_cb','glt_settings');
24
- add_settings_field( 'googlelanguagetranslator_language_option','What translation languages will you display to website visitors?','googlelanguagetranslator_language_option_cb','google_language_translator','glt_settings');
25
- add_settings_field( 'language_display_settings','Your language choices','language_display_settings_cb','google_language_translator','glt_settings');
26
- add_settings_field( 'googlelanguagetranslator_flags','Show Flag Images?','googlelanguagetranslator_flags_cb','google_language_translator','glt_settings');
27
- add_settings_field( 'flag_display_settings','Flag Options','flag_display_settings_cb','google_language_translator','glt_settings');
28
- add_settings_field( 'googlelanguagetranslator_translatebox','Show Translate Box?','googlelanguagetranslator_translatebox_cb','google_language_translator','glt_settings');
29
- add_settings_field( 'googlelanguagetranslator_display', 'Layout Options','googlelanguagetranslator_display_cb','google_language_translator','glt_settings');
30
- add_settings_field( 'googlelanguagetranslator_toolbar', 'Show Toolbar','googlelanguagetranslator_toolbar_cb','google_language_translator','glt_settings');
31
- add_settings_field( 'googlelanguagetranslator_showbranding', 'Show Google Branding','googlelanguagetranslator_showbranding_cb','google_language_translator','glt_settings');
32
- add_settings_field( 'googlelanguagetranslator_flags_alignment', 'Align Flags Right or Left', 'googlelanguagetranslator_flags_alignment_cb','google_language_translator','glt_settings');
33
- add_settings_field( 'googlelanguagetranslator_analytics','Activate Google Analytics tracking?','googlelanguagetranslator_analytics_cb','google_language_translator','glt_settings');
34
- add_settings_field( 'googlelanguagetranslator_analytics_id','Enter your Google Analytics ID','googlelanguagetranslator_analytics_id_cb','google_language_translator','glt_settings');
35
- add_settings_field( 'googlelanguagetranslator_css','Custom CSS Overrides','googlelanguagetranslator_css_cb','google_language_translator','glt_settings');
36
- add_settings_field( 'googlelanguagetranslator_manage_translations','Turn on translation management?','googlelanguagetranslator_manage_translations_cb','google_language_translator','glt_settings');
37
- add_settings_field( 'googlelanguagetranslator_multilanguage','Multilanguage webpages?','googlelanguagetranslator_multilanguage_cb','google_language_translator','glt_settings');
38
- add_settings_field( 'googlelanguagetranslator_floating_widget','Show floating translation widget?','googlelanguagetranslator_floating_widget_cb','google_language_translator','glt_settings');
39
-
40
-
41
-
42
- //Register Fieldset 1
43
- register_setting( 'google_language_translator','googlelanguagetranslator_active');
44
- register_setting( 'google_language_translator','googlelanguagetranslator_language');
45
- register_setting( 'google_language_translator','googlelanguagetranslator_language_option');
46
- register_setting( 'google_language_translator','language_display_settings');
47
- register_setting( 'google_language_translator','googlelanguagetranslator_flags');
48
- register_setting( 'google_language_translator','flag_display_settings');
49
- register_setting( 'google_language_translator','googlelanguagetranslator_translatebox');
50
- register_setting( 'google_language_translator','googlelanguagetranslator_display');
51
- register_setting( 'google_language_translator','googlelanguagetranslator_toolbar');
52
- register_setting( 'google_language_translator','googlelanguagetranslator_showbranding');
53
- register_setting( 'google_language_translator','googlelanguagetranslator_flags_alignment');
54
- register_setting( 'google_language_translator','googlelanguagetranslator_disable_mootools');
55
- register_setting( 'google_language_translator','googlelanguagetranslator_disable_modal');
56
- register_setting( 'google_language_translator','googlelanguagetranslator_analytics');
57
- register_setting( 'google_language_translator','googlelanguagetranslator_analytics_id');
58
- register_setting( 'google_language_translator','googlelanguagetranslator_css');
59
- register_setting( 'google_language_translator','googlelanguagetranslator_manage_translations');
60
- register_setting( 'google_language_translator','googlelanguagetranslator_multilanguage');
61
- register_setting( 'google_language_translator','googlelanguagetranslator_floating_widget');
62
-
63
- function googlelanguagetranslator_active_cb() {
64
-
65
- $option_name = 'googlelanguagetranslator_active' ;
66
- $new_value = 1;
67
-
68
- if ( get_option( $option_name ) === false ) {
69
-
70
- // The option does not exist, so we update it.
71
- update_option( $option_name, $new_value );
72
- }
73
-
74
- $options = get_option (''.$option_name.'');
75
-
76
- $html = '<input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" '.checked(1,$options,false).'/> &nbsp; Activate Google Language Translator?';
77
- echo $html;
78
- }
79
-
80
- function googlelanguagetranslator_language_cb() {
81
-
82
- $option_name = 'googlelanguagetranslator_language';
83
- $new_value = 'en';
84
-
85
- if ( get_option( $option_name ) === false ) {
86
-
87
- // The option does not exist, so we update it.
88
- update_option( $option_name, $new_value );
89
- }
90
-
91
- $options = get_option (''.$option_name.''); ?>
92
- <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language">
93
- <option value="af" <?php if($options=='af'){echo "selected";}?>>Afrikaans</option>
94
- <option value="sq" <?php if($options=='sq'){echo "selected";}?>>Albanian</option>
95
- <option value="ar" <?php if($options=='ar'){echo "selected";}?>>Arabic</option>
96
- <option value="hy" <?php if($options=='hy'){echo "selected";}?>>Armenian</option>
97
- <option value="az" <?php if($options=='az'){echo "selected";}?>>Azerbaijani</option>
98
- <option value="eu" <?php if($options=='eu'){echo "selected";}?>>Basque</option>
99
- <option value="be" <?php if($options=='be'){echo "selected";}?>>Belarusian</option>
100
- <option value="bn" <?php if($options=='bn'){echo "selected";}?>>Bengali</option>
101
- <option value="bs" <?php if($options=='bs'){echo "selected";}?>>Bosnian</option>
102
- <option value="bg" <?php if($options=='bg'){echo "selected";}?>>Bulgarian</option>
103
- <option value="ca" <?php if($options=='ca'){echo "selected";}?>>Catalan</option>
104
- <option value="ceb" <?php if($options=='ceb'){echo "selected";}?>>Cebuano</option>
105
- <option value="zh-CN" <?php if($options=='zh-CN'){echo "selected";}?>>Chinese</option>
106
- <option value="zh-TW" <?php if($options=='zh-TW'){echo "selected";}?>>Chinese (Han)</option>
107
- <option value="hr" <?php if($options=='hr'){echo "selected";}?>>Croatian</option>
108
- <option value="cs" <?php if($options=='cs'){echo "selected";}?>>Czech</option>
109
- <option value="da" <?php if($options=='da'){echo "selected";}?>>Danish</option>
110
- <option value="nl" <?php if($options=='nl'){echo "selected";}?>>Dutch</option>
111
- <option value="en" <?php if($options=='en'){echo "selected";}?>>English</option>
112
- <option value="eo" <?php if($options=='eo'){echo "selected";}?>>Esperanto</option>
113
- <option value="et" <?php if($options=='et'){echo "selected";}?>>Estonian</option>
114
- <option value="tl" <?php if($options=='tl'){echo "selected";}?>>Filipino</option>
115
- <option value="fi" <?php if($options=='fi'){echo "selected";}?>>Finnish</option>
116
- <option value="fr" <?php if($options=='fr'){echo "selected";}?>>French</option>
117
- <option value="gl" <?php if($options=='gl'){echo "selected";}?>>Galician</option>
118
- <option value="ka" <?php if($options=='ka'){echo "selected";}?>>Georgian</option>
119
- <option value="de" <?php if($options=='de'){echo "selected";}?>>German</option>
120
- <option value="el" <?php if($options=='el'){echo "selected";}?>>Greek</option>
121
- <option value="gu" <?php if($options=='gu'){echo "selected";}?>>Gujarati</option>
122
- <option value="ht" <?php if($options=='ht'){echo "selected";}?>>Haitian</option>
123
- <option value="iw" <?php if($options=='iw'){echo "selected";}?>>Hebrew</option>
124
- <option value="hi" <?php if($options=='hi'){echo "selected";}?>>Hindi</option>
125
- <option value="hmn" <?php if($options=='hmn'){echo "selected";}?>>Hmong</option>
126
- <option value="hu" <?php if($options=='hu'){echo "selected";}?>>Hungarian</option>
127
- <option value="is" <?php if($options=='is'){echo "selected";}?>>Icelandic</option>
128
- <option value="id" <?php if($options=='id'){echo "selected";}?>>Indonesian</option>
129
- <option value="ga" <?php if($options=='ga'){echo "selected";}?>>Irish</option>
130
- <option value="it" <?php if($options=='it'){echo "selected";}?>>Italian</option>
131
- <option value="ja" <?php if($options=='ja'){echo "selected";}?>>Japanese</option>
132
- <option value="jw" <?php if($options=='jw'){echo "selected";}?>>Javanese</option>
133
- <option value="kn" <?php if($options=='kn'){echo "selected";}?>>Kannada</option>
134
- <option value="km" <?php if($options=='km'){echo "selected";}?>>Khmer</option>
135
- <option value="ko" <?php if($options=='ko'){echo "selected";}?>>Korean</option>
136
- <option value="lo" <?php if($options=='lo'){echo "selected";}?>>Lao</option>
137
- <option value="la" <?php if($options=='la'){echo "selected";}?>>Latin</option>
138
- <option value="lv" <?php if($options=='lv'){echo "selected";}?>>Latvian</option>
139
- <option value="lt" <?php if($options=='lt'){echo "selected";}?>>Lithuanian</option>
140
- <option value="mk" <?php if($options=='mk'){echo "selected";}?>>Macedonian</option>
141
- <option value="ms" <?php if($options=='ms'){echo "selected";}?>>Malay</option>
142
- <option value="mt" <?php if($options=='mt'){echo "selected";}?>>Maltese</option>
143
- <option value="mr" <?php if($options=='mr'){echo "selected";}?>>Marathi</option>
144
- <option value="no" <?php if($options=='no'){echo "selected";}?>>Norwegian</option>
145
- <option value="fa" <?php if($options=='fa'){echo "selected";}?>>Persian</option>
146
- <option value="pl" <?php if($options=='pl'){echo "selected";}?>>Polish</option>
147
- <option value="pt" <?php if($options=='pt'){echo "selected";}?>>Portuguese</option>
148
- <option value="ro" <?php if($options=='ro'){echo "selected";}?>>Romanian</option>
149
- <option value="ru" <?php if($options=='ru'){echo "selected";}?>>Russian</option>
150
- <option value="sr" <?php if($options=='sr'){echo "selected";}?>>Serbian</option>
151
- <option value="sk" <?php if($options=='sk'){echo "selected";}?>>Slovak</option>
152
- <option value="sl" <?php if($options=='sl'){echo "selected";}?>>Slovenian</option>
153
- <option value="es" <?php if($options=='es'){echo "selected";}?>>Spanish</option>
154
- <option value="sw" <?php if($options=='sw'){echo "selected";}?>>Swahili</option>
155
- <option value="sv" <?php if($options=='sv'){echo "selected";}?>>Swedish</option>
156
- <option value="ta" <?php if($options=='ta'){echo "selected";}?>>Tamil</option>
157
- <option value="te" <?php if($options=='te'){echo "selected";}?>>Telugu</option>
158
- <option value="th" <?php if($options=='th'){echo "selected";}?>>Thai</option>
159
- <option value="tr" <?php if($options=='tr'){echo "selected";}?>>Turkish</option>
160
- <option value="uk" <?php if($options=='uk'){echo "selected";}?>>Ukranian</option>
161
- <option value="ur" <?php if($options=='ur'){echo "selected";}?>>Urdu</option>
162
- <option value="vi" <?php if($options=='vi'){echo "selected";}?>>Vietnamese</option>
163
- <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Welsh</option>
164
- <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Yiddish</option>
165
- </select>
166
- <?php
167
-
168
- }
169
-
170
- function googlelanguagetranslator_language_option_cb() {
171
-
172
- $option_name = 'googlelanguagetranslator_language_option' ;
173
- $new_value = 'all';
174
-
175
- if ( get_option( $option_name ) === false ) {
176
-
177
- // The option does not exist, so we update it.
178
- update_option( $option_name, $new_value );
179
- }
180
-
181
- $options = get_option (''.$option_name.''); ?>
182
-
183
- <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="all" <?php if($options=='all'){echo "checked";}?>/> All Languages<br/>
184
- <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="specific" <?php if($options=='specific'){echo "checked";}?>/> Specific Languages
185
- <?php }
186
-
187
-
188
-
189
- function language_display_settings_cb() {
190
- $defaults = array (
191
- 'en' => 1
192
- );
193
-
194
- $option_name = 'language_display_settings' ;
195
- $new_value = $defaults;
196
-
197
- if ( get_option( $option_name ) === false ) {
198
-
199
- // The option does not exist, so we update it.
200
- update_option( $option_name, $new_value );
201
- }
202
-
203
- $get_language_choices = get_option (''.$option_name.'');
204
-
205
- if (!isset ( $get_language_choices ['af'] ) ) {
206
- $get_language_choices['af'] = 0;
207
- }
208
-
209
- if (!isset ( $get_language_choices ['sq'] ) ) {
210
- $get_language_choices['sq'] = 0;
211
- }
212
-
213
- if (!isset ( $get_language_choices ['ar'] ) ) {
214
- $get_language_choices['ar'] = 0;
215
- }
216
-
217
- if (!isset ( $get_language_choices ['hy'] ) ) {
218
- $get_language_choices['hy'] = 0;
219
- }
220
-
221
- if (!isset ( $get_language_choices ['az'] ) ) {
222
- $get_language_choices['az'] = 0;
223
- }
224
-
225
- if (!isset ( $get_language_choices ['eu'] ) ) {
226
- $get_language_choices['eu'] = 0;
227
- }
228
-
229
- if (!isset ( $get_language_choices ['be'] ) ) {
230
- $get_language_choices['be'] = 0;
231
- }
232
-
233
- if (!isset ( $get_language_choices ['bn'] ) ) {
234
- $get_language_choices['bn'] = 0;
235
- }
236
-
237
- if (!isset ( $get_language_choices ['bs'] ) ) {
238
- $get_language_choices['bs'] = 0;
239
- }
240
-
241
- if (!isset ( $get_language_choices ['bg'] ) ) {
242
- $get_language_choices['bg'] = 0;
243
- }
244
-
245
- if (!isset ( $get_language_choices ['ca'] ) ) {
246
- $get_language_choices['ca'] = 0;
247
- }
248
-
249
- if (!isset ( $get_language_choices ['ceb'] ) ) {
250
- $get_language_choices['ceb'] = 0;
251
- }
252
-
253
- if (!isset ( $get_language_choices ['zh-CN'] ) ) {
254
- $get_language_choices['zh-CN'] = 0;
255
- }
256
-
257
- if (!isset ( $get_language_choices ['zh-TW'] ) ) {
258
- $get_language_choices['zh-TW'] = 0;
259
- }
260
-
261
- if (!isset ( $get_language_choices ['hr'] ) ) {
262
- $get_language_choices['hr'] = 0;
263
- }
264
-
265
- if (!isset ( $get_language_choices ['cs'] ) ) {
266
- $get_language_choices['cs'] = 0;
267
- }
268
-
269
- if (!isset ( $get_language_choices ['da'] ) ) {
270
- $get_language_choices['da'] = 0;
271
- }
272
-
273
- if (!isset ( $get_language_choices ['nl'] ) ) {
274
- $get_language_choices['nl'] = 0;
275
- }
276
-
277
- if (!isset ( $get_language_choices ['en'] ) ) {
278
- $get_language_choices['en'] = 1;
279
- }
280
-
281
- if (!isset ( $get_language_choices ['eo'] ) ) {
282
- $get_language_choices['eo'] = 0;
283
- }
284
-
285
- if (!isset ( $get_language_choices ['et'] ) ) {
286
- $get_language_choices['et'] = 0;
287
- }
288
-
289
- if (!isset ( $get_language_choices ['tl'] ) ) {
290
- $get_language_choices['tl'] = 0;
291
- }
292
-
293
- if (!isset ( $get_language_choices ['fi'] ) ) {
294
- $get_language_choices['fi'] = 0;
295
- }
296
-
297
- if (!isset ( $get_language_choices ['fr'] ) ) {
298
- $get_language_choices['fr'] = 0;
299
- }
300
-
301
- if (!isset ( $get_language_choices ['gl'] ) ) {
302
- $get_language_choices['gl'] = 0;
303
- }
304
-
305
- if (!isset ( $get_language_choices ['ka'] ) ) {
306
- $get_language_choices['ka'] = 0;
307
- }
308
-
309
- if (!isset ( $get_language_choices ['de'] ) ) {
310
- $get_language_choices['de'] = 0;
311
- }
312
-
313
- if (!isset ( $get_language_choices ['el'] ) ) {
314
- $get_language_choices['el'] = 0;
315
- }
316
-
317
- if (!isset ( $get_language_choices ['gu'] ) ) {
318
- $get_language_choices['gu'] = 0;
319
- }
320
-
321
- if (!isset ( $get_language_choices ['ht'] ) ) {
322
- $get_language_choices['ht'] = 0;
323
- }
324
-
325
- if (!isset ( $get_language_choices ['iw'] ) ) {
326
- $get_language_choices['iw'] = 0;
327
- }
328
-
329
- if (!isset ( $get_language_choices ['hi'] ) ) {
330
- $get_language_choices['hi'] = 0;
331
- }
332
-
333
- if (!isset ( $get_language_choices ['hmn'] ) ) {
334
- $get_language_choices['hmn'] = 0;
335
- }
336
-
337
- if (!isset ( $get_language_choices ['hu'] ) ) {
338
- $get_language_choices['hu'] = 0;
339
- }
340
-
341
- if (!isset ( $get_language_choices ['is'] ) ) {
342
- $get_language_choices['is'] = 0;
343
- }
344
-
345
- if (!isset ( $get_language_choices ['id'] ) ) {
346
- $get_language_choices['id'] = 0;
347
- }
348
-
349
- if (!isset ( $get_language_choices ['ga'] ) ) {
350
- $get_language_choices['ga'] = 0;
351
- }
352
-
353
- if (!isset ( $get_language_choices ['it'] ) ) {
354
- $get_language_choices['it'] = 0;
355
- }
356
-
357
- if (!isset ( $get_language_choices ['ja'] ) ) {
358
- $get_language_choices['ja'] = 0;
359
- }
360
-
361
- if (!isset ( $get_language_choices ['jw'] ) ) {
362
- $get_language_choices['jw'] = 0;
363
- }
364
-
365
- if (!isset ( $get_language_choices ['kn'] ) ) {
366
- $get_language_choices['kn'] = 0;
367
- }
368
-
369
- if (!isset ( $get_language_choices ['km'] ) ) {
370
- $get_language_choices['km'] = 0;
371
- }
372
-
373
- if (!isset ( $get_language_choices ['ko'] ) ) {
374
- $get_language_choices['ko'] = 0;
375
- }
376
-
377
- if (!isset ( $get_language_choices ['lo'] ) ) {
378
- $get_language_choices['lo'] = 0;
379
- }
380
-
381
- if (!isset ( $get_language_choices ['la'] ) ) {
382
- $get_language_choices['la'] = 0;
383
- }
384
-
385
- if (!isset ( $get_language_choices ['lv'] ) ) {
386
- $get_language_choices['lv'] = 0;
387
- }
388
-
389
- if (!isset ( $get_language_choices ['lt'] ) ) {
390
- $get_language_choices['lt'] = 0;
391
- }
392
-
393
- if (!isset ( $get_language_choices ['mk'] ) ) {
394
- $get_language_choices['mk'] = 0;
395
- }
396
-
397
- if (!isset ( $get_language_choices ['ms'] ) ) {
398
- $get_language_choices['ms'] = 0;
399
- }
400
-
401
- if (!isset ( $get_language_choices ['mt'] ) ) {
402
- $get_language_choices['mt'] = 0;
403
- }
404
-
405
- if (!isset ( $get_language_choices ['mr'] ) ) {
406
- $get_language_choices['mr'] = 0;
407
- }
408
-
409
- if (!isset ( $get_language_choices ['no'] ) ) {
410
- $get_language_choices['no'] = 0;
411
- }
412
-
413
- if (!isset ( $get_language_choices ['fa'] ) ) {
414
- $get_language_choices['fa'] = 0;
415
- }
416
-
417
- if (!isset ( $get_language_choices ['pl'] ) ) {
418
- $get_language_choices['pl'] = 0;
419
- }
420
-
421
- if (!isset ( $get_language_choices ['pt'] ) ) {
422
- $get_language_choices['pt'] = 0;
423
- }
424
-
425
- if (!isset ( $get_language_choices ['ro'] ) ) {
426
- $get_language_choices['ro'] = 0;
427
- }
428
-
429
- if (!isset ( $get_language_choices ['ru'] ) ) {
430
- $get_language_choices['ru'] = 0;
431
- }
432
-
433
- if (!isset ( $get_language_choices ['sr'] ) ) {
434
- $get_language_choices['sr'] = 0;
435
- }
436
-
437
- if (!isset ( $get_language_choices ['sk'] ) ) {
438
- $get_language_choices['sk'] = 0;
439
- }
440
-
441
- if (!isset ( $get_language_choices ['sl'] ) ) {
442
- $get_language_choices['sl'] = 0;
443
- }
444
-
445
- if (!isset ( $get_language_choices ['es'] ) ) {
446
- $get_language_choices['es'] = 0;
447
- }
448
-
449
- if (!isset ( $get_language_choices ['sw'] ) ) {
450
- $get_language_choices['sw'] = 0;
451
- }
452
-
453
- if (!isset ( $get_language_choices ['sv'] ) ) {
454
- $get_language_choices['sv'] = 0;
455
- }
456
-
457
- if (!isset ( $get_language_choices ['ta'] ) ) {
458
- $get_language_choices['ta'] = 0;
459
- }
460
-
461
- if (!isset ( $get_language_choices ['te'] ) ) {
462
- $get_language_choices['te'] = 0;
463
- }
464
-
465
- if (!isset ( $get_language_choices ['th'] ) ) {
466
- $get_language_choices['th'] = 0;
467
- }
468
-
469
- if (!isset ( $get_language_choices ['tr'] ) ) {
470
- $get_language_choices['tr'] = 0;
471
- }
472
-
473
- if (!isset ( $get_language_choices ['uk'] ) ) {
474
- $get_language_choices['uk'] = 0;
475
- }
476
-
477
- if (!isset ( $get_language_choices ['ur'] ) ) {
478
- $get_language_choices['ur'] = 0;
479
- }
480
-
481
- if (!isset ( $get_language_choices ['vi'] ) ) {
482
- $get_language_choices['vi'] = 0;
483
- }
484
-
485
- if (!isset ( $get_language_choices ['cy'] ) ) {
486
- $get_language_choices['cy'] = 0;
487
- }
488
-
489
- if (!isset ( $get_language_choices ['yi'] ) ) {
490
- $get_language_choices['yi'] = 0;
491
- } ?>
492
-
493
- <div class="languages" style="width:25%; float:left">
494
- <div><input type="checkbox" name="language_display_settings[af]" value="1" <?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?>/> Afrikaans</div>
495
- <div><input type="checkbox" name="language_display_settings[sq]" value="1" <?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?>/> Albanian</div>
496
- <div><input type="checkbox" name="language_display_settings[ar]" value="1" <?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?>/> Arabic</div>
497
- <div><input type="checkbox" name="language_display_settings[hy]" value="1" <?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?>/> Armenian</div>
498
- <div><input type="checkbox" name="language_display_settings[az]" value="1" <?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?>/> Azerbaijani</div>
499
- <div><input type="checkbox" name="language_display_settings[eu]" value="1" <?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?>/> Basque</div>
500
- <div><input type="checkbox" name="language_display_settings[be]" value="1" <?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?>/> Belarusian</div>
501
- <div><input type="checkbox" name="language_display_settings[bn]" value="1" <?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?>/> Bengali</div>
502
- <div><input type="checkbox" name="language_display_settings[bs]" value="1" <?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?>/> Bosnian</div>
503
- <div><input type="checkbox" name="language_display_settings[bg]" value="1" <?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?>/> Bulgarian</div>
504
- <div><input type="checkbox" name="language_display_settings[ca]" value="1" <?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?>/> Catalan</div>
505
- <div><input type="checkbox" name="language_display_settings[ceb]" value="1" <?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?>/> Cebuano</div>
506
- <div><input type="checkbox" name="language_display_settings[zh-CN]" value="1" <?php if ( 1 == $get_language_choices['zh-CN'] ) echo 'checked="checked"'; ?>/> Chinese</div>
507
- <div><input type="checkbox" name="language_display_settings[zh-TW]" value="1" <?php if ( 1 == $get_language_choices['zh-TW'] ) echo 'checked="checked"'; ?>/> Chinese (Han)</div>
508
- <div><input type="checkbox" name="language_display_settings[hr]" value="1" <?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?>/> Croatian</div>
509
- <div><input type="checkbox" name="language_display_settings[cs]" value="1" <?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?>/> Czech</div>
510
- <div><input type="checkbox" name="language_display_settings[da]" value="1" <?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?>/> Danish</div>
511
- <div><input type="checkbox" name="language_display_settings[nl]" value="1" <?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?>/> Dutch</div>
512
- <div><input type="checkbox" name="language_display_settings[en]" value="1" <?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?>/> English</div>
513
- </div>
514
-
515
- <div class="languages" style="width:25%; float:left">
516
- <div><input type="checkbox" name="language_display_settings[eo]" value="1" <?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?>/> Esperanto</div>
517
- <div><input type="checkbox" name="language_display_settings[et]" value="1" <?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?>/> Estonian</div>
518
- <div><input type="checkbox" name="language_display_settings[tl]" value="1" <?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?>/> Filipino</div>
519
- <div><input type="checkbox" name="language_display_settings[fi]" value="1" <?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?>/> Finnish</div>
520
- <div><input type="checkbox" name="language_display_settings[fr]" value="1" <?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?>/> French</div>
521
- <div><input type="checkbox" name="language_display_settings[gl]" value="1" <?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?>/> Galician</div>
522
- <div><input type="checkbox" name="language_display_settings[ka]" value="1" <?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?>/> Georgian</div>
523
- <div><input type="checkbox" name="language_display_settings[de]" value="1" <?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?>/> German</div>
524
- <div><input type="checkbox" name="language_display_settings[el]" value="1" <?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?>/> Greek</div>
525
- <div><input type="checkbox" name="language_display_settings[gu]" value="1" <?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?>/> Gujarati</div>
526
- <div><input type="checkbox" name="language_display_settings[ht]" value="1" <?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?>/> Haitian</div>
527
- <div><input type="checkbox" name="language_display_settings[iw]" value="1" <?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?>/> Hebrew</div>
528
- <div><input type="checkbox" name="language_display_settings[hi]" value="1" <?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?>/> Hindi</div>
529
- <div><input type="checkbox" name="language_display_settings[hmn]" value="1" <?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?>/> Hmong</div>
530
- <div><input type="checkbox" name="language_display_settings[hu]" value="1" <?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?>/> Hungarian</div>
531
- <div><input type="checkbox" name="language_display_settings[is]" value="1" <?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?>/> Icelandic</div>
532
- <div><input type="checkbox" name="language_display_settings[id]" value="1" <?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?>/> Indonesian</div>
533
- <div><input type="checkbox" name="language_display_settings[ga]" value="1" <?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?>/> Irish</div>
534
- <div><input type="checkbox" name="language_display_settings[it]" value="1" <?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?>/> Italian</div>
535
- </div>
536
-
537
- <div class="languages" style="width:25%; float:left">
538
- <div><input type="checkbox" name="language_display_settings[ja]" value="1" <?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?>/> Japanese</div>
539
- <div><input type="checkbox" name="language_display_settings[jw]" value="1" <?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?>/> Javanese</div>
540
- <div><input type="checkbox" name="language_display_settings[kn]" value="1" <?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?>/> Kannada</div>
541
- <div><input type="checkbox" name="language_display_settings[km]" value="1" <?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?>/> Khmer</div>
542
- <div><input type="checkbox" name="language_display_settings[ko]" value="1" <?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?>/> Korean</div>
543
- <div><input type="checkbox" name="language_display_settings[lo]" value="1" <?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?>/> Lao</div>
544
- <div><input type="checkbox" name="language_display_settings[la]" value="1" <?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?>/> Latin</div>
545
- <div><input type="checkbox" name="language_display_settings[lv]" value="1" <?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?>/> Latvian</div>
546
- <div><input type="checkbox" name="language_display_settings[lt]" value="1" <?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?>/> Lithuanian</div>
547
- <div><input type="checkbox" name="language_display_settings[mk]" value="1" <?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?>/> Macedonian</div>
548
- <div><input type="checkbox" name="language_display_settings[ms]" value="1" <?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?>/> Malay</div>
549
- <div><input type="checkbox" name="language_display_settings[mt]" value="1" <?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?>/> Maltese</div>
550
- <div><input type="checkbox" name="language_display_settings[mr]" value="1" <?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?>/> Marathi</div>
551
- <div><input type="checkbox" name="language_display_settings[no]" value="1" <?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?>/> Norwegian</div>
552
- <div><input type="checkbox" name="language_display_settings[fa]" value="1" <?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?>/> Persian</div>
553
- <div><input type="checkbox" name="language_display_settings[pl]" value="1" <?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?>/> Polish</div>
554
- <div><input type="checkbox" name="language_display_settings[pt]" value="1" <?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?>/> Portuguese</div>
555
- <div><input type="checkbox" name="language_display_settings[ro]" value="1" <?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?>/> Romanian</div>
556
- <div><input type="checkbox" name="language_display_settings[ru]" value="1" <?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?>/> Russian</div>
557
- </div>
558
-
559
- <div class="languages" style="width:25%; float:left">
560
- <div><input type="checkbox" name="language_display_settings[sr]" value="1" <?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?>/> Serbian</div>
561
- <div><input type="checkbox" name="language_display_settings[sk]" value="1" <?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?>/> Slovak</div>
562
- <div><input type="checkbox" name="language_display_settings[sl]" value="1" <?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?>/> Slovenian</div>
563
- <div><input type="checkbox" name="language_display_settings[es]" value="1" <?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?>/> Spanish</div>
564
- <div><input type="checkbox" name="language_display_settings[sw]" value="1" <?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?>/> Swahili</div>
565
- <div><input type="checkbox" name="language_display_settings[sv]" value="1" <?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?>/> Swedish</div>
566
- <div><input type="checkbox" name="language_display_settings[ta]" value="1" <?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?>/> Tamil</div>
567
- <div><input type="checkbox" name="language_display_settings[te]" value="1" <?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?>/> Telugu</div>
568
- <div><input type="checkbox" name="language_display_settings[th]" value="1" <?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?>/> Thai</div>
569
- <div><input type="checkbox" name="language_display_settings[tr]" value="1" <?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?>/> Turkish</div>
570
- <div><input type="checkbox" name="language_display_settings[uk]" value="1" <?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?>/> Ukranian</div>
571
- <div><input type="checkbox" name="language_display_settings[ur]" value="1" <?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?>/> Urdu</div>
572
- <div><input type="checkbox" name="language_display_settings[vi]" value="1" <?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?>/> Vietnamese</div>
573
- <div><input type="checkbox" name="language_display_settings[cy]" value="1" <?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?>/> Welsh</div>
574
- <div><input type="checkbox" name="language_display_settings[yi]" value="1" <?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?>/> Yiddish</div>
575
- </div>
576
-
577
- <div style="clear:both"></div>
578
- <?php }
579
-
580
- function googlelanguagetranslator_flags_cb() {
581
-
582
- $option_name = 'googlelanguagetranslator_flags' ;
583
- $new_value = 'show_flags';
584
-
585
- if ( get_option( $option_name ) === false ) {
586
-
587
- // The option does not exist, so we update it.
588
- update_option( $option_name, $new_value );
589
- }
590
-
591
- $options = get_option (''.$option_name.''); ?>
592
-
593
- <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="show_flags" <?php if($options=='show_flags'){echo "checked";}?>/> Yes, show flag images<br/>
594
- <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="hide_flags" <?php if($options=='hide_flags'){echo "checked";}?>/> No, hide flag images
595
- <?php }
596
-
597
-
598
- function flag_display_settings_cb() {
599
- $defaults = array(
600
- 'flag-en' => 1
601
- );
602
-
603
- $option_name = 'flag_display_settings' ;
604
- $new_value = $defaults;
605
-
606
- if ( get_option( $option_name ) === false ) {
607
-
608
- // The option does not exist, so we update it.
609
- update_option( $option_name, $new_value );
610
- }
611
-
612
- $get_flag_choices = get_option (''.$option_name.'');
613
-
614
- if (!isset ( $get_flag_choices ['flag-af'] ) ) {
615
- $get_flag_choices['flag-af'] = 0;
616
- }
617
-
618
- if (!isset ( $get_flag_choices ['flag-sq'] ) ) {
619
- $get_flag_choices['flag-sq'] = 0;
620
- }
621
-
622
- if (!isset ( $get_flag_choices ['flag-ar'] ) ) {
623
- $get_flag_choices['flag-ar'] = 0;
624
- }
625
-
626
- if (!isset ( $get_flag_choices ['flag-hy'] ) ) {
627
- $get_flag_choices['flag-hy'] = 0;
628
- }
629
-
630
- if (!isset ( $get_flag_choices ['flag-az'] ) ) {
631
- $get_flag_choices['flag-az'] = 0;
632
- }
633
-
634
- if (!isset ( $get_flag_choices ['flag-eu'] ) ) {
635
- $get_flag_choices['flag-eu'] = 0;
636
- }
637
-
638
- if (!isset ( $get_flag_choices ['flag-be'] ) ) {
639
- $get_flag_choices['flag-be'] = 0;
640
- }
641
-
642
- if (!isset ( $get_flag_choices ['flag-bn'] ) ) {
643
- $get_flag_choices['flag-bn'] = 0;
644
- }
645
-
646
- if (!isset ( $get_flag_choices ['flag-bs'] ) ) {
647
- $get_flag_choices['flag-bs'] = 0;
648
- }
649
-
650
- if (!isset ( $get_flag_choices ['flag-bg'] ) ) {
651
- $get_flag_choices['flag-bg'] = 0;
652
- }
653
-
654
- if (!isset ( $get_flag_choices ['flag-ca'] ) ) {
655
- $get_flag_choices['flag-ca'] = 0;
656
- }
657
-
658
- if (!isset ( $get_flag_choices ['flag-ceb'] ) ) {
659
- $get_flag_choices['flag-ceb'] = 0;
660
- }
661
-
662
- if (!isset ( $get_flag_choices ['flag-zh-CN'] ) ) {
663
- $get_flag_choices['flag-zh-CN'] = 0;
664
- }
665
-
666
- if (!isset ( $get_flag_choices ['flag-zh-TW'] ) ) {
667
- $get_flag_choices['flag-zh-TW'] = 0;
668
- }
669
-
670
- if (!isset ( $get_flag_choices ['flag-hr'] ) ) {
671
- $get_flag_choices['flag-hr'] = 0;
672
- }
673
-
674
- if (!isset ( $get_flag_choices ['flag-cs'] ) ) {
675
- $get_flag_choices['flag-cs'] = 0;
676
- }
677
-
678
- if (!isset ( $get_flag_choices ['flag-da'] ) ) {
679
- $get_flag_choices['flag-da'] = 0;
680
- }
681
-
682
- if (!isset ( $get_flag_choices ['flag-nl'] ) ) {
683
- $get_flag_choices['flag-nl'] = 0;
684
- }
685
-
686
- if (!isset ( $get_flag_choices ['flag-en'] ) ) {
687
- $get_flag_choices['flag-en'] = 1;
688
- }
689
-
690
- if (!isset ( $get_flag_choices ['flag-eo'] ) ) {
691
- $get_flag_choices['flag-eo'] = 0;
692
- }
693
-
694
- if (!isset ( $get_flag_choices ['flag-et'] ) ) {
695
- $get_flag_choices['flag-et'] = 0;
696
- }
697
-
698
- if (!isset ( $get_flag_choices ['flag-tl'] ) ) {
699
- $get_flag_choices['flag-tl'] = 0;
700
- }
701
-
702
- if (!isset ( $get_flag_choices ['flag-fi'] ) ) {
703
- $get_flag_choices['flag-fi'] = 0;
704
- }
705
-
706
- if (!isset ( $get_flag_choices ['flag-fr'] ) ) {
707
- $get_flag_choices['flag-fr'] = 0;
708
- }
709
-
710
- if (!isset ( $get_flag_choices ['flag-gl'] ) ) {
711
- $get_flag_choices['flag-gl'] = 0;
712
- }
713
-
714
- if (!isset ( $get_flag_choices ['flag-ka'] ) ) {
715
- $get_flag_choices['flag-ka'] = 0;
716
- }
717
-
718
- if (!isset ( $get_flag_choices ['flag-de'] ) ) {
719
- $get_flag_choices['flag-de'] = 0;
720
- }
721
-
722
- if (!isset ( $get_flag_choices ['flag-el'] ) ) {
723
- $get_flag_choices['flag-el'] = 0;
724
- }
725
-
726
- if (!isset ( $get_flag_choices ['flag-gu'] ) ) {
727
- $get_flag_choices['flag-gu'] = 0;
728
- }
729
-
730
- if (!isset ( $get_flag_choices ['flag-ht'] ) ) {
731
- $get_flag_choices['flag-ht'] = 0;
732
- }
733
-
734
- if (!isset ( $get_flag_choices ['flag-iw'] ) ) {
735
- $get_flag_choices['flag-iw'] = 0;
736
- }
737
-
738
- if (!isset ( $get_flag_choices ['flag-hi'] ) ) {
739
- $get_flag_choices['flag-hi'] = 0;
740
- }
741
-
742
- if (!isset ( $get_flag_choices ['flag-hmn'] ) ) {
743
- $get_flag_choices['flag-hmn'] = 0;
744
- }
745
-
746
- if (!isset ( $get_flag_choices ['flag-hu'] ) ) {
747
- $get_flag_choices['flag-hu'] = 0;
748
- }
749
-
750
- if (!isset ( $get_flag_choices ['flag-is'] ) ) {
751
- $get_flag_choices['flag-is'] = 0;
752
- }
753
-
754
- if (!isset ( $get_flag_choices ['flag-id'] ) ) {
755
- $get_flag_choices['flag-id'] = 0;
756
- }
757
-
758
- if (!isset ( $get_flag_choices ['flag-ga'] ) ) {
759
- $get_flag_choices['flag-ga'] = 0;
760
- }
761
-
762
- if (!isset ( $get_flag_choices ['flag-it'] ) ) {
763
- $get_flag_choices['flag-it'] = 0;
764
- }
765
-
766
- if (!isset ( $get_flag_choices ['flag-ja'] ) ) {
767
- $get_flag_choices['flag-ja'] = 0;
768
- }
769
-
770
- if (!isset ( $get_flag_choices ['flag-jw'] ) ) {
771
- $get_flag_choices['flag-jw'] = 0;
772
- }
773
-
774
- if (!isset ( $get_flag_choices ['flag-kn'] ) ) {
775
- $get_flag_choices['flag-kn'] = 0;
776
- }
777
-
778
- if (!isset ( $get_flag_choices ['flag-km'] ) ) {
779
- $get_flag_choices['flag-km'] = 0;
780
- }
781
-
782
- if (!isset ( $get_flag_choices ['flag-ko'] ) ) {
783
- $get_flag_choices['flag-ko'] = 0;
784
- }
785
-
786
- if (!isset ( $get_flag_choices ['flag-lo'] ) ) {
787
- $get_flag_choices['flag-lo'] = 0;
788
- }
789
-
790
- if (!isset ( $get_flag_choices ['flag-la'] ) ) {
791
- $get_flag_choices['flag-la'] = 0;
792
- }
793
-
794
- if (!isset ( $get_flag_choices ['flag-lv'] ) ) {
795
- $get_flag_choices['flag-lv'] = 0;
796
- }
797
-
798
- if (!isset ( $get_flag_choices ['flag-lt'] ) ) {
799
- $get_flag_choices['flag-lt'] = 0;
800
- }
801
-
802
- if (!isset ( $get_flag_choices ['flag-mk'] ) ) {
803
- $get_flag_choices['flag-mk'] = 0;
804
- }
805
-
806
- if (!isset ( $get_flag_choices ['flag-ms'] ) ) {
807
- $get_flag_choices['flag-ms'] = 0;
808
- }
809
-
810
- if (!isset ( $get_flag_choices ['flag-mt'] ) ) {
811
- $get_flag_choices['flag-mt'] = 0;
812
- }
813
-
814
- if (!isset ( $get_flag_choices ['flag-mr'] ) ) {
815
- $get_flag_choices['flag-mr'] = 0;
816
- }
817
-
818
- if (!isset ( $get_flag_choices ['flag-no'] ) ) {
819
- $get_flag_choices['flag-no'] = 0;
820
- }
821
-
822
- if (!isset ( $get_flag_choices ['flag-fa'] ) ) {
823
- $get_flag_choices['flag-fa'] = 0;
824
- }
825
-
826
- if (!isset ( $get_flag_choices ['flag-pl'] ) ) {
827
- $get_flag_choices['flag-pl'] = 0;
828
- }
829
-
830
- if (!isset ( $get_flag_choices ['flag-pt'] ) ) {
831
- $get_flag_choices['flag-pt'] = 0;
832
- }
833
-
834
- if (!isset ( $get_flag_choices ['flag-ro'] ) ) {
835
- $get_flag_choices['flag-ro'] = 0;
836
- }
837
-
838
- if (!isset ( $get_flag_choices ['flag-ru'] ) ) {
839
- $get_flag_choices['flag-ru'] = 0;
840
- }
841
-
842
- if (!isset ( $get_flag_choices ['flag-sr'] ) ) {
843
- $get_flag_choices['flag-sr'] = 0;
844
- }
845
-
846
- if (!isset ( $get_flag_choices ['flag-sk'] ) ) {
847
- $get_flag_choices['flag-sk'] = 0;
848
- }
849
-
850
- if (!isset ( $get_flag_choices ['flag-sl'] ) ) {
851
- $get_flag_choices['flag-sl'] = 0;
852
- }
853
-
854
- if (!isset ( $get_flag_choices ['flag-es'] ) ) {
855
- $get_flag_choices['flag-es'] = 0;
856
- }
857
-
858
- if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
859
- $get_flag_choices['flag-sw'] = 0;
860
- }
861
-
862
- if (!isset ( $get_flag_choices ['flag-sv'] ) ) {
863
- $get_flag_choices['flag-sv'] = 0;
864
- }
865
-
866
- if (!isset ( $get_flag_choices ['flag-ta'] ) ) {
867
- $get_flag_choices['flag-ta'] = 0;
868
- }
869
-
870
- if (!isset ( $get_flag_choices ['flag-te'] ) ) {
871
- $get_flag_choices['flag-te'] = 0;
872
- }
873
-
874
- if (!isset ( $get_flag_choices ['flag-th'] ) ) {
875
- $get_flag_choices['flag-th'] = 0;
876
- }
877
-
878
- if (!isset ( $get_flag_choices ['flag-tr'] ) ) {
879
- $get_flag_choices['flag-tr'] = 0;
880
- }
881
-
882
- if (!isset ( $get_flag_choices ['flag-uk'] ) ) {
883
- $get_flag_choices['flag-uk'] = 0;
884
- }
885
-
886
- if (!isset ( $get_flag_choices ['flag-ur'] ) ) {
887
- $get_flag_choices['flag-ur'] = 0;
888
- }
889
-
890
- if (!isset ( $get_flag_choices ['flag-vi'] ) ) {
891
- $get_flag_choices['flag-vi'] = 0;
892
- }
893
-
894
- if (!isset ( $get_flag_choices ['flag-cy'] ) ) {
895
- $get_flag_choices['flag-cy'] = 0;
896
- }
897
-
898
- if (!isset ( $get_flag_choices ['flag-yi'] ) ) {
899
- $get_flag_choices['flag-yi'] = 0;
900
- }
901
-
902
- ?>
903
- <div class="flagdisplay" style="width:25%; float:left">
904
- <div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?>/> Afrikaans</div>
905
- <div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?>/> Albanian</div>
906
- <div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?>/> Arabic</div>
907
- <div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?>/> Armenian</div>
908
- <div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?>/> Azerbaijani</div>
909
- <div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?>/> Basque</div>
910
- <div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?>/> Belarusian</div>
911
- <div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?>/> Bengali</div>
912
- <div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?>/> Bosnian</div>
913
- <div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?>/> Bulgarian</div>
914
- <div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?>/> Catalan</div>
915
- <div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?>/> Cebuano</div>
916
- <div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?>/> Chinese</div>
917
- <div><input type="checkbox" name="flag_display_settings[flag-zh-TW]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-TW']); ?>/> Chinese (Han)</div>
918
- <div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?>/> Croatian</div>
919
- <div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?>/> Czech</div>
920
- <div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?>/> Danish</div>
921
- <div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?>/> Dutch</div>
922
- <div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?>/> English</div>
923
- </div>
924
-
925
- <div class="flagdisplay" style="width:25%; float:left">
926
- <div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1" <?php checked( 1,$get_flag_choices['flag-eo']); ?>/> Esperanto</div>
927
- <div><input type="checkbox" name="flag_display_settings[flag-et]" value="1" <?php checked( 1,$get_flag_choices['flag-et']); ?>/> Estonian</div>
928
- <div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1" <?php checked( 1,$get_flag_choices['flag-tl']); ?>/> Filipino</div>
929
- <div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1" <?php checked( 1,$get_flag_choices['flag-fi']); ?>/> Finnish</div>
930
- <div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1" <?php checked( 1,$get_flag_choices['flag-fr']); ?>/> French</div>
931
- <div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1" <?php checked( 1,$get_flag_choices['flag-gl']); ?>/> Galician</div>
932
- <div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1" <?php checked( 1,$get_flag_choices['flag-ka']); ?>/> Georgian</div>
933
- <div><input type="checkbox" name="flag_display_settings[flag-de]" value="1" <?php checked( 1,$get_flag_choices['flag-de']); ?>/> German</div>
934
- <div><input type="checkbox" name="flag_display_settings[flag-el]" value="1" <?php checked( 1,$get_flag_choices['flag-el']); ?>/> Greek</div>
935
- <div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1" <?php checked( 1,$get_flag_choices['flag-gu']); ?>/> Gujarati</div>
936
- <div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1" <?php checked( 1,$get_flag_choices['flag-ht']); ?>/> Haitian</div>
937
- <div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1" <?php checked( 1,$get_flag_choices['flag-iw']); ?>/> Hebrew</div>
938
- <div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1" <?php checked( 1,$get_flag_choices['flag-hi']); ?>/> Hindi</div>
939
- <div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1" <?php checked( 1,$get_flag_choices['flag-hmn']); ?>/> Hmong</div>
940
- <div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1" <?php checked( 1,$get_flag_choices['flag-hu']); ?>/> Hungarian</div>
941
- <div><input type="checkbox" name="flag_display_settings[flag-is]" value="1" <?php checked( 1,$get_flag_choices['flag-is']); ?>/> Icelandic</div>
942
- <div><input type="checkbox" name="flag_display_settings[flag-id]" value="1" <?php checked( 1,$get_flag_choices['flag-id']); ?>/> Indonesian</div>
943
- <div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1" <?php checked( 1,$get_flag_choices['flag-ga']); ?>/> Irish</div>
944
- <div><input type="checkbox" name="flag_display_settings[flag-it]" value="1" <?php checked( 1,$get_flag_choices['flag-it']); ?>/> Italian</div>
945
- </div>
946
-
947
- <div class="flagdisplay" style="width:25%; float:left">
948
- <div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1" <?php checked( 1,$get_flag_choices['flag-ja']); ?>/> Japanese</div>
949
- <div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1" <?php checked( 1,$get_flag_choices['flag-jw']); ?>/> Javanese</div>
950
- <div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1" <?php checked( 1,$get_flag_choices['flag-kn']); ?>/> Kannada</div>
951
- <div><input type="checkbox" name="flag_display_settings[flag-km]" value="1" <?php checked( 1,$get_flag_choices['flag-km']); ?>/> Khmer</div>
952
- <div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1" <?php checked( 1,$get_flag_choices['flag-ko']); ?>/> Korean</div>
953
- <div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1" <?php checked( 1,$get_flag_choices['flag-lo']); ?>/> Lao</div>
954
- <div><input type="checkbox" name="flag_display_settings[flag-la]" value="1" <?php checked( 1,$get_flag_choices['flag-la']); ?>/> Latin</div>
955
- <div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1" <?php checked( 1,$get_flag_choices['flag-lv']); ?>/> Latvian</div>
956
- <div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1" <?php checked( 1,$get_flag_choices['flag-lt']); ?>/> Lithuanian</div>
957
- <div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1" <?php checked( 1,$get_flag_choices['flag-mk']); ?>/> Macedonian</div>
958
- <div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1" <?php checked( 1,$get_flag_choices['flag-ms']); ?>/> Malay</div>
959
- <div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1" <?php checked( 1,$get_flag_choices['flag-mt']); ?>/> Maltese</div>
960
- <div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1" <?php checked( 1,$get_flag_choices['flag-mr']); ?>/> Marathi</div>
961
- <div><input type="checkbox" name="flag_display_settings[flag-no]" value="1" <?php checked( 1,$get_flag_choices['flag-no']); ?>/> Norwegian</div>
962
- <div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1" <?php checked( 1,$get_flag_choices['flag-fa']); ?>/> Persian</div>
963
- <div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1" <?php checked( 1,$get_flag_choices['flag-pl']); ?>/> Polish</div>
964
- <div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1" <?php checked( 1,$get_flag_choices['flag-pt']); ?>/> Portuguese</div>
965
- <div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1" <?php checked( 1,$get_flag_choices['flag-ro']); ?>/> Romanian</div>
966
- <div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1" <?php checked( 1,$get_flag_choices['flag-ru']); ?>/> Russian</div>
967
- </div>
968
-
969
- <div class="flagdisplay" style="width:25%; float:left">
970
- <div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1" <?php checked( 1,$get_flag_choices['flag-sr']); ?>/> Serbian</div>
971
- <div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1" <?php checked( 1,$get_flag_choices['flag-sk']); ?>/> Slovak</div>
972
- <div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1" <?php checked( 1,$get_flag_choices['flag-sl']); ?>/> Slovenian</div>
973
- <div><input type="checkbox" name="flag_display_settings[flag-es]" value="1" <?php checked( 1,$get_flag_choices['flag-es']); ?>/> Spanish</div>
974
- <div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1" <?php checked( 1,$get_flag_choices['flag-sw']); ?>/> Swahili</div>
975
- <div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1" <?php checked( 1,$get_flag_choices['flag-sv']); ?>/> Swedish</div>
976
- <div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1" <?php checked( 1,$get_flag_choices['flag-ta']); ?>/> Tamil</div>
977
- <div><input type="checkbox" name="flag_display_settings[flag-te]" value="1" <?php checked( 1,$get_flag_choices['flag-te']); ?>/> Telugu</div>
978
- <div><input type="checkbox" name="flag_display_settings[flag-th]" value="1" <?php checked( 1,$get_flag_choices['flag-th']); ?>/> Thai</div>
979
- <div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1" <?php checked( 1,$get_flag_choices['flag-tr']); ?>/> Turkish</div>
980
- <div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1" <?php checked( 1,$get_flag_choices['flag-uk']); ?>/> Ukranian</div>
981
- <div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1" <?php checked( 1,$get_flag_choices['flag-ur']); ?>/> Urdu</div>
982
- <div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1" <?php checked( 1,$get_flag_choices['flag-vi']); ?>/> Vietnamese</div>
983
- <div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1" <?php checked( 1,$get_flag_choices['flag-cy']); ?>/> Welsh</div>
984
- <div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1" <?php checked( 1,$get_flag_choices['flag-yi']); ?>/> Yiddish</div>
985
- </div>
986
- <div style="clear:both"></div>
987
- <?php }
988
-
989
- function googlelanguagetranslator_floating_widget_cb() {
990
-
991
- $option_name = 'googlelanguagetranslator_floating_widget' ;
992
- $new_value = 'yes';
993
-
994
- if ( get_option( $option_name ) === false ) {
995
-
996
- // The option does not exist, so we update it.
997
- update_option( $option_name, $new_value );
998
- }
999
-
1000
- $options = get_option (''.$option_name.''); ?>
1001
-
1002
- <select name="googlelanguagetranslator_floating_widget" id="googlelanguagetranslator_floating_widget" style="width:170px">
1003
- <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show widget</option>
1004
- <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide widget</option>
1005
- </select>
1006
- <?php }
1007
-
1008
- function googlelanguagetranslator_translatebox_cb() {
1009
-
1010
- $option_name = 'googlelanguagetranslator_translatebox' ;
1011
- $new_value = 'yes';
1012
-
1013
- if ( get_option( $option_name ) === false ) {
1014
-
1015
- // The option does not exist, so we update it.
1016
- update_option( $option_name, $new_value );
1017
- }
1018
-
1019
- $options = get_option (''.$option_name.''); ?>
1020
-
1021
- <select name="googlelanguagetranslator_translatebox" id="googlelanguagetranslator_translatebox" style="width:190px">
1022
- <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show language box</option>
1023
- <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide language box</option>
1024
- </select>
1025
- <?php }
1026
-
1027
- function googlelanguagetranslator_display_cb() {
1028
-
1029
- $option_name = 'googlelanguagetranslator_display' ;
1030
- $new_value = 'Vertical';
1031
-
1032
- if ( get_option( $option_name ) === false ) {
1033
-
1034
- // The option does not exist, so we update it.
1035
- update_option( $option_name, $new_value );
1036
- }
1037
-
1038
- $options = get_option (''.$option_name.''); ?>
1039
-
1040
- <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:170px;">
1041
- <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
1042
- <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
1043
- </select>
1044
- <?php }
1045
-
1046
- function googlelanguagetranslator_toolbar_cb() {
1047
-
1048
- $option_name = 'googlelanguagetranslator_toolbar' ;
1049
- $new_value = 'Yes';
1050
-
1051
- if ( get_option( $option_name ) === false ) {
1052
-
1053
- // The option does not exist, so we update it.
1054
- update_option( $option_name, $new_value );
1055
- }
1056
-
1057
- $options = get_option (''.$option_name.''); ?>
1058
-
1059
- <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:170px;">
1060
- <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
1061
- <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
1062
- </select>
1063
- <?php }
1064
-
1065
- function googlelanguagetranslator_showbranding_cb() {
1066
-
1067
- $option_name = 'googlelanguagetranslator_showbranding' ;
1068
- $new_value = 'Yes';
1069
-
1070
- if ( get_option( $option_name ) === false ) {
1071
-
1072
- // The option does not exist, so we update it.
1073
- update_option( $option_name, $new_value );
1074
- }
1075
-
1076
- $options = get_option (''.$option_name.''); ?>
1077
-
1078
- <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:170px;">
1079
- <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
1080
- <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
1081
- </select>
1082
- <?php }
1083
-
1084
- function googlelanguagetranslator_flags_alignment_cb() {
1085
-
1086
- $option_name = 'googlelanguagetranslator_flags_alignment' ;
1087
- $new_value = 'flags_left';
1088
-
1089
- if ( get_option( $option_name ) === false ) {
1090
-
1091
- // The option does not exist, so we update it.
1092
- update_option( $option_name, 'flags_left' );
1093
- }
1094
-
1095
- $options = get_option (''.$option_name.''); ?>
1096
-
1097
- <input type="radio" name="googlelanguagetranslator_flags_alignment" id="flags_left" value="flags_left" <?php if($options=='flags_left'){echo "checked";}?>/> Align Left<br/>
1098
- <input type="radio" name="googlelanguagetranslator_flags_alignment" id="flags_right" value="flags_right" <?php if($options=='flags_right'){echo "checked";}?>/> Align Right
1099
- <?php }
1100
-
1101
-
1102
- function googlelanguagetranslator_analytics_cb() {
1103
-
1104
- $option_name = 'googlelanguagetranslator_analytics' ;
1105
- $new_value = 0;
1106
-
1107
- if ( get_option( $option_name ) === false ) {
1108
-
1109
- // The option does not exist, so we update it.
1110
- update_option( $option_name, $new_value );
1111
- }
1112
-
1113
- $options = get_option (''.$option_name.'');
1114
-
1115
- $html = '<input type="checkbox" name="googlelanguagetranslator_analytics" id="googlelanguagetranslator_analytics" value="1" '.checked(1,$options,false).'/> &nbsp; Activate Google Analytics tracking?';
1116
- echo $html;
1117
- }
1118
-
1119
- function googlelanguagetranslator_analytics_id_cb() {
1120
-
1121
- $option_name = 'googlelanguagetranslator_analytics_id' ;
1122
- $new_value = '';
1123
-
1124
- if ( get_option( $option_name ) === false ) {
1125
-
1126
- // The option does not exist, so we update it.
1127
- update_option( $option_name, $new_value );
1128
- }
1129
-
1130
- $options = get_option (''.$option_name.'');
1131
-
1132
- $html = '<input type="text" name="googlelanguagetranslator_analytics_id" id="googlelanguagetranslator_analytics_id" value="'.$options.'" />';
1133
- echo $html;
1134
- }
1135
-
1136
- function googlelanguagetranslator_css_cb() {
1137
-
1138
- $option_name = 'googlelanguagetranslator_css' ;
1139
- $new_value = '';
1140
-
1141
- if ( get_option( $option_name ) === false ) {
1142
-
1143
- // The option does not exist, so we update it.
1144
- update_option( $option_name, $new_value );
1145
- }
1146
-
1147
- $options = get_option (''.$option_name.'');
1148
-
1149
- $html = '<textarea style="width:100%; height:200px" name="googlelanguagetranslator_css" id="googlelanguagetranslator_css">'.$options.'</textarea>';
1150
- echo $html;
1151
- }
1152
-
1153
- function googlelanguagetranslator_manage_translations_cb() {
1154
- $option_name = 'googlelanguagetranslator_manage_translations' ;
1155
- $new_value = 0;
1156
-
1157
- if ( get_option( $option_name ) === false ) {
1158
-
1159
- // The option does not exist, so we update it.
1160
- update_option( $option_name, $new_value );
1161
- }
1162
-
1163
- $options = get_option (''.$option_name.'');
1164
-
1165
- $html = '<input type="checkbox" name="googlelanguagetranslator_manage_translations" id="googlelanguagetranslator_manage_translations" value="1" '.checked(1,$options,false).'/> &nbsp; Turn on translation management?';
1166
- echo $html;
1167
- }
1168
-
1169
- function googlelanguagetranslator_multilanguage_cb() {
1170
-
1171
- $option_name = 'googlelanguagetranslator_multilanguage' ;
1172
- $new_value = 0;
1173
-
1174
- if ( get_option( $option_name ) === false ) {
1175
-
1176
- // The option does not exist, so we update it.
1177
- update_option( $option_name, $new_value );
1178
- }
1179
-
1180
- $options = get_option (''.$option_name.'');
1181
-
1182
- $html = '<input type="checkbox" name="googlelanguagetranslator_multilanguage" id="googlelanguagetranslator_multilanguage" value="1" '.checked(1,$options,false).'/> &nbsp; Turn on multilanguage mode?';
1183
- echo $html;
1184
- }
1185
-
1186
-
1187
-
1188
-
1189
- } //End initialize_settings()
1190
- add_action('admin_init', 'initialize_settings');
1191
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glt_vertical.php DELETED
@@ -1,631 +0,0 @@
1
- <?php
2
-
3
- function googlelanguagetranslator_vertical(){
4
- $is_active = get_option ( 'googlelanguagetranslator_active' );
5
- $get_flag_choices = get_option ('flag_display_settings');
6
- $language_choices = googlelanguagetranslator_included_languages();
7
- $floating_widget = get_option ('googlelanguagetranslator_floating_widget');
8
-
9
-
10
-
11
- if( $is_active == 1){
12
- if ($floating_widget=='yes') {
13
- $str='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</strong></div>';
14
- $str.='<div id="glt-toolbar">';
15
- if ( isset ( $get_flag_choices['flag-af'] ) ) {
16
- $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="24" width="24" alt="Afrikaans"/></a>';
17
- }
18
-
19
-
20
- if ( isset ( $get_flag_choices['flag-sq'] ) ) {
21
- $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="24" width="24" alt="Albanian"/></a>';
22
- }
23
-
24
- if ( isset ( $get_flag_choices['flag-ar'] ) ) {
25
- $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="24" width="24" alt="Arabic"/></a>';
26
- }
27
-
28
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
29
- $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="24" width="24" alt="Armenian"/></a>';
30
- }
31
-
32
- if ( isset ( $get_flag_choices['flag-az'] ) ) {
33
- $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="24" width="24" alt="Azerbaijani"/></a>';
34
- }
35
-
36
- if ( isset ( $get_flag_choices['flag-eu'] ) ) {
37
- $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="24" width="24" alt="Basque"/></a>';
38
- }
39
-
40
- if ( isset ( $get_flag_choices['flag-be'] ) ) {
41
- $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="24" width="24" alt="Belarus"/></a>';
42
- }
43
-
44
- if ( isset ( $get_flag_choices['flag-bn'] ) ) {
45
- $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="24" width="24" alt="Bengali"/></a>';
46
- }
47
-
48
- if ( isset ( $get_flag_choices['flag-bs'] ) ) {
49
- $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="24" width="24" alt="Bosnian"/></a>';
50
- }
51
-
52
- if ( isset ( $get_flag_choices['flag-bg'] ) ) {
53
- $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="24" width="24" alt="Bulgarian"/></a>';
54
- }
55
-
56
- if ( isset ( $get_flag_choices['flag-ca'] ) ) {
57
- $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="24" width="24" alt="Catalan"/></a>';
58
- }
59
-
60
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
61
- $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Afrikaans"/></a>';
62
- }
63
-
64
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
65
- $str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Simplified)"/></a>';
66
- }
67
-
68
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
69
- $str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Traditional)"/></a>';
70
- }
71
-
72
- if ( isset ( $get_flag_choices['flag-cs'] ) ) {
73
- $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="24" width="24" alt="Czech"/></a>';
74
- }
75
-
76
- if ( isset ( $get_flag_choices['flag-hr'] ) ) {
77
- $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="24" width="24" alt="Croatian"/></a>';
78
- }
79
-
80
- if ( isset ( $get_flag_choices['flag-da'] ) ) {
81
- $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="24" width="24" alt="Danish"/></a>';
82
- }
83
-
84
- if ( isset ( $get_flag_choices['flag-nl'] ) ) {
85
- $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="24" width="24" alt="Dutch"/></a>';
86
- }
87
-
88
- if ( isset ( $get_flag_choices['flag-en'] ) ) {
89
- $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="24" width="24" alt="English"/></a>';
90
- }
91
-
92
- if ( isset ( $get_flag_choices['flag-eo'] ) ) {
93
- $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="24" width="24" alt="Esperanto"/></a>';
94
- }
95
-
96
- if ( isset ( $get_flag_choices['flag-et'] ) ) {
97
- $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="24" width="24" alt="Estonian"/></a>';
98
- }
99
-
100
- if ( isset ( $get_flag_choices['flag-tl'] ) ) {
101
- $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Filipino"/></a>';
102
- }
103
-
104
- if ( isset ( $get_flag_choices['flag-fi'] ) ) {
105
- $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="24" width="24" alt="Finnish"/></a>';
106
- }
107
-
108
- if ( isset ( $get_flag_choices['flag-fr'] ) ) {
109
- $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="24" width="24" alt="French"/></a>';
110
- }
111
-
112
- if ( isset ( $get_flag_choices['flag-gl'] ) ) {
113
- $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="24" width="24" alt="Galician"/></a>';
114
- }
115
-
116
- if ( isset ( $get_flag_choices['flag-ka'] ) ) {
117
- $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="24" width="24" alt="Georgian"/></a>';
118
- }
119
-
120
- if ( isset ( $get_flag_choices['flag-de'] ) ) {
121
- $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="24" width="24" alt="German"/></a>';
122
- }
123
-
124
- if ( isset ( $get_flag_choices['flag-el'] ) ) {
125
- $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="24" width="24" alt="Greek"/></a>';
126
- }
127
-
128
- if ( isset ( $get_flag_choices['flag-gu'] ) ) {
129
- $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Gujarati"/></a>';
130
- }
131
-
132
- if ( isset ( $get_flag_choices['flag-ht'] ) ) {
133
- $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="24" width="24" alt="Haitian"/></a>';
134
- }
135
-
136
- if ( isset ( $get_flag_choices['flag-iw'] ) ) {
137
- $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="24" width="24" alt="Hebrew"/></a>';
138
- }
139
-
140
- if ( isset ( $get_flag_choices['flag-hi'] ) ) {
141
- $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Hindi"/></a>';
142
- }
143
-
144
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
145
- $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="24" width="24" alt="Hmong"/></a>';
146
- }
147
-
148
- if ( isset ( $get_flag_choices['flag-hu'] ) ) {
149
- $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="24" width="24" alt="Hungarian"/></a>';
150
- }
151
-
152
- if ( isset ( $get_flag_choices['flag-is'] ) ) {
153
- $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="24" width="24" alt="Icelandic"/></a>';
154
- }
155
-
156
- if ( isset ( $get_flag_choices['flag-id'] ) ) {
157
- $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Indonesian"/></a>';
158
- }
159
-
160
- if ( isset ( $get_flag_choices['flag-ga'] ) ) {
161
- $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="24" width="24" alt="Irish"/></a>';
162
- }
163
-
164
- if ( isset ( $get_flag_choices['flag-it'] ) ) {
165
- $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="24" width="24" alt="Italian"/></a>';
166
- }
167
-
168
- if ( isset ( $get_flag_choices['flag-ja'] ) ) {
169
- $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="24" width="24" alt="Japanese"/></a>';
170
- }
171
-
172
- if ( isset ( $get_flag_choices['flag-jw'] ) ) {
173
- $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Javanese"/></a>';
174
- }
175
-
176
- if ( isset ( $get_flag_choices['flag-kn'] ) ) {
177
- $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="24" width="24" alt="Kannada"/></a>';
178
- }
179
-
180
- if ( isset ( $get_flag_choices['flag-km'] ) ) {
181
- $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="24" width="24" alt="Khmer"/></a>';
182
- }
183
-
184
- if ( isset ( $get_flag_choices['flag-ko'] ) ) {
185
- $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="24" width="24" alt="Korea"/></a>';
186
- }
187
-
188
- if ( isset ( $get_flag_choices['flag-lo'] ) ) {
189
- $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="24" width="24" alt="Laos"/></a>';
190
- }
191
-
192
- if ( isset ( $get_flag_choices['flag-la'] ) ) {
193
- $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="24" width="24" alt="Latin"/></a>';
194
- }
195
-
196
- if ( isset ( $get_flag_choices['flag-lv'] ) ) {
197
- $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="24" width="24" alt="Latvian"/></a>';
198
- }
199
-
200
- if ( isset ( $get_flag_choices['flag-lt'] ) ) {
201
- $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="24" width="24" alt="Lithuanian"/></a>';
202
- }
203
-
204
- if ( isset ( $get_flag_choices['flag-mk'] ) ) {
205
- $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="24" width="24" alt="Macedonian"/></a>';
206
- }
207
-
208
- if ( isset ( $get_flag_choices['flag-ms'] ) ) {
209
- $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="24" width="24" alt="Malay"/></a>';
210
- }
211
-
212
- if ( isset ( $get_flag_choices['flag-mt'] ) ) {
213
- $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="24" width="24" alt="Malta"/></a>';
214
- }
215
-
216
- if ( isset ( $get_flag_choices['flag-mr'] ) ) {
217
- $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="24" width="24" alt="Marathi"/></a>';
218
- }
219
-
220
- if ( isset ( $get_flag_choices['flag-no'] ) ) {
221
- $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="24" width="24" alt="Norwegian"/></a>';
222
- }
223
-
224
- if ( isset ( $get_flag_choices['flag-fa'] ) ) {
225
- $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="24" width="24" alt="Persian"/></a>';
226
- }
227
-
228
- if ( isset ( $get_flag_choices['flag-pl'] ) ) {
229
- $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="24" width="24" alt="Polish"/></a>';
230
- }
231
-
232
- if ( isset ( $get_flag_choices['flag-pt'] ) ) {
233
- $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="24" width="24" alt="Portuguese"/></a>';
234
- }
235
-
236
- if ( isset ( $get_flag_choices['flag-ro'] ) ) {
237
- $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="24" width="24" alt="Romanian"/></a>';
238
- }
239
-
240
- if ( isset ( $get_flag_choices['flag-ru'] ) ) {
241
- $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="24" width="24" alt="Russian"/></a>';
242
- }
243
-
244
- if ( isset ( $get_flag_choices['flag-sr'] ) ) {
245
- $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="24" width="24" alt="Serbian"/></a>';
246
- }
247
-
248
- if ( isset ( $get_flag_choices['flag-sk'] ) ) {
249
- $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="24" width="24" alt="Slovak"/></a>';
250
- }
251
-
252
- if ( isset ( $get_flag_choices['flag-sl'] ) ) {
253
- $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="24" width="24" alt="Slovenian"/></a>';
254
- }
255
-
256
- if ( isset ( $get_flag_choices['flag-es'] ) ) {
257
- $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="24" width="24" alt="Spanish"/></a>';
258
- }
259
-
260
- if ( isset ( $get_flag_choices['flag-sw'] ) ) {
261
- $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="24" width="24" alt="Swahili"/></a>';
262
- }
263
-
264
- if ( isset ( $get_flag_choices['flag-sv'] ) ) {
265
- $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="24" width="24" alt="Swedish"/></a>';
266
- }
267
-
268
- if ( isset ( $get_flag_choices['flag-ta'] ) ) {
269
- $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="24" width="24" alt="Tamil"/></a>';
270
- }
271
-
272
- if ( isset ( $get_flag_choices['flag-te'] ) ) {
273
- $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="24" width="24" alt="Telugu"/></a>';
274
- }
275
-
276
- if ( isset ( $get_flag_choices['flag-th'] ) ) {
277
- $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="24" width="24" alt="Thai"/></a>';
278
- }
279
-
280
- if ( isset ( $get_flag_choices['flag-tr'] ) ) {
281
- $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="24" width="24" alt="Turkish"/></a>';
282
- }
283
-
284
- if ( isset ( $get_flag_choices['flag-uk'] ) ) {
285
- $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="24" width="24" alt="Ukranian"/></a>';
286
- }
287
-
288
- if ( isset ( $get_flag_choices['flag-ur'] ) ) {
289
- $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="24" width="24" alt="Urdu"/></a>';
290
- }
291
-
292
- if ( isset ( $get_flag_choices['flag-vi'] ) ) {
293
- $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="24" width="24" alt="vietnamese"/></a>';
294
- }
295
-
296
- if ( isset ( $get_flag_choices['flag-cy'] ) ) {
297
- $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="24" width="24" alt="Welsh"/></a>';
298
- }
299
-
300
- if ( isset ( $get_flag_choices['flag-yi'] ) ) {
301
- $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
302
- }
303
- $str.='</div>';
304
- }
305
-
306
-
307
- foreach ($get_flag_choices as $key) {
308
- //print_r($key);
309
-
310
- }
311
- $str.='<div id="flags">';
312
-
313
-
314
-
315
- if ($key == '1') {
316
- if ( isset ( $get_flag_choices['flag-af'] ) ) {
317
- $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Afrikaans"/></a>';
318
- }
319
-
320
-
321
- if ( isset ( $get_flag_choices['flag-sq'] ) ) {
322
- $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="18" width="18" alt="Albanian"/></a>';
323
- }
324
-
325
- if ( isset ( $get_flag_choices['flag-ar'] ) ) {
326
- $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="18" width="18" alt="Arabic"/></a>';
327
- }
328
-
329
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
330
- $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="18" width="18" alt="Armenian"/></a>';
331
- }
332
-
333
- if ( isset ( $get_flag_choices['flag-az'] ) ) {
334
- $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="18" width="18" alt="Azerbaijani"/></a>';
335
- }
336
-
337
- if ( isset ( $get_flag_choices['flag-eu'] ) ) {
338
- $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="18" width="18" alt="Basque"/></a>';
339
- }
340
-
341
- if ( isset ( $get_flag_choices['flag-be'] ) ) {
342
- $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="18" width="18" alt="Belarus"/></a>';
343
- }
344
-
345
- if ( isset ( $get_flag_choices['flag-bn'] ) ) {
346
- $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="18" width="18" alt="Bengali"/></a>';
347
- }
348
-
349
- if ( isset ( $get_flag_choices['flag-bs'] ) ) {
350
- $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="18" width="18" alt="Bosnian"/></a>';
351
- }
352
-
353
- if ( isset ( $get_flag_choices['flag-bg'] ) ) {
354
- $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="18" width="18" alt="Bulgarian"/></a>';
355
- }
356
-
357
- if ( isset ( $get_flag_choices['flag-ca'] ) ) {
358
- $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="18" width="18" alt="Catalan"/></a>';
359
- }
360
-
361
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
362
- $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Afrikaans"/></a>';
363
- }
364
-
365
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
366
- $str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Simplified)"/></a>';
367
- }
368
-
369
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
370
- $str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Traditional)"/></a>';
371
- }
372
-
373
- if ( isset ( $get_flag_choices['flag-cs'] ) ) {
374
- $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="18" width="18" alt="Czech"/></a>';
375
- }
376
-
377
- if ( isset ( $get_flag_choices['flag-hr'] ) ) {
378
- $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="18" width="18" alt="Croatian"/></a>';
379
- }
380
-
381
- if ( isset ( $get_flag_choices['flag-da'] ) ) {
382
- $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="18" width="18" alt="Danish"/></a>';
383
- }
384
-
385
- if ( isset ( $get_flag_choices['flag-nl'] ) ) {
386
- $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="18" width="18" alt="Dutch"/></a>';
387
- }
388
-
389
- if ( isset ( $get_flag_choices['flag-en'] ) ) {
390
- $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="18" width="18" alt="English"/></a>';
391
- }
392
-
393
- if ( isset ( $get_flag_choices['flag-eo'] ) ) {
394
- $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="18" width="18" alt="Esperanto"/></a>';
395
- }
396
-
397
- if ( isset ( $get_flag_choices['flag-et'] ) ) {
398
- $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="18" width="18" alt="Estonian"/></a>';
399
- }
400
-
401
- if ( isset ( $get_flag_choices['flag-tl'] ) ) {
402
- $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Filipino"/></a>';
403
- }
404
-
405
- if ( isset ( $get_flag_choices['flag-fi'] ) ) {
406
- $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="18" width="18" alt="Finnish"/></a>';
407
- }
408
-
409
- if ( isset ( $get_flag_choices['flag-fr'] ) ) {
410
- $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="18" width="18" alt="French"/></a>';
411
- }
412
-
413
- if ( isset ( $get_flag_choices['flag-gl'] ) ) {
414
- $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="18" width="18" alt="Galician"/></a>';
415
- }
416
-
417
- if ( isset ( $get_flag_choices['flag-ka'] ) ) {
418
- $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="18" width="18" alt="Georgian"/></a>';
419
- }
420
-
421
- if ( isset ( $get_flag_choices['flag-de'] ) ) {
422
- $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="18" width="18" alt="German"/></a>';
423
- }
424
-
425
- if ( isset ( $get_flag_choices['flag-el'] ) ) {
426
- $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="18" width="18" alt="Greek"/></a>';
427
- }
428
-
429
- if ( isset ( $get_flag_choices['flag-gu'] ) ) {
430
- $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Gujarati"/></a>';
431
- }
432
-
433
- if ( isset ( $get_flag_choices['flag-ht'] ) ) {
434
- $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="18" width="18" alt="Haitian"/></a>';
435
- }
436
-
437
- if ( isset ( $get_flag_choices['flag-iw'] ) ) {
438
- $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="18" width="18" alt="Hebrew"/></a>';
439
- }
440
-
441
- if ( isset ( $get_flag_choices['flag-hi'] ) ) {
442
- $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Hindi"/></a>';
443
- }
444
-
445
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
446
- $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="18" width="18" alt="Hmong"/></a>';
447
- }
448
-
449
- if ( isset ( $get_flag_choices['flag-hu'] ) ) {
450
- $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="18" width="18" alt="Hungarian"/></a>';
451
- }
452
-
453
- if ( isset ( $get_flag_choices['flag-is'] ) ) {
454
- $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="18" width="18" alt="Icelandic"/></a>';
455
- }
456
-
457
- if ( isset ( $get_flag_choices['flag-id'] ) ) {
458
- $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Indonesian"/></a>';
459
- }
460
-
461
- if ( isset ( $get_flag_choices['flag-ga'] ) ) {
462
- $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="18" width="18" alt="Irish"/></a>';
463
- }
464
-
465
- if ( isset ( $get_flag_choices['flag-it'] ) ) {
466
- $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="18" width="18" alt="Italian"/></a>';
467
- }
468
-
469
- if ( isset ( $get_flag_choices['flag-ja'] ) ) {
470
- $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="18" width="18" alt="Japanese"/></a>';
471
- }
472
-
473
- if ( isset ( $get_flag_choices['flag-jw'] ) ) {
474
- $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Javanese"/></a>';
475
- }
476
-
477
- if ( isset ( $get_flag_choices['flag-kn'] ) ) {
478
- $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="18" width="18" alt="Kannada"/></a>';
479
- }
480
-
481
- if ( isset ( $get_flag_choices['flag-km'] ) ) {
482
- $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="18" width="18" alt="Khmer"/></a>';
483
- }
484
-
485
- if ( isset ( $get_flag_choices['flag-ko'] ) ) {
486
- $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="18" width="18" alt="Korea"/></a>';
487
- }
488
-
489
- if ( isset ( $get_flag_choices['flag-lo'] ) ) {
490
- $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="18" width="18" alt="Laos"/></a>';
491
- }
492
-
493
- if ( isset ( $get_flag_choices['flag-la'] ) ) {
494
- $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="18" width="18" alt="Latin"/></a>';
495
- }
496
-
497
- if ( isset ( $get_flag_choices['flag-lv'] ) ) {
498
- $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="18" width="18" alt="Latvian"/></a>';
499
- }
500
-
501
- if ( isset ( $get_flag_choices['flag-lt'] ) ) {
502
- $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="18" width="18" alt="Lithuanian"/></a>';
503
- }
504
-
505
- if ( isset ( $get_flag_choices['flag-mk'] ) ) {
506
- $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="18" width="18" alt="Macedonian"/></a>';
507
- }
508
-
509
- if ( isset ( $get_flag_choices['flag-ms'] ) ) {
510
- $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="18" width="18" alt="Malay"/></a>';
511
- }
512
-
513
- if ( isset ( $get_flag_choices['flag-mt'] ) ) {
514
- $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="18" width="18" alt="Malta"/></a>';
515
- }
516
-
517
- if ( isset ( $get_flag_choices['flag-mr'] ) ) {
518
- $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="18" width="18" alt="Marathi"/></a>';
519
- }
520
-
521
- if ( isset ( $get_flag_choices['flag-no'] ) ) {
522
- $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="18" width="18" alt="Norwegian"/></a>';
523
- }
524
-
525
- if ( isset ( $get_flag_choices['flag-fa'] ) ) {
526
- $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="18" width="18" alt="Persian"/></a>';
527
- }
528
-
529
- if ( isset ( $get_flag_choices['flag-pl'] ) ) {
530
- $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="18" width="18" alt="Polish"/></a>';
531
- }
532
-
533
- if ( isset ( $get_flag_choices['flag-pt'] ) ) {
534
- $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="18" width="18" alt="Portuguese"/></a>';
535
- }
536
-
537
- if ( isset ( $get_flag_choices['flag-ro'] ) ) {
538
- $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="18" width="18" alt="Romanian"/></a>';
539
- }
540
-
541
- if ( isset ( $get_flag_choices['flag-ru'] ) ) {
542
- $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="18" width="18" alt="Russian"/></a>';
543
- }
544
-
545
- if ( isset ( $get_flag_choices['flag-sr'] ) ) {
546
- $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="18" width="18" alt="Serbian"/></a>';
547
- }
548
-
549
- if ( isset ( $get_flag_choices['flag-sk'] ) ) {
550
- $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="18" width="18" alt="Slovak"/></a>';
551
- }
552
-
553
- if ( isset ( $get_flag_choices['flag-sl'] ) ) {
554
- $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="18" width="18" alt="Slovenian"/></a>';
555
- }
556
-
557
- if ( isset ( $get_flag_choices['flag-es'] ) ) {
558
- $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="18" width="18" alt="Spanish"/></a>';
559
- }
560
-
561
- if ( isset ( $get_flag_choices['flag-sw'] ) ) {
562
- $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="18" width="18" alt="Swahili"/></a>';
563
- }
564
-
565
- if ( isset ( $get_flag_choices['flag-sv'] ) ) {
566
- $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="18" width="18" alt="Swedish"/></a>';
567
- }
568
-
569
- if ( isset ( $get_flag_choices['flag-ta'] ) ) {
570
- $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="18" width="18" alt="Tamil"/></a>';
571
- }
572
-
573
- if ( isset ( $get_flag_choices['flag-te'] ) ) {
574
- $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="18" width="18" alt="Telugu"/></a>';
575
- }
576
-
577
- if ( isset ( $get_flag_choices['flag-th'] ) ) {
578
- $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="18" width="18" alt="Thai"/></a>';
579
- }
580
-
581
- if ( isset ( $get_flag_choices['flag-tr'] ) ) {
582
- $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="18" width="18" alt="Turkish"/></a>';
583
- }
584
-
585
- if ( isset ( $get_flag_choices['flag-uk'] ) ) {
586
- $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="18" width="18" alt="Ukranian"/></a>';
587
- }
588
-
589
- if ( isset ( $get_flag_choices['flag-ur'] ) ) {
590
- $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="18" width="18" alt="Urdu"/></a>';
591
- }
592
-
593
- if ( isset ( $get_flag_choices['flag-vi'] ) ) {
594
- $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="18" width="18" alt="vietnamese"/></a>';
595
- }
596
-
597
- if ( isset ( $get_flag_choices['flag-cy'] ) ) {
598
- $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="18" width="18" alt="Welsh"/></a>';
599
- }
600
-
601
- if ( isset ( $get_flag_choices['flag-yi'] ) ) {
602
- $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="18" width="18" alt="Yiddish"/></a>';
603
- }
604
-
605
-
606
- $str.='</div>';
607
-
608
- $is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
609
-
610
- if ($is_multilanguage == 1) {
611
- $multilanguagePage = 'multilanguagePage:true,';
612
-
613
- $str.='<script type="text/javascript">
614
- function GoogleLanguageTranslatorInit() {
615
- new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\','.$multilanguagePage . $language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
616
- </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
617
- <div id="google_language_translator"></div>';
618
- return $str;
619
- } elseif ($is_multilanguage == 0) {
620
-
621
- $str.='<script type="text/javascript">
622
- function GoogleLanguageTranslatorInit() {
623
- new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\','.$language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
624
- </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
625
- <div id="google_language_translator"></div>';
626
- return $str;
627
- }
628
- }
629
- }
630
- }
631
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glt_widget.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
-
3
- add_action( 'widgets_init', create_function( '', 'register_widget( "Google_Language_Translator" );' ) );
4
-
5
- class Google_Language_Translator extends WP_Widget {
6
-
7
- public function __construct() {
8
- parent::__construct(
9
- 'bapi_google_translate', // Base ID
10
- 'Google Language Translator', // Name
11
- array( 'description' => __( 'Go to Settings > Google Language Translator to configure this widget.', 'text_domain' ), ) // Args
12
- );
13
- }
14
-
15
- public function widget( $args, $instance ) {
16
-
17
- $title = null;
18
-
19
- extract( $args );
20
-
21
- if (! empty( $instance['title'] ) ) { $title = apply_filters('widget_title', $instance['title'] ); }
22
-
23
-
24
- echo $before_widget;
25
- echo google_translator_shortcode();
26
- echo $after_widget;
27
- }
28
-
29
- } // class Google_Translate_Widget
30
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
google-language-translator.php CHANGED
@@ -2,79 +2,2981 @@
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
- Version: 3.0.7
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.studio88design.com/
9
  */
10
 
11
- register_activation_hook( __FILE__, 'glt_activate' );
12
-
13
- include( plugin_dir_path( __FILE__ ) . 'glt_activate.php');
 
 
14
 
15
- include( plugin_dir_path( __FILE__ ) . 'glt_scripts.php');
16
 
17
- include( plugin_dir_path( __FILE__ ) . 'glt_widget.php');
 
 
18
 
19
- include( plugin_dir_path( __FILE__ ) . 'glt_settings_display.php');
20
 
21
- include( plugin_dir_path( __FILE__ ) . 'glt_settings_init.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- include( plugin_dir_path( __FILE__ ) . 'glt_horizontal.php');
 
 
24
 
25
- include( plugin_dir_path( __FILE__ ) . 'glt_vertical.php');
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
- function load_css() {
28
- include( plugin_dir_path( __FILE__ ) . 'glt_css.php');
29
- }
30
- add_action('wp_head','load_css');
31
- add_action('admin_head','load_css');
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
- function google_translator_shortcode() {
34
  if (get_option('googlelanguagetranslator_display')=='Vertical'){
35
- return googlelanguagetranslator_vertical();
36
  }
37
 
38
  elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
39
- return googlelanguagetranslator_horizontal();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
 
41
 
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- add_shortcode( 'google-translator', 'google_translator_shortcode');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
- add_filter('widget_text', 'do_shortcode');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
- // Functions for frontend display
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
- function googlelanguagetranslator_included_languages() {
51
- if ( get_option('googlelanguagetranslator_language_option')=='specific') {
52
- $get_language_choices = get_option ('language_display_settings');
53
- //print_r($get_language_choices);
54
-
55
- foreach ($get_language_choices as $key=>$value) {
56
- if($value == 1) {
57
- $items[] = $key;
58
- }
59
- }
60
- $comma_separated = implode(",",array_values($items));
61
-
62
- if ( get_option('googlelanguagetranslator_display') == 'Vertical') {
63
- $lang = 'includedLanguages:\''.$comma_separated.'\',';
64
- return $lang;
65
- } elseif ( get_option('googlelanguagetranslator_display') == 'Horizontal') {
66
- $lang = 'includedLanguages:\''.$comma_separated.'\',';
67
- return $lang;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
- }
 
 
 
 
 
 
71
 
72
- function analytics() {
73
- if ( get_option('googlelanguagetranslator_analytics') == 1 ) {
74
- $analytics_id = get_option('googlelanguagetranslator_analytics_id');
75
- $analytics = 'gaTrack: true, gaId: \''.$analytics_id.'\'';
76
- return $analytics;
 
 
 
77
  }
78
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
 
 
 
 
 
 
 
 
 
 
80
  ?>
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 3.0.8
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.studio88design.com/
9
  */
10
 
11
+ if (!function_exists('add_action')) {
12
+ header('Status: 403 Forbidden');
13
+ header('HTTP/1.1 403 Forbidden');
14
+ exit();
15
+ }
16
 
17
+ include( plugin_dir_path( __FILE__ ) . 'widget.php');
18
 
19
+ class google_language_translator {
20
+
21
+ public function __construct(){
22
 
23
+ register_activation_hook( __FILE__, 'glt_activate' );
24
 
25
+ add_action('admin_menu',array(&$this, 'page_layout'));
26
+ add_action('admin_init',array(&$this, 'initialize_settings'));
27
+ add_action('wp_head',array(&$this, 'load_css'));
28
+ add_action('admin_head',array(&$this, 'load_css'));
29
+ add_shortcode( 'google-translator',array(&$this, 'google_translator_shortcode'));
30
+ add_filter('widget_text','do_shortcode');
31
+
32
+ if (!is_admin()) {
33
+ add_action('init',array(&$this, 'flags'));
34
+ }
35
+ }
36
+
37
+ public function glt_activate() {
38
+ add_option('googlelanguagetranslator_active', 1);
39
+ add_option('googlelanguagetranslator_language','en');
40
+ add_option('googlelanguagetranslator_language_option','all');
41
+ add_option('language_display_settings',array ('en' => 1));
42
+ add_option('googlelanguagetranslator_flags','show_flags');
43
+ add_option('flag_display_settings',array ('flag-en' => 1));
44
+ add_option('googlelanguagetranslator_translatebox','yes');
45
+ add_option('googlelanguagetranslator_display','Vertical');
46
+ add_option('googlelanguagetranslator_toolbar','Yes');
47
+ add_option('googlelanguagetranslator_showbranding','Yes');
48
+ add_option('googlelanguagetranslator_flags_alignment','flags_left');
49
+ add_option('googlelanguagetranslator_analytics',1);
50
+ add_option('googlelanguagetranslator_analytics_id','');
51
+ add_option('googlelanguagetranslator_css','');
52
+ add_option('googlelanguagetranslator_manage_translations',0);
53
+ add_option('googlelanguagetranslator_multilanguage',0);
54
+ add_option('googlelanguagetranslator_floating_widget','yes');
55
+ }
56
 
57
+ public function load_css() {
58
+ include( plugin_dir_path( __FILE__ ) . 'css/style.php');
59
+ }
60
 
61
+ public function scripts($hook_suffix) {
62
+ global $p;
63
+ if ($p == $hook_suffix) {
64
+ wp_enqueue_script( 'my-admin-script', plugins_url('js/admin.js',__FILE__), array('jquery'));
65
+ wp_enqueue_script( 'my-flag-script', plugins_url('js/flags.js',__FILE__), array('jquery'));
66
+ wp_enqueue_script( 'my-toolbar-script', plugins_url('js/toolbar.js',__FILE__), array('jquery'));
67
+ wp_enqueue_script( 'my-load-toolbar-script', plugins_url('js/load-toolbar.js',__FILE__), array('jquery'));
68
+ wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
69
+ wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
70
+ wp_enqueue_style( 'style.css' );
71
+ wp_enqueue_style( 'toolbar.css' );
72
+ }
73
+ }
74
 
75
+ public function flags() {
76
+ wp_enqueue_script( 'flags', plugins_url('js/flags.js',__FILE__), array('jquery'));
77
+ wp_enqueue_script( 'my-toolbar-script', plugins_url('js/toolbar.js',__FILE__), array('jquery'));
78
+ wp_enqueue_script( 'my-load-toolbar-script', plugins_url('js/load-toolbar.js',__FILE__), array('jquery'));
79
+ wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
80
+ wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
81
+ wp_enqueue_style( 'style.css' );
82
+ wp_enqueue_style( 'toolbar.css' );
83
+ }
84
+
85
+ public function page_layout () {
86
+ global $p;
87
+
88
+ add_action( 'admin_enqueue_scripts',array(&$this, 'scripts'));
89
+
90
+ $p = add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'google_language_translator', array(&$this, 'page_layout_cb'));
91
+ }
92
+
93
 
94
+ public function google_translator_shortcode() {
95
  if (get_option('googlelanguagetranslator_display')=='Vertical'){
96
+ return $this->googlelanguagetranslator_vertical();
97
  }
98
 
99
  elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
100
+ return $this->googlelanguagetranslator_horizontal();
101
+ }
102
+ }
103
+
104
+ public function googlelanguagetranslator_included_languages() {
105
+ if ( get_option('googlelanguagetranslator_language_option')=='specific') {
106
+ $get_language_choices = get_option ('language_display_settings');
107
+
108
+ foreach ($get_language_choices as $key=>$value) {
109
+ if($value == 1) {
110
+ $items[] = $key;
111
+ }
112
+ }
113
+
114
+ $comma_separated = implode(",",array_values($items));
115
+
116
+ if ( get_option('googlelanguagetranslator_display') == 'Vertical') {
117
+ $lang = ', includedLanguages:\''.$comma_separated.'\'';
118
+ return $lang;
119
+ } elseif ( get_option('googlelanguagetranslator_display') == 'Horizontal') {
120
+ $lang = ', includedLanguages:\''.$comma_separated.'\'';
121
+ return $lang;
122
+ }
123
+ }
124
+ }
125
+
126
+ public function analytics() {
127
+ if ( get_option('googlelanguagetranslator_analytics') == 1 ) {
128
+ $analytics_id = get_option('googlelanguagetranslator_analytics_id');
129
+ $analytics = 'gaTrack: true, gaId: \''.$analytics_id.'\'';
130
+ return ', '.$analytics;
131
  }
132
+ }
133
 
134
+ public function googlelanguagetranslator_vertical(){
135
+ $is_active = get_option ( 'googlelanguagetranslator_active' );
136
+ $get_flag_choices = get_option ('flag_display_settings');
137
+ $get_language_option = get_option('googlelanguagetranslator_language_option');
138
+ $language_choices = $this->googlelanguagetranslator_included_languages();
139
+ $floating_widget = get_option ('googlelanguagetranslator_floating_widget');
140
+ $str = '';
141
+
142
+ if( $is_active == 1){
143
+ if ($floating_widget=='yes' && $get_language_option != 'specific') {
144
+ $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</strong></div>';
145
+ $str.='<div id="glt-toolbar">';
146
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
147
+ $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="24" width="24" alt="Afrikaans"/></a>';
148
+ }
149
+
150
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
151
+ $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="24" width="24" alt="Albanian"/></a>';
152
+ }
153
+
154
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
155
+ $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="24" width="24" alt="Arabic"/></a>';
156
+ }
157
+
158
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
159
+ $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="24" width="24" alt="Armenian"/></a>';
160
+ }
161
+
162
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
163
+ $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="24" width="24" alt="Azerbaijani"/></a>';
164
+ }
165
+
166
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
167
+ $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="24" width="24" alt="Basque"/></a>';
168
+ }
169
+
170
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
171
+ $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="24" width="24" alt="Belarus"/></a>';
172
+ }
173
+
174
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
175
+ $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="24" width="24" alt="Bengali"/></a>';
176
+ }
177
+
178
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
179
+ $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="24" width="24" alt="Bosnian"/></a>';
180
+ }
181
+
182
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
183
+ $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="24" width="24" alt="Bulgarian"/></a>';
184
+ }
185
+
186
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
187
+ $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="24" width="24" alt="Catalan"/></a>';
188
+ }
189
+
190
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
191
+ $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Afrikaans"/></a>';
192
+ }
193
+
194
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
195
+ $str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Simplified)"/></a>';
196
+ }
197
+
198
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
199
+ $str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Traditional)"/></a>';
200
+ }
201
+
202
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
203
+ $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="24" width="24" alt="Czech"/></a>';
204
+ }
205
+
206
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
207
+ $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="24" width="24" alt="Croatian"/></a>';
208
+ }
209
+
210
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
211
+ $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="24" width="24" alt="Danish"/></a>';
212
+ }
213
+
214
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
215
+ $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="24" width="24" alt="Dutch"/></a>';
216
+ }
217
+
218
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
219
+ $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="24" width="24" alt="English"/></a>';
220
+ }
221
+
222
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
223
+ $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="24" width="24" alt="Esperanto"/></a>';
224
+ }
225
+
226
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
227
+ $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="24" width="24" alt="Estonian"/></a>';
228
+ }
229
+
230
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
231
+ $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Filipino"/></a>';
232
+ }
233
+
234
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
235
+ $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="24" width="24" alt="Finnish"/></a>';
236
+ }
237
+
238
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
239
+ $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="24" width="24" alt="French"/></a>';
240
+ }
241
+
242
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
243
+ $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="24" width="24" alt="Galician"/></a>';
244
+ }
245
+
246
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
247
+ $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="24" width="24" alt="Georgian"/></a>';
248
+ }
249
+
250
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
251
+ $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="24" width="24" alt="German"/></a>';
252
+ }
253
+
254
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
255
+ $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="24" width="24" alt="Greek"/></a>';
256
+ }
257
+
258
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
259
+ $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Gujarati"/></a>';
260
+ }
261
+
262
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
263
+ $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="24" width="24" alt="Haitian"/></a>';
264
+ }
265
+
266
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
267
+ $str.='<a id="Hausa" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ha\'); return false;" title="Hausa" class="notranslate flag ha"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="24" width="24" alt="Hausa"/></a>';
268
+ }
269
+
270
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
271
+ $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="24" width="24" alt="Hebrew"/></a>';
272
+ }
273
+
274
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
275
+ $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Hindi"/></a>';
276
+ }
277
+
278
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
279
+ $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="24" width="24" alt="Hmong"/></a>';
280
+ }
281
+
282
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
283
+ $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="24" width="24" alt="Hungarian"/></a>';
284
+ }
285
+
286
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
287
+ $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="24" width="24" alt="Icelandic"/></a>';
288
+ }
289
+
290
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
291
+ $str.='<a id="Igbo" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ig\'); return false;" title="Igbo" class="notranslate flag ig"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="24" width="24" alt="Igbo"/></a>';
292
+ }
293
+
294
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
295
+ $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Indonesian"/></a>';
296
+ }
297
+
298
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
299
+ $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="24" width="24" alt="Irish"/></a>';
300
+ }
301
+
302
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
303
+ $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="24" width="24" alt="Italian"/></a>';
304
+ }
305
+
306
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
307
+ $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="24" width="24" alt="Japanese"/></a>';
308
+ }
309
+
310
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
311
+ $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Javanese"/></a>';
312
+ }
313
+
314
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
315
+ $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="24" width="24" alt="Kannada"/></a>';
316
+ }
317
+
318
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
319
+ $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="24" width="24" alt="Khmer"/></a>';
320
+ }
321
+
322
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
323
+ $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="24" width="24" alt="Korea"/></a>';
324
+ }
325
+
326
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
327
+ $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="24" width="24" alt="Laos"/></a>';
328
+ }
329
+
330
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
331
+ $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="24" width="24" alt="Latin"/></a>';
332
+ }
333
+
334
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
335
+ $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="24" width="24" alt="Latvian"/></a>';
336
+ }
337
+
338
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
339
+ $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="24" width="24" alt="Lithuanian"/></a>';
340
+ }
341
+
342
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
343
+ $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="24" width="24" alt="Macedonian"/></a>';
344
+ }
345
+
346
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
347
+ $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="24" width="24" alt="Malay"/></a>';
348
+ }
349
+
350
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
351
+ $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="24" width="24" alt="Malta"/></a>';
352
+ }
353
+
354
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
355
+ $str.='<a id="Maori" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mi\'); return false;" title="Maori" class="notranslate flag mi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/newzealand.png" height="24" width="24" alt="Maori"/></a>';
356
+ }
357
+
358
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
359
+ $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="24" width="24" alt="Marathi"/></a>';
360
+ }
361
+
362
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
363
+ $str.='<a id="Mongolian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mn\'); return false;" title="Mongolian" class="notranslate flag mn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/mongolia.png" height="24" width="24" alt="Mongolian"/></a>';
364
+ }
365
+
366
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
367
+ $str.='<a id="Nepali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ne\'); return false;" title="Nepali" class="notranslate flag ne"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nepal.png" height="24" width="24" alt="Nepali"/></a>';
368
+ }
369
+
370
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
371
+ $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="24" width="24" alt="Norwegian"/></a>';
372
+ }
373
+
374
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
375
+ $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="24" width="24" alt="Persian"/></a>';
376
+ }
377
+
378
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
379
+ $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="24" width="24" alt="Polish"/></a>';
380
+ }
381
+
382
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
383
+ $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="24" width="24" alt="Portuguese"/></a>';
384
+ }
385
+
386
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
387
+ $str.='<a id="Punjabi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pa\'); return false;" title="Punjabi" class="notranslate flag pa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="24" width="24" alt="Punjabi"/></a>';
388
+ }
389
+
390
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
391
+ $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="24" width="24" alt="Romanian"/></a>';
392
+ }
393
+
394
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
395
+ $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="24" width="24" alt="Russian"/></a>';
396
+ }
397
+
398
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
399
+ $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="24" width="24" alt="Serbian"/></a>';
400
+ }
401
+
402
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
403
+ $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="24" width="24" alt="Slovak"/></a>';
404
+ }
405
+
406
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
407
+ $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="24" width="24" alt="Slovenian"/></a>';
408
+ }
409
+
410
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
411
+ $str.='<a id="Somali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|so\'); return false;" title="Somali" class="notranslate flag so"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/somalia.png" height="24" width="24" alt="Somali"/></a>';
412
+ }
413
+
414
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
415
+ $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="24" width="24" alt="Spanish"/></a>';
416
+ }
417
+
418
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
419
+ $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="24" width="24" alt="Swahili"/></a>';
420
+ }
421
+
422
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
423
+ $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="24" width="24" alt="Swedish"/></a>';
424
+ }
425
+
426
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
427
+ $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="24" width="24" alt="Tamil"/></a>';
428
+ }
429
+
430
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
431
+ $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="24" width="24" alt="Telugu"/></a>';
432
+ }
433
+
434
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
435
+ $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="24" width="24" alt="Thai"/></a>';
436
+ }
437
+
438
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
439
+ $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="24" width="24" alt="Turkish"/></a>';
440
+ }
441
+
442
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
443
+ $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="24" width="24" alt="Ukranian"/></a>';
444
+ }
445
+
446
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
447
+ $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="24" width="24" alt="Urdu"/></a>';
448
+ }
449
+
450
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
451
+ $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="24" width="24" alt="vietnamese"/></a>';
452
+ }
453
+
454
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
455
+ $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="24" width="24" alt="Welsh"/></a>';
456
+ }
457
+
458
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
459
+ $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
460
+ }
461
+
462
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
463
+ $str.='<a id="Yoruba" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yo\'); return false;" title="Yoruba" class="notranslate flag yo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nigeria.png" height="24" width="24" alt="Yoruba"/></a>';
464
+ }
465
+
466
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
467
+ $str.='<a id="Zulu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zu\'); return false;" title="Zulu" class="notranslate flag zu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="24" width="24" alt="Zulu"/></a>';
468
+ }
469
+ $str.='</div>';
470
+ }
471
 
472
+ foreach ($get_flag_choices as $key) {
473
+
474
+ }
475
+
476
+ $str.='<div id="flags">';
477
+
478
+ if ($key == '1') {
479
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
480
+ $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Afrikaans"/></a>';
481
+ }
482
+
483
+
484
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
485
+ $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="18" width="18" alt="Albanian"/></a>';
486
+ }
487
+
488
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
489
+ $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="18" width="18" alt="Arabic"/></a>';
490
+ }
491
+
492
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
493
+ $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="18" width="18" alt="Armenian"/></a>';
494
+ }
495
+
496
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
497
+ $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="18" width="18" alt="Azerbaijani"/></a>';
498
+ }
499
+
500
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
501
+ $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="18" width="18" alt="Basque"/></a>';
502
+ }
503
+
504
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
505
+ $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="18" width="18" alt="Belarus"/></a>';
506
+ }
507
+
508
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
509
+ $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="18" width="18" alt="Bengali"/></a>';
510
+ }
511
+
512
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
513
+ $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="18" width="18" alt="Bosnian"/></a>';
514
+ }
515
+
516
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
517
+ $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="18" width="18" alt="Bulgarian"/></a>';
518
+ }
519
+
520
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
521
+ $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="18" width="18" alt="Catalan"/></a>';
522
+ }
523
+
524
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
525
+ $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Afrikaans"/></a>';
526
+ }
527
+
528
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
529
+ $str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Simplified)"/></a>';
530
+ }
531
+
532
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
533
+ $str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Traditional)"/></a>';
534
+ }
535
+
536
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
537
+ $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="18" width="18" alt="Czech"/></a>';
538
+ }
539
+
540
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
541
+ $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="18" width="18" alt="Croatian"/></a>';
542
+ }
543
+
544
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
545
+ $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="18" width="18" alt="Danish"/></a>';
546
+ }
547
+
548
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
549
+ $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="18" width="18" alt="Dutch"/></a>';
550
+ }
551
+
552
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
553
+ $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="18" width="18" alt="English"/></a>';
554
+ }
555
+
556
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
557
+ $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="18" width="18" alt="Esperanto"/></a>';
558
+ }
559
+
560
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
561
+ $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="18" width="18" alt="Estonian"/></a>';
562
+ }
563
+
564
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
565
+ $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Filipino"/></a>';
566
+ }
567
+
568
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
569
+ $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="18" width="18" alt="Finnish"/></a>';
570
+ }
571
+
572
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
573
+ $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="18" width="18" alt="French"/></a>';
574
+ }
575
+
576
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
577
+ $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="18" width="18" alt="Galician"/></a>';
578
+ }
579
+
580
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
581
+ $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="18" width="18" alt="Georgian"/></a>';
582
+ }
583
+
584
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
585
+ $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="18" width="18" alt="German"/></a>';
586
+ }
587
+
588
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
589
+ $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="18" width="18" alt="Greek"/></a>';
590
+ }
591
+
592
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
593
+ $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Gujarati"/></a>';
594
+ }
595
+
596
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
597
+ $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="18" width="18" alt="Haitian"/></a>';
598
+ }
599
+
600
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
601
+ $str.='<a id="Hausa" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ha\'); return false;" title="Hausa" class="notranslate flag ha"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="18" width="18" alt="Hausa"/></a>';
602
+ }
603
+
604
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
605
+ $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="18" width="18" alt="Hebrew"/></a>';
606
+ }
607
+
608
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
609
+ $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Hindi"/></a>';
610
+ }
611
+
612
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
613
+ $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="18" width="18" alt="Hmong"/></a>';
614
+ }
615
+
616
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
617
+ $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="18" width="18" alt="Hungarian"/></a>';
618
+ }
619
+
620
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
621
+ $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="18" width="18" alt="Icelandic"/></a>';
622
+ }
623
+
624
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
625
+ $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Indonesian"/></a>';
626
+ }
627
+
628
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
629
+ $str.='<a id="Igbo" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ig\'); return false;" title="Igbo" class="notranslate flag ig"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="18" width="18" alt="Igbo"/></a>';
630
+ }
631
+
632
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
633
+ $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="18" width="18" alt="Irish"/></a>';
634
+ }
635
+
636
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
637
+ $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="18" width="18" alt="Italian"/></a>';
638
+ }
639
+
640
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
641
+ $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="18" width="18" alt="Japanese"/></a>';
642
+ }
643
+
644
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
645
+ $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Javanese"/></a>';
646
+ }
647
+
648
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
649
+ $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="18" width="18" alt="Kannada"/></a>';
650
+ }
651
+
652
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
653
+ $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="18" width="18" alt="Khmer"/></a>';
654
+ }
655
+
656
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
657
+ $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="18" width="18" alt="Korea"/></a>';
658
+ }
659
+
660
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
661
+ $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="18" width="18" alt="Laos"/></a>';
662
+ }
663
+
664
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
665
+ $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="18" width="18" alt="Latin"/></a>';
666
+ }
667
+
668
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
669
+ $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="18" width="18" alt="Latvian"/></a>';
670
+ }
671
+
672
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
673
+ $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="18" width="18" alt="Lithuanian"/></a>';
674
+ }
675
+
676
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
677
+ $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="18" width="18" alt="Macedonian"/></a>';
678
+ }
679
+
680
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
681
+ $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="18" width="18" alt="Malay"/></a>';
682
+ }
683
+
684
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
685
+ $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="18" width="18" alt="Malta"/></a>';
686
+ }
687
+
688
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
689
+ $str.='<a id="Maori" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mi\'); return false;" title="Maori" class="notranslate flag mi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/newzealand.png" height="18" width="18" alt="Maori"/></a>';
690
+ }
691
+
692
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
693
+ $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="18" width="18" alt="Marathi"/></a>';
694
+ }
695
+
696
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
697
+ $str.='<a id="Mongolian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mn\'); return false;" title="Mongolian" class="notranslate flag mn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/mongolia.png" height="18" width="18" alt="Mongolian"/></a>';
698
+ }
699
+
700
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
701
+ $str.='<a id="Nepali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ne\'); return false;" title="Nepali" class="notranslate flag ne"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nepal.png" height="18" width="18" alt="Nepali"/></a>';
702
+ }
703
+
704
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
705
+ $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="18" width="18" alt="Norwegian"/></a>';
706
+ }
707
+
708
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
709
+ $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="18" width="18" alt="Persian"/></a>';
710
+ }
711
+
712
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
713
+ $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="18" width="18" alt="Polish"/></a>';
714
+ }
715
+
716
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
717
+ $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="18" width="18" alt="Portuguese"/></a>';
718
+ }
719
+
720
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
721
+ $str.='<a id="Punjabi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pa\'); return false;" title="Punjabi" class="notranslate flag pa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="18" width="18" alt="Punjabi"/></a>';
722
+ }
723
+
724
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
725
+ $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="18" width="18" alt="Romanian"/></a>';
726
+ }
727
+
728
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
729
+ $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="18" width="18" alt="Russian"/></a>';
730
+ }
731
+
732
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
733
+ $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="18" width="18" alt="Serbian"/></a>';
734
+ }
735
+
736
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
737
+ $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="18" width="18" alt="Slovak"/></a>';
738
+ }
739
+
740
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
741
+ $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="18" width="18" alt="Slovenian"/></a>';
742
+ }
743
+
744
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
745
+ $str.='<a id="Somali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|so\'); return false;" title="Somali" class="notranslate flag so"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/somalia.png" height="18" width="18" alt="Somali"/></a>';
746
+ }
747
+
748
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
749
+ $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="18" width="18" alt="Spanish"/></a>';
750
+ }
751
+
752
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
753
+ $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="18" width="18" alt="Swahili"/></a>';
754
+ }
755
+
756
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
757
+ $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="18" width="18" alt="Swedish"/></a>';
758
+ }
759
+
760
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
761
+ $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="18" width="18" alt="Tamil"/></a>';
762
+ }
763
+
764
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
765
+ $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="18" width="18" alt="Telugu"/></a>';
766
+ }
767
+
768
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
769
+ $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="18" width="18" alt="Thai"/></a>';
770
+ }
771
+
772
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
773
+ $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="18" width="18" alt="Turkish"/></a>';
774
+ }
775
+
776
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
777
+ $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="18" width="18" alt="Ukranian"/></a>';
778
+ }
779
+
780
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
781
+ $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="18" width="18" alt="Urdu"/></a>';
782
+ }
783
+
784
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
785
+ $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="18" width="18" alt="vietnamese"/></a>';
786
+ }
787
+
788
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
789
+ $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="18" width="18" alt="Welsh"/></a>';
790
+ }
791
+
792
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
793
+ $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="18" width="18" alt="Yiddish"/></a>';
794
+ }
795
+
796
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
797
+ $str.='<a id="Yoruba" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yo\'); return false;" title="Yoruba" class="notranslate flag yo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nigeria.png" height="18" width="18" alt="Yoruba"/></a>';
798
+ }
799
+
800
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
801
+ $str.='<a id="Zulu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zu\'); return false;" title="Zulu" class="notranslate flag zu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Zulu"/></a>';
802
+ }
803
+
804
+ $str.='</div>';
805
+
806
+ $is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
807
+ $auto_display = ', autoDisplay: false';
808
 
809
+ if ($is_multilanguage == 1) {
810
+ $multilanguagePage = ', multilanguagePage:true';
811
+
812
+ $str.='<script type="text/javascript">
813
+ function GoogleLanguageTranslatorInit() {
814
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''.$language_choices . $auto_display . $multilanguagePage . $this->analytics().'}, \'google_language_translator\');}
815
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
816
+ <div id="google_language_translator"></div>';
817
+ return $str;
818
+ } elseif ($is_multilanguage == 0) {
819
+
820
+ $str.='<script type="text/javascript">
821
+ function GoogleLanguageTranslatorInit() {
822
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''.$language_choices . $auto_display . $this->analytics().'}, \'google_language_translator\');}
823
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
824
+ <div id="google_language_translator"></div>';
825
+ return $str;
826
+ }
827
+ }
828
+ }
829
+ } // End glt_vertical
830
+
831
+ public function googlelanguagetranslator_horizontal(){
832
+ $is_active = get_option ( 'googlelanguagetranslator_active' );
833
+ $get_flag_choices = get_option ('flag_display_settings');
834
+ $get_language_option = get_option('googlelanguagetranslator_language_option');
835
+ $language_choices = $this->googlelanguagetranslator_included_languages();
836
+ $floating_widget = get_option ('googlelanguagetranslator_floating_widget');
837
+ $str = '';
838
+
839
+ if( $is_active == 1){
840
+ if ($floating_widget=='yes' && $get_language_option != 'specific') {
841
+ $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</strong></div>';
842
+ $str.='<div id="glt-toolbar">';
843
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
844
+ $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="24" width="24" alt="Afrikaans"/></a>';
845
+ }
846
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
847
+ $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="24" width="24" alt="Albanian"/></a>';
848
+ }
849
+
850
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
851
+ $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="24" width="24" alt="Arabic"/></a>';
852
+ }
853
+
854
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
855
+ $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="24" width="24" alt="Armenian"/></a>';
856
+ }
857
+
858
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
859
+ $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="24" width="24" alt="Azerbaijani"/></a>';
860
+ }
861
+
862
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
863
+ $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="24" width="24" alt="Basque"/></a>';
864
+ }
865
+
866
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
867
+ $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="24" width="24" alt="Belarus"/></a>';
868
+ }
869
+
870
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
871
+ $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="24" width="24" alt="Bengali"/></a>';
872
+ }
873
+
874
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
875
+ $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="24" width="24" alt="Bosnian"/></a>';
876
+ }
877
+
878
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
879
+ $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="24" width="24" alt="Bulgarian"/></a>';
880
+ }
881
+
882
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
883
+ $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="24" width="24" alt="Catalan"/></a>';
884
+ }
885
+
886
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
887
+ $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Afrikaans"/></a>';
888
+ }
889
+
890
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
891
+ $str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Simplified)"/></a>';
892
+ }
893
+
894
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
895
+ $str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="24" width="24" alt="Chinese (Traditional)"/></a>';
896
+ }
897
+
898
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
899
+ $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="24" width="24" alt="Czech"/></a>';
900
+ }
901
+
902
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
903
+ $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="24" width="24" alt="Croatian"/></a>';
904
+ }
905
+
906
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
907
+ $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="24" width="24" alt="Danish"/></a>';
908
+ }
909
+
910
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
911
+ $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="24" width="24" alt="Dutch"/></a>';
912
+ }
913
+
914
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
915
+ $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="24" width="24" alt="English"/></a>';
916
+ }
917
+
918
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
919
+ $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="24" width="24" alt="Esperanto"/></a>';
920
+ }
921
+
922
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
923
+ $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="24" width="24" alt="Estonian"/></a>';
924
+ }
925
+
926
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
927
+ $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="24" width="24" alt="Filipino"/></a>';
928
+ }
929
+
930
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
931
+ $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="24" width="24" alt="Finnish"/></a>';
932
+ }
933
+
934
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
935
+ $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="24" width="24" alt="French"/></a>';
936
+ }
937
+
938
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
939
+ $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="24" width="24" alt="Galician"/></a>';
940
+ }
941
+
942
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
943
+ $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="24" width="24" alt="Georgian"/></a>';
944
+ }
945
+
946
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
947
+ $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="24" width="24" alt="German"/></a>';
948
+ }
949
+
950
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
951
+ $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="24" width="24" alt="Greek"/></a>';
952
+ }
953
+
954
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
955
+ $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Gujarati"/></a>';
956
+ }
957
+
958
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
959
+ $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="24" width="24" alt="Haitian"/></a>';
960
+ }
961
+
962
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
963
+ $str.='<a id="Hausa" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ha\'); return false;" title="Hausa" class="notranslate flag ha"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="24" width="24" alt="Hausa"/></a>';
964
+ }
965
+
966
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
967
+ $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="24" width="24" alt="Hebrew"/></a>';
968
+ }
969
+
970
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
971
+ $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="24" width="24" alt="Hindi"/></a>';
972
+ }
973
+
974
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
975
+ $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="24" width="24" alt="Hmong"/></a>';
976
+ }
977
+
978
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
979
+ $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="24" width="24" alt="Hungarian"/></a>';
980
+ }
981
+
982
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
983
+ $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="24" width="24" alt="Icelandic"/></a>';
984
+ }
985
+
986
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
987
+ $str.='<a id="Igbo" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ig\'); return false;" title="Igbo" class="notranslate flag ig"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="24" width="24" alt="Igbo"/></a>';
988
+ }
989
+
990
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
991
+ $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Indonesian"/></a>';
992
+ }
993
+
994
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
995
+ $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="24" width="24" alt="Irish"/></a>';
996
+ }
997
+
998
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
999
+ $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="24" width="24" alt="Italian"/></a>';
1000
+ }
1001
+
1002
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1003
+ $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="24" width="24" alt="Japanese"/></a>';
1004
+ }
1005
+
1006
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1007
+ $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="24" width="24" alt="Javanese"/></a>';
1008
+ }
1009
+
1010
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1011
+ $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="24" width="24" alt="Kannada"/></a>';
1012
+ }
1013
+
1014
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1015
+ $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="24" width="24" alt="Khmer"/></a>';
1016
+ }
1017
+
1018
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1019
+ $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="24" width="24" alt="Korea"/></a>';
1020
+ }
1021
+
1022
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1023
+ $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="24" width="24" alt="Laos"/></a>';
1024
+ }
1025
+
1026
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1027
+ $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="24" width="24" alt="Latin"/></a>';
1028
+ }
1029
+
1030
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1031
+ $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="24" width="24" alt="Latvian"/></a>';
1032
+ }
1033
+
1034
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1035
+ $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="24" width="24" alt="Lithuanian"/></a>';
1036
+ }
1037
+
1038
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1039
+ $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="24" width="24" alt="Macedonian"/></a>';
1040
+ }
1041
+
1042
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1043
+ $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="24" width="24" alt="Malay"/></a>';
1044
+ }
1045
+
1046
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1047
+ $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="24" width="24" alt="Malta"/></a>';
1048
+ }
1049
+
1050
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
1051
+ $str.='<a id="Maori" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mi\'); return false;" title="Maori" class="notranslate flag mi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/newzealand.png" height="24" width="24" alt="Maori"/></a>';
1052
+ }
1053
+
1054
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1055
+ $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="24" width="24" alt="Marathi"/></a>';
1056
+ }
1057
+
1058
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
1059
+ $str.='<a id="Mongolian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mn\'); return false;" title="Mongolian" class="notranslate flag mn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/mongolia.png" height="24" width="24" alt="Mongolian"/></a>';
1060
+ }
1061
+
1062
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
1063
+ $str.='<a id="Nepali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ne\'); return false;" title="Nepali" class="notranslate flag ne"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nepal.png" height="24" width="24" alt="Nepali"/></a>';
1064
+ }
1065
+
1066
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1067
+ $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="24" width="24" alt="Norwegian"/></a>';
1068
+ }
1069
+
1070
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1071
+ $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="24" width="24" alt="Persian"/></a>';
1072
+ }
1073
+
1074
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1075
+ $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="24" width="24" alt="Polish"/></a>';
1076
+ }
1077
+
1078
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1079
+ $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="24" width="24" alt="Portuguese"/></a>';
1080
+ }
1081
+
1082
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
1083
+ $str.='<a id="Punjabi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pa\'); return false;" title="Punjabi" class="notranslate flag pa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="24" width="24" alt="Punjabi"/></a>';
1084
+ }
1085
+
1086
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1087
+ $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="24" width="24" alt="Romanian"/></a>';
1088
+ }
1089
+
1090
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1091
+ $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="24" width="24" alt="Russian"/></a>';
1092
+ }
1093
+
1094
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1095
+ $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="24" width="24" alt="Serbian"/></a>';
1096
+ }
1097
+
1098
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1099
+ $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="24" width="24" alt="Slovak"/></a>';
1100
+ }
1101
+
1102
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1103
+ $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="24" width="24" alt="Slovenian"/></a>';
1104
+ }
1105
+
1106
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
1107
+ $str.='<a id="Somali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|so\'); return false;" title="Somali" class="notranslate flag so"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/somalia.png" height="24" width="24" alt="Somali"/></a>';
1108
+ }
1109
+
1110
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1111
+ $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="24" width="24" alt="Spanish"/></a>';
1112
+ }
1113
+
1114
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1115
+ $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="24" width="24" alt="Swahili"/></a>';
1116
+ }
1117
+
1118
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1119
+ $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="24" width="24" alt="Swedish"/></a>';
1120
+ }
1121
+
1122
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1123
+ $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="24" width="24" alt="Tamil"/></a>';
1124
+ }
1125
+
1126
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1127
+ $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="24" width="24" alt="Telugu"/></a>';
1128
+ }
1129
+
1130
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1131
+ $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="24" width="24" alt="Thai"/></a>';
1132
+ }
1133
+
1134
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1135
+ $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="24" width="24" alt="Turkish"/></a>';
1136
+ }
1137
+
1138
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1139
+ $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="24" width="24" alt="Ukranian"/></a>';
1140
+ }
1141
+
1142
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1143
+ $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="24" width="24" alt="Urdu"/></a>';
1144
+ }
1145
+
1146
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1147
+ $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="24" width="24" alt="vietnamese"/></a>';
1148
+ }
1149
+
1150
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1151
+ $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="24" width="24" alt="Welsh"/></a>';
1152
+ }
1153
+
1154
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1155
+ $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
1156
+ }
1157
+
1158
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
1159
+ $str.='<a id="Yoruba" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yo\'); return false;" title="Yoruba" class="notranslate flag yo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nigeria.png" height="24" width="24" alt="Yoruba"/></a>';
1160
+ }
1161
+
1162
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
1163
+ $str.='<a id="Zulu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zu\'); return false;" title="Zulu" class="notranslate flag zu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="24" width="24" alt="Zulu"/></a>';
1164
+ }
1165
+ $str.='</div>';
1166
+ }
1167
+
1168
+ foreach ($get_flag_choices as $key) {
1169
+ }
1170
+
1171
+ $str.='<div id="flags">';
1172
+
1173
+ if ($key == '1') {
1174
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
1175
+ $str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Afrikaans"/></a>';
1176
+ }
1177
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
1178
+ $str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="18" width="18" alt="Albanian"/></a>';
1179
+ }
1180
+
1181
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
1182
+ $str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="18" width="18" alt="Arabic"/></a>';
1183
+ }
1184
+
1185
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1186
+ $str.='<a id="Armenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="notranslate flag hy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/armenia.png" height="18" width="18" alt="Armenian"/></a>';
1187
+ }
1188
+
1189
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
1190
+ $str.='<a id="Azerbaijani" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="notranslate flag az"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/azerbaijan.png" height="18" width="18" alt="Azerbaijani"/></a>';
1191
+ }
1192
+
1193
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
1194
+ $str.='<a id="Basque" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="notranslate flag eu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/basque.png" height="18" width="18" alt="Basque"/></a>';
1195
+ }
1196
+
1197
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
1198
+ $str.='<a id="Belarusian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="notranslate flag be"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/belarus.png" height="18" width="18" alt="Belarus"/></a>';
1199
+ }
1200
+
1201
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
1202
+ $str.='<a id="Bengali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="notranslate flag bn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bangladesh.png" height="18" width="18" alt="Bengali"/></a>';
1203
+ }
1204
+
1205
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
1206
+ $str.='<a id="Bosnian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="notranslate flag bs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bosnia.png" height="18" width="18" alt="Bosnian"/></a>';
1207
+ }
1208
+
1209
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
1210
+ $str.='<a id="Bulgarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="notranslate flag bg"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/bulgaria.png" height="18" width="18" alt="Bulgarian"/></a>';
1211
+ }
1212
+
1213
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
1214
+ $str.='<a id="Catalan" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="notranslate flag ca"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/catalonia.png" height="18" width="18" alt="Catalan"/></a>';
1215
+ }
1216
+
1217
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
1218
+ $str.='<a id="Cebuano" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="notranslate flag ceb"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Afrikaans"/></a>';
1219
+ }
1220
+
1221
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
1222
+ $str.='<a id="Chinese-Simplified)" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Simplified)"/></a>';
1223
+ }
1224
+
1225
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
1226
+ $str.='<a id="Chinese-Traditional)" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Traditional)"/></a>';
1227
+ }
1228
+
1229
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
1230
+ $str.='<a id="Czech" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech" class="notranslate flag cs"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/czechrepublic.png" height="18" width="18" alt="Czech"/></a>';
1231
+ }
1232
+
1233
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
1234
+ $str.='<a id="Croatian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="notranslate flag hr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/croatia.png" height="18" width="18" alt="Croatian"/></a>';
1235
+ }
1236
+
1237
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
1238
+ $str.='<a id="Danish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="notranslate flag da"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/denmark.png" height="18" width="18" alt="Danish"/></a>';
1239
+ }
1240
+
1241
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
1242
+ $str.='<a id="Dutch" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Dutch" class="notranslate flag nl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/netherlands.png" height="18" width="18" alt="Dutch"/></a>';
1243
+ }
1244
+
1245
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
1246
+ $str.='<a id="English" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="notranslate flag en"><img class="flagimg" title="English" src="'.plugins_url().'/google-language-translator/images/flags24/unitedkingdom.png" height="18" width="18" alt="English"/></a>';
1247
+ }
1248
+
1249
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1250
+ $str.='<a id="Esperanto" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="notranslate flag eo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/esperanto.png" height="18" width="18" alt="Esperanto"/></a>';
1251
+ }
1252
+
1253
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
1254
+ $str.='<a id="Estonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="notranslate flag et"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/estonia.png" height="18" width="18" alt="Estonian"/></a>';
1255
+ }
1256
+
1257
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1258
+ $str.='<a id="Filipino" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="notranslate flag tl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/philippines.png" height="18" width="18" alt="Filipino"/></a>';
1259
+ }
1260
+
1261
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1262
+ $str.='<a id="Finnish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="notranslate flag fi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/finland.png" height="18" width="18" alt="Finnish"/></a>';
1263
+ }
1264
+
1265
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1266
+ $str.='<a id="French" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="notranslate flag fr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/france.png" height="18" width="18" alt="French"/></a>';
1267
+ }
1268
+
1269
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1270
+ $str.='<a id="Galician" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="notranslate flag gl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/galicia.png" height="18" width="18" alt="Galician"/></a>';
1271
+ }
1272
+
1273
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1274
+ $str.='<a id="Georgian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="notranslate flag ka"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/georgia.png" height="18" width="18" alt="Georgian"/></a>';
1275
+ }
1276
+
1277
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
1278
+ $str.='<a id="German" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="notranslate flag de"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/germany.png" height="18" width="18" alt="German"/></a>';
1279
+ }
1280
+
1281
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
1282
+ $str.='<a id="Greek" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="notranslate flag el"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/greece.png" height="18" width="18" alt="Greek"/></a>';
1283
+ }
1284
+
1285
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1286
+ $str.='<a id="Gujarati" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="notranslate flag gu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Gujarati"/></a>';
1287
+ }
1288
+
1289
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1290
+ $str.='<a id="Haitian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="notranslate flag ht"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/haiti.png" height="18" width="18" alt="Haitian"/></a>';
1291
+ }
1292
+
1293
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
1294
+ $str.='<a id="Hausa" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ha\'); return false;" title="Hausa" class="notranslate flag ha"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="18" width="18" alt="Hausa"/></a>';
1295
+ }
1296
+
1297
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1298
+ $str.='<a id="Hebrew" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="notranslate flag iw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/israel.png" height="18" width="18" alt="Hebrew"/></a>';
1299
+ }
1300
+
1301
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1302
+ $str.='<a id="Hindi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="notranslate flag hi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/india.png" height="18" width="18" alt="Hindi"/></a>';
1303
+ }
1304
+
1305
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1306
+ $str.='<a id="Hmong" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="notranslate flag hmn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hmong.png" height="18" width="18" alt="Hmong"/></a>';
1307
+ }
1308
+
1309
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1310
+ $str.='<a id="Hungarian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="notranslate flag hu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/hungary.png" height="18" width="18" alt="Hungarian"/></a>';
1311
+ }
1312
+
1313
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
1314
+ $str.='<a id="Icelandic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Icelandic" class="notranslate flag is"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iceland.png" height="18" width="18" alt="Icelandic"/></a>';
1315
+ }
1316
+
1317
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
1318
+ $str.='<a id="Igbo" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ig\'); return false;" title="Igbo" class="notranslate flag ig"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/niger.png" height="18" width="18" alt="Igbo"/></a>';
1319
+ }
1320
+
1321
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
1322
+ $str.='<a id="Indonesian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="notranslate flag id"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Indonesian"/></a>';
1323
+ }
1324
+
1325
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1326
+ $str.='<a id="Irish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="notranslate flag ga"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ireland.png" height="18" width="18" alt="Irish"/></a>';
1327
+ }
1328
+
1329
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
1330
+ $str.='<a id="Italian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="notranslate flag it"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/italy.png" height="18" width="18" alt="Italian"/></a>';
1331
+ }
1332
+
1333
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1334
+ $str.='<a id="Japanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="notranslate flag ja"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/japan.png" height="18" width="18" alt="Japanese"/></a>';
1335
+ }
1336
+
1337
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1338
+ $str.='<a id="Javanese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="notranslate flag jw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/indonesia.png" height="18" width="18" alt="Javanese"/></a>';
1339
+ }
1340
+
1341
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1342
+ $str.='<a id="Kannada" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="notranslate flag kn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kannada.png" height="18" width="18" alt="Kannada"/></a>';
1343
+ }
1344
+
1345
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1346
+ $str.='<a id="Khmer" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="notranslate flag km"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/cambodia.png" height="18" width="18" alt="Khmer"/></a>';
1347
+ }
1348
+
1349
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1350
+ $str.='<a id="Korean" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="notranslate flag ko"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/korea.png" height="18" width="18" alt="Korea"/></a>';
1351
+ }
1352
+
1353
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1354
+ $str.='<a id="Lao" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="notranslate flag lo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/laos.png" height="18" width="18" alt="Laos"/></a>';
1355
+ }
1356
+
1357
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1358
+ $str.='<a id="Latin" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="notranslate flag la"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latin.png" height="18" width="18" alt="Latin"/></a>';
1359
+ }
1360
+
1361
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1362
+ $str.='<a id="Latvian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="notranslate flag lv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/latvia.png" height="18" width="18" alt="Latvian"/></a>';
1363
+ }
1364
+
1365
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1366
+ $str.='<a id="Lithuanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="notranslate flag lt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/lithuania.png" height="18" width="18" alt="Lithuanian"/></a>';
1367
+ }
1368
+
1369
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1370
+ $str.='<a id="Macedonian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="notranslate flag mk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/macedonia.png" height="18" width="18" alt="Macedonian"/></a>';
1371
+ }
1372
+
1373
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1374
+ $str.='<a id="Malay" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="notranslate flag ms"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malaysia.png" height="18" width="18" alt="Malay"/></a>';
1375
+ }
1376
+
1377
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1378
+ $str.='<a id="Maltese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="notranslate flag mt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/malta.png" height="18" width="18" alt="Malta"/></a>';
1379
+ }
1380
+
1381
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
1382
+ $str.='<a id="Maori" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mi\'); return false;" title="Maori" class="notranslate flag mi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/newzealand.png" height="18" width="18" alt="Maori"/></a>';
1383
+ }
1384
+
1385
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1386
+ $str.='<a id="Marathi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="notranslate flag mr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/marathi.png" height="18" width="18" alt="Marathi"/></a>';
1387
+ }
1388
+
1389
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
1390
+ $str.='<a id="Mongolian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mn\'); return false;" title="Mongolian" class="notranslate flag mn"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/mongolia.png" height="18" width="18" alt="Mongolian"/></a>';
1391
+ }
1392
+
1393
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
1394
+ $str.='<a id="Nepali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ne\'); return false;" title="Nepali" class="notranslate flag ne"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nepal.png" height="18" width="18" alt="Nepali"/></a>';
1395
+ }
1396
+
1397
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1398
+ $str.='<a id="Norwegian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="notranslate flag no"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/norway.png" height="18" width="18" alt="Norwegian"/></a>';
1399
+ }
1400
+
1401
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1402
+ $str.='<a id="Persian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="notranslate flag fa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/iran.png" height="18" width="18" alt="Persian"/></a>';
1403
+ }
1404
+
1405
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1406
+ $str.='<a id="Polish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="notranslate flag pl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/poland.png" height="18" width="18" alt="Polish"/></a>';
1407
+ }
1408
+
1409
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1410
+ $str.='<a id="Portuguese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="notranslate flag pt"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/portugal.png" height="18" width="18" alt="Portuguese"/></a>';
1411
+ }
1412
+
1413
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
1414
+ $str.='<a id="Punjabi" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pa\'); return false;" title="Punjabi" class="notranslate flag pa"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="18" width="18" alt="Punjabi"/></a>';
1415
+ }
1416
+
1417
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1418
+ $str.='<a id="Romanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="notranslate flag ro"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/romania.png" height="18" width="18" alt="Romanian"/></a>';
1419
+ }
1420
+
1421
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1422
+ $str.='<a id="Russian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="notranslate flag ru"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/russia.png" height="18" width="18" alt="Russian"/></a>';
1423
+ }
1424
+
1425
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1426
+ $str.='<a id="Serbian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="notranslate flag sr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/serbia.png" height="18" width="18" alt="Serbian"/></a>';
1427
+ }
1428
+
1429
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1430
+ $str.='<a id="Slovak" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="notranslate flag sk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovakia.png" height="18" width="18" alt="Slovak"/></a>';
1431
+ }
1432
+
1433
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1434
+ $str.='<a id="Slovenian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="notranslate flag sl"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/slovenia.png" height="18" width="18" alt="Slovenian"/></a>';
1435
+ }
1436
+
1437
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
1438
+ $str.='<a id="Somali" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|so\'); return false;" title="Somali" class="notranslate flag so"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/somalia.png" height="18" width="18" alt="Somali"/></a>';
1439
+ }
1440
+
1441
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1442
+ $str.='<a id="Spanish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="notranslate flag es"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/spain.png" height="18" width="18" alt="Spanish"/></a>';
1443
+ }
1444
+
1445
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1446
+ $str.='<a id="Swahili" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="notranslate flag sw"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/kenya.png" height="18" width="18" alt="Swahili"/></a>';
1447
+ }
1448
+
1449
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1450
+ $str.='<a id="Swedish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="notranslate flag sv"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/sweden.png" height="18" width="18" alt="Swedish"/></a>';
1451
+ }
1452
+
1453
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1454
+ $str.='<a id="Tamil" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="notranslate flag ta"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/tamil.png" height="18" width="18" alt="Tamil"/></a>';
1455
+ }
1456
+
1457
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1458
+ $str.='<a id="Telugu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="notranslate flag te"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/telugu.png" height="18" width="18" alt="Telugu"/></a>';
1459
+ }
1460
+
1461
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1462
+ $str.='<a id="Thai" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="Thai" class="notranslate flag th"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/thailand.png" height="18" width="18" alt="Thai"/></a>';
1463
+ }
1464
+
1465
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1466
+ $str.='<a id="Turkish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="notranslate flag tr"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/turkey.png" height="18" width="18" alt="Turkish"/></a>';
1467
+ }
1468
+
1469
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1470
+ $str.='<a id="Ukranian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="notranslate flag uk"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/ukraine.png" height="18" width="18" alt="Ukranian"/></a>';
1471
+ }
1472
+
1473
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1474
+ $str.='<a id="Urdu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="notranslate flag ur"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/pakistan.png" height="18" width="18" alt="Urdu"/></a>';
1475
+ }
1476
+
1477
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1478
+ $str.='<a id="Vietnamese" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="notranslate flag vi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/vietnam.png" height="18" width="18" alt="vietnamese"/></a>';
1479
+ }
1480
+
1481
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1482
+ $str.='<a id="Welsh" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="notranslate flag cy"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/wales.png" height="18" width="18" alt="Welsh"/></a>';
1483
+ }
1484
+
1485
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1486
+ $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="18" width="18" alt="Yiddish"/></a>';
1487
+ }
1488
+
1489
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
1490
+ $str.='<a id="Yoruba" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yo\'); return false;" title="Yoruba" class="notranslate flag yo"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/nigeria.png" height="18" width="18" alt="Yoruba"/></a>';
1491
+ }
1492
+
1493
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
1494
+ $str.='<a id="Zulu" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zu\'); return false;" title="Zulu" class="notranslate flag zu"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Zulu"/></a>';
1495
+ }
1496
+ $str.='</div>';
1497
+
1498
+ $is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
1499
+ $horizontal_layout = ', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL';
1500
+ $auto_display = ', autoDisplay: false';
1501
 
1502
+ if ($is_multilanguage == 1) {
1503
+ $multilanguagePage = ', multilanguagePage:true';
1504
+
1505
+ $str.='<script type="text/javascript">
1506
+ function GoogleLanguageTranslatorInit() {
1507
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''. $language_choices . $horizontal_layout . $auto_display . $multilanguagePage . $this->analytics().'}, \'google_language_translator\');}
1508
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1509
+ <div id="google_language_translator"></div>';
1510
+ return $str;
1511
+ } elseif ($is_multilanguage == 0) {
1512
+
1513
+ $str.='<script type="text/javascript">
1514
+ function GoogleLanguageTranslatorInit() {
1515
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''. $language_choices . $horizontal_layout . $auto_display . $this->analytics().'}, \'google_language_translator\');}
1516
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1517
+ <div id="google_language_translator"></div>';
1518
+ return $str;
1519
+ }
1520
+ }
1521
+ }
1522
+ } // End glt_horizontal
1523
+
1524
+ public function initialize_settings() {
1525
+
1526
+ // First, we register a section. This is necessary since all future options must belong to one.
1527
+ add_settings_section(
1528
+ 'glt_settings', // ID used to identify this section and with which to register options
1529
+ 'Settings', // Title to be displayed on the administration page
1530
+ '', // Callback used to render the description of the section
1531
+ 'google_language_translator' // Page on which to add this section of options
1532
+ );
1533
+
1534
+ //Fieldset 1
1535
+ add_settings_field( 'googlelanguagetranslator_active','Plugin status:','googlelanguagetranslator_active_cb','google_language_translator','glt_settings');
1536
+ add_settings_field( 'googlelanguagetranslator_language','Choose the original language of your website','','googlelanguagetranslator_language_cb','glt_settings');
1537
+ add_settings_field( 'googlelanguagetranslator_language_option','What translation languages will you display to website visitors?','googlelanguagetranslator_language_option_cb','google_language_translator','glt_settings');
1538
+ add_settings_field( 'language_display_settings','Your language choices','language_display_settings_cb','google_language_translator','glt_settings');
1539
+ add_settings_field( 'googlelanguagetranslator_flags','Show Flag Images?','googlelanguagetranslator_flags_cb','google_language_translator','glt_settings');
1540
+ add_settings_field( 'flag_display_settings','Flag Options','flag_display_settings_cb','google_language_translator','glt_settings');
1541
+ add_settings_field( 'googlelanguagetranslator_translatebox','Show Translate Box?','googlelanguagetranslator_translatebox_cb','google_language_translator','glt_settings');
1542
+ add_settings_field( 'googlelanguagetranslator_display', 'Layout Options','googlelanguagetranslator_display_cb','google_language_translator','glt_settings');
1543
+ add_settings_field( 'googlelanguagetranslator_toolbar', 'Show Toolbar','googlelanguagetranslator_toolbar_cb','google_language_translator','glt_settings');
1544
+ add_settings_field( 'googlelanguagetranslator_showbranding', 'Show Google Branding','googlelanguagetranslator_showbranding_cb','google_language_translator','glt_settings');
1545
+ add_settings_field( 'googlelanguagetranslator_flags_alignment', 'Align Flags Right or Left', 'googlelanguagetranslator_flags_alignment_cb','google_language_translator','glt_settings');
1546
+ add_settings_field( 'googlelanguagetranslator_analytics','Activate Google Analytics tracking?','googlelanguagetranslator_analytics_cb','google_language_translator','glt_settings');
1547
+ add_settings_field( 'googlelanguagetranslator_analytics_id','Enter your Google Analytics ID','googlelanguagetranslator_analytics_id_cb','google_language_translator','glt_settings');
1548
+ add_settings_field( 'googlelanguagetranslator_css','Custom CSS Overrides','googlelanguagetranslator_css_cb','google_language_translator','glt_settings');
1549
+ add_settings_field( 'googlelanguagetranslator_manage_translations','Turn on translation management?','googlelanguagetranslator_manage_translations_cb','google_language_translator','glt_settings');
1550
+ add_settings_field( 'googlelanguagetranslator_multilanguage','Multilanguage webpages?','googlelanguagetranslator_multilanguage_cb','google_language_translator','glt_settings');
1551
+ add_settings_field( 'googlelanguagetranslator_floating_widget','Show floating translation widget?','googlelanguagetranslator_floating_widget_cb','google_language_translator','glt_settings');
1552
+
1553
+ //Register Fieldset 1
1554
+ register_setting( 'google_language_translator','googlelanguagetranslator_active');
1555
+ register_setting( 'google_language_translator','googlelanguagetranslator_language');
1556
+ register_setting( 'google_language_translator','googlelanguagetranslator_language_option');
1557
+ register_setting( 'google_language_translator','language_display_settings');
1558
+ register_setting( 'google_language_translator','googlelanguagetranslator_flags');
1559
+ register_setting( 'google_language_translator','flag_display_settings');
1560
+ register_setting( 'google_language_translator','googlelanguagetranslator_translatebox');
1561
+ register_setting( 'google_language_translator','googlelanguagetranslator_display');
1562
+ register_setting( 'google_language_translator','googlelanguagetranslator_toolbar');
1563
+ register_setting( 'google_language_translator','googlelanguagetranslator_showbranding');
1564
+ register_setting( 'google_language_translator','googlelanguagetranslator_flags_alignment');
1565
+ register_setting( 'google_language_translator','googlelanguagetranslator_disable_mootools');
1566
+ register_setting( 'google_language_translator','googlelanguagetranslator_disable_modal');
1567
+ register_setting( 'google_language_translator','googlelanguagetranslator_analytics');
1568
+ register_setting( 'google_language_translator','googlelanguagetranslator_analytics_id');
1569
+ register_setting( 'google_language_translator','googlelanguagetranslator_css');
1570
+ register_setting( 'google_language_translator','googlelanguagetranslator_manage_translations');
1571
+ register_setting( 'google_language_translator','googlelanguagetranslator_multilanguage');
1572
+ register_setting( 'google_language_translator','googlelanguagetranslator_floating_widget');
1573
+ }
1574
+
1575
+ public function googlelanguagetranslator_active_cb() {
1576
+
1577
+ $option_name = 'googlelanguagetranslator_active' ;
1578
+ $new_value = 1;
1579
 
1580
+ if ( get_option( $option_name ) === false ) {
1581
+
1582
+ // The option does not exist, so we update it.
1583
+ update_option( $option_name, $new_value );
1584
+ }
1585
+
1586
+ $options = get_option (''.$option_name.'');
1587
+
1588
+ $html = '<input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" '.checked(1,$options,false).'/> &nbsp; Activate Google Language Translator?';
1589
+ echo $html;
1590
+ }
1591
+
1592
+ public function googlelanguagetranslator_language_cb() {
1593
+
1594
+ $option_name = 'googlelanguagetranslator_language';
1595
+ $new_value = 'en';
1596
+
1597
+ if ( get_option( $option_name ) === false ) {
1598
+
1599
+ // The option does not exist, so we update it.
1600
+ update_option( $option_name, $new_value );
1601
+ }
1602
+
1603
+ $options = get_option (''.$option_name.''); ?>
1604
+ <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language">
1605
+ <option value="af" <?php if($options=='af'){echo "selected";}?>>Afrikaans</option>
1606
+ <option value="sq" <?php if($options=='sq'){echo "selected";}?>>Albanian</option>
1607
+ <option value="ar" <?php if($options=='ar'){echo "selected";}?>>Arabic</option>
1608
+ <option value="hy" <?php if($options=='hy'){echo "selected";}?>>Armenian</option>
1609
+ <option value="az" <?php if($options=='az'){echo "selected";}?>>Azerbaijani</option>
1610
+ <option value="eu" <?php if($options=='eu'){echo "selected";}?>>Basque</option>
1611
+ <option value="be" <?php if($options=='be'){echo "selected";}?>>Belarusian</option>
1612
+ <option value="bn" <?php if($options=='bn'){echo "selected";}?>>Bengali</option>
1613
+ <option value="bs" <?php if($options=='bs'){echo "selected";}?>>Bosnian</option>
1614
+ <option value="bg" <?php if($options=='bg'){echo "selected";}?>>Bulgarian</option>
1615
+ <option value="ca" <?php if($options=='ca'){echo "selected";}?>>Catalan</option>
1616
+ <option value="ceb" <?php if($options=='ceb'){echo "selected";}?>>Cebuano</option>
1617
+ <option value="zh-CN" <?php if($options=='zh-CN'){echo "selected";}?>>Chinese</option>
1618
+ <option value="zh-TW" <?php if($options=='zh-TW'){echo "selected";}?>>Chinese (Han)</option>
1619
+ <option value="hr" <?php if($options=='hr'){echo "selected";}?>>Croatian</option>
1620
+ <option value="cs" <?php if($options=='cs'){echo "selected";}?>>Czech</option>
1621
+ <option value="da" <?php if($options=='da'){echo "selected";}?>>Danish</option>
1622
+ <option value="nl" <?php if($options=='nl'){echo "selected";}?>>Dutch</option>
1623
+ <option value="en" <?php if($options=='en'){echo "selected";}?>>English</option>
1624
+ <option value="eo" <?php if($options=='eo'){echo "selected";}?>>Esperanto</option>
1625
+ <option value="et" <?php if($options=='et'){echo "selected";}?>>Estonian</option>
1626
+ <option value="tl" <?php if($options=='tl'){echo "selected";}?>>Filipino</option>
1627
+ <option value="fi" <?php if($options=='fi'){echo "selected";}?>>Finnish</option>
1628
+ <option value="fr" <?php if($options=='fr'){echo "selected";}?>>French</option>
1629
+ <option value="gl" <?php if($options=='gl'){echo "selected";}?>>Galician</option>
1630
+ <option value="ka" <?php if($options=='ka'){echo "selected";}?>>Georgian</option>
1631
+ <option value="de" <?php if($options=='de'){echo "selected";}?>>German</option>
1632
+ <option value="el" <?php if($options=='el'){echo "selected";}?>>Greek</option>
1633
+ <option value="gu" <?php if($options=='gu'){echo "selected";}?>>Gujarati</option>
1634
+ <option value="ht" <?php if($options=='ht'){echo "selected";}?>>Haitian Creole</option>
1635
+ <option value="ha" <?php if($options=='ha'){echo "selected";}?>>Hausa</option>
1636
+ <option value="iw" <?php if($options=='iw'){echo "selected";}?>>Hebrew</option>
1637
+ <option value="hi" <?php if($options=='hi'){echo "selected";}?>>Hindi</option>
1638
+ <option value="hmn" <?php if($options=='hmn'){echo "selected";}?>>Hmong</option>
1639
+ <option value="hu" <?php if($options=='hu'){echo "selected";}?>>Hungarian</option>
1640
+ <option value="is" <?php if($options=='is'){echo "selected";}?>>Icelandic</option>
1641
+ <option value="ig" <?php if($options=='ig'){echo "selected";}?>>Igbo</option>
1642
+ <option value="id" <?php if($options=='id'){echo "selected";}?>>Indonesian</option>
1643
+ <option value="ga" <?php if($options=='ga'){echo "selected";}?>>Irish</option>
1644
+ <option value="it" <?php if($options=='it'){echo "selected";}?>>Italian</option>
1645
+ <option value="ja" <?php if($options=='ja'){echo "selected";}?>>Japanese</option>
1646
+ <option value="jw" <?php if($options=='jw'){echo "selected";}?>>Javanese</option>
1647
+ <option value="kn" <?php if($options=='kn'){echo "selected";}?>>Kannada</option>
1648
+ <option value="km" <?php if($options=='km'){echo "selected";}?>>Khmer</option>
1649
+ <option value="ko" <?php if($options=='ko'){echo "selected";}?>>Korean</option>
1650
+ <option value="lo" <?php if($options=='lo'){echo "selected";}?>>Lao</option>
1651
+ <option value="la" <?php if($options=='la'){echo "selected";}?>>Latin</option>
1652
+ <option value="lv" <?php if($options=='lv'){echo "selected";}?>>Latvian</option>
1653
+ <option value="lt" <?php if($options=='lt'){echo "selected";}?>>Lithuanian</option>
1654
+ <option value="mk" <?php if($options=='mk'){echo "selected";}?>>Macedonian</option>
1655
+ <option value="ms" <?php if($options=='ms'){echo "selected";}?>>Malay</option>
1656
+ <option value="mt" <?php if($options=='mt'){echo "selected";}?>>Maltese</option>
1657
+ <option value="mi" <?php if($options=='mi'){echo "selected";}?>>Maori</option>
1658
+ <option value="mr" <?php if($options=='mr'){echo "selected";}?>>Marathi</option>
1659
+ <option value="mn" <?php if($options=='mn'){echo "selected";}?>>Mongolian</option>
1660
+ <option value="ne" <?php if($options=='ne'){echo "selected";}?>>Nepali</option>
1661
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>Norwegian</option>
1662
+ <option value="fa" <?php if($options=='fa'){echo "selected";}?>>Persian</option>
1663
+ <option value="pl" <?php if($options=='pl'){echo "selected";}?>>Polish</option>
1664
+ <option value="pt" <?php if($options=='pt'){echo "selected";}?>>Portuguese</option>
1665
+ <option value="pa" <?php if($options=='pa'){echo "selected";}?>>Punjabi</option>
1666
+ <option value="ro" <?php if($options=='ro'){echo "selected";}?>>Romanian</option>
1667
+ <option value="ru" <?php if($options=='ru'){echo "selected";}?>>Russian</option>
1668
+ <option value="sr" <?php if($options=='sr'){echo "selected";}?>>Serbian</option>
1669
+ <option value="sk" <?php if($options=='sk'){echo "selected";}?>>Slovak</option>
1670
+ <option value="sl" <?php if($options=='sl'){echo "selected";}?>>Slovenian</option>
1671
+ <option value="so" <?php if($options=='so'){echo "selected";}?>>Somali</option>
1672
+ <option value="es" <?php if($options=='es'){echo "selected";}?>>Spanish</option>
1673
+ <option value="sw" <?php if($options=='sw'){echo "selected";}?>>Swahili</option>
1674
+ <option value="sv" <?php if($options=='sv'){echo "selected";}?>>Swedish</option>
1675
+ <option value="ta" <?php if($options=='ta'){echo "selected";}?>>Tamil</option>
1676
+ <option value="te" <?php if($options=='te'){echo "selected";}?>>Telugu</option>
1677
+ <option value="th" <?php if($options=='th'){echo "selected";}?>>Thai</option>
1678
+ <option value="tr" <?php if($options=='tr'){echo "selected";}?>>Turkish</option>
1679
+ <option value="uk" <?php if($options=='uk'){echo "selected";}?>>Ukranian</option>
1680
+ <option value="ur" <?php if($options=='ur'){echo "selected";}?>>Urdu</option>
1681
+ <option value="vi" <?php if($options=='vi'){echo "selected";}?>>Vietnamese</option>
1682
+ <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Welsh</option>
1683
+ <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Yiddish</option>
1684
+ <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Yoruba</option>
1685
+ <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Zulu</option>
1686
+
1687
+ </select>
1688
+ <?php
1689
  }
1690
+
1691
+ public function googlelanguagetranslator_language_option_cb() {
1692
+
1693
+ $option_name = 'googlelanguagetranslator_language_option' ;
1694
+ $new_value = 'all';
1695
+
1696
+ if ( get_option( $option_name ) === false ) {
1697
+
1698
+ // The option does not exist, so we update it.
1699
+ update_option( $option_name, $new_value );
1700
+ }
1701
+
1702
+ $options = get_option (''.$option_name.''); ?>
1703
+
1704
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="all" <?php if($options=='all'){echo "checked";}?>/> All Languages<br/>
1705
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="specific" <?php if($options=='specific'){echo "checked";}?>/> Specific Languages
1706
+ <?php
1707
+ }
1708
+
1709
+ public function language_display_settings_cb() {
1710
+ $defaults = array (
1711
+ 'en' => 1
1712
+ );
1713
+
1714
+ $option_name = 'language_display_settings' ;
1715
+ $new_value = $defaults;
1716
+
1717
+ if ( get_option( $option_name ) === false ) {
1718
+
1719
+ // The option does not exist, so we update it.
1720
+ update_option( $option_name, $new_value );
1721
+ }
1722
+
1723
+ $get_language_choices = get_option (''.$option_name.'');
1724
+
1725
+ if (!isset ( $get_language_choices ['af'] ) ) {
1726
+ $get_language_choices['af'] = 0;
1727
+ }
1728
+
1729
+ if (!isset ( $get_language_choices ['sq'] ) ) {
1730
+ $get_language_choices['sq'] = 0;
1731
+ }
1732
+
1733
+ if (!isset ( $get_language_choices ['ar'] ) ) {
1734
+ $get_language_choices['ar'] = 0;
1735
+ }
1736
+
1737
+ if (!isset ( $get_language_choices ['hy'] ) ) {
1738
+ $get_language_choices['hy'] = 0;
1739
+ }
1740
+
1741
+ if (!isset ( $get_language_choices ['az'] ) ) {
1742
+ $get_language_choices['az'] = 0;
1743
+ }
1744
+
1745
+ if (!isset ( $get_language_choices ['eu'] ) ) {
1746
+ $get_language_choices['eu'] = 0;
1747
+ }
1748
+
1749
+ if (!isset ( $get_language_choices ['be'] ) ) {
1750
+ $get_language_choices['be'] = 0;
1751
+ }
1752
+
1753
+ if (!isset ( $get_language_choices ['bn'] ) ) {
1754
+ $get_language_choices['bn'] = 0;
1755
+ }
1756
+
1757
+ if (!isset ( $get_language_choices ['bs'] ) ) {
1758
+ $get_language_choices['bs'] = 0;
1759
+ }
1760
+
1761
+ if (!isset ( $get_language_choices ['bg'] ) ) {
1762
+ $get_language_choices['bg'] = 0;
1763
+ }
1764
+
1765
+ if (!isset ( $get_language_choices ['ca'] ) ) {
1766
+ $get_language_choices['ca'] = 0;
1767
+ }
1768
+
1769
+ if (!isset ( $get_language_choices ['ceb'] ) ) {
1770
+ $get_language_choices['ceb'] = 0;
1771
+ }
1772
+
1773
+ if (!isset ( $get_language_choices ['zh-CN'] ) ) {
1774
+ $get_language_choices['zh-CN'] = 0;
1775
+ }
1776
+
1777
+ if (!isset ( $get_language_choices ['zh-TW'] ) ) {
1778
+ $get_language_choices['zh-TW'] = 0;
1779
+ }
1780
+
1781
+ if (!isset ( $get_language_choices ['hr'] ) ) {
1782
+ $get_language_choices['hr'] = 0;
1783
+ }
1784
+
1785
+ if (!isset ( $get_language_choices ['cs'] ) ) {
1786
+ $get_language_choices['cs'] = 0;
1787
+ }
1788
+
1789
+ if (!isset ( $get_language_choices ['da'] ) ) {
1790
+ $get_language_choices['da'] = 0;
1791
+ }
1792
+
1793
+ if (!isset ( $get_language_choices ['nl'] ) ) {
1794
+ $get_language_choices['nl'] = 0;
1795
+ }
1796
+
1797
+ if (!isset ( $get_language_choices ['en'] ) ) {
1798
+ $get_language_choices['en'] = 1;
1799
+ }
1800
+
1801
+ if (!isset ( $get_language_choices ['eo'] ) ) {
1802
+ $get_language_choices['eo'] = 0;
1803
+ }
1804
+
1805
+ if (!isset ( $get_language_choices ['et'] ) ) {
1806
+ $get_language_choices['et'] = 0;
1807
+ }
1808
+
1809
+ if (!isset ( $get_language_choices ['tl'] ) ) {
1810
+ $get_language_choices['tl'] = 0;
1811
+ }
1812
+
1813
+ if (!isset ( $get_language_choices ['fi'] ) ) {
1814
+ $get_language_choices['fi'] = 0;
1815
+ }
1816
+
1817
+ if (!isset ( $get_language_choices ['fr'] ) ) {
1818
+ $get_language_choices['fr'] = 0;
1819
+ }
1820
+
1821
+ if (!isset ( $get_language_choices ['gl'] ) ) {
1822
+ $get_language_choices['gl'] = 0;
1823
+ }
1824
+
1825
+ if (!isset ( $get_language_choices ['ka'] ) ) {
1826
+ $get_language_choices['ka'] = 0;
1827
+ }
1828
+
1829
+ if (!isset ( $get_language_choices ['de'] ) ) {
1830
+ $get_language_choices['de'] = 0;
1831
+ }
1832
+
1833
+ if (!isset ( $get_language_choices ['el'] ) ) {
1834
+ $get_language_choices['el'] = 0;
1835
+ }
1836
+
1837
+ if (!isset ( $get_language_choices ['gu'] ) ) {
1838
+ $get_language_choices['gu'] = 0;
1839
+ }
1840
+
1841
+ if (!isset ( $get_language_choices ['ht'] ) ) {
1842
+ $get_language_choices['ht'] = 0;
1843
+ }
1844
+
1845
+ if (!isset ( $get_language_choices ['ha'] ) ) {
1846
+ $get_language_choices['ha'] = 0;
1847
+ }
1848
+
1849
+ if (!isset ( $get_language_choices ['iw'] ) ) {
1850
+ $get_language_choices['iw'] = 0;
1851
+ }
1852
+
1853
+ if (!isset ( $get_language_choices ['hi'] ) ) {
1854
+ $get_language_choices['hi'] = 0;
1855
+ }
1856
+
1857
+ if (!isset ( $get_language_choices ['hmn'] ) ) {
1858
+ $get_language_choices['hmn'] = 0;
1859
+ }
1860
+
1861
+ if (!isset ( $get_language_choices ['hu'] ) ) {
1862
+ $get_language_choices['hu'] = 0;
1863
+ }
1864
+
1865
+ if (!isset ( $get_language_choices ['is'] ) ) {
1866
+ $get_language_choices['is'] = 0;
1867
+ }
1868
+
1869
+ if (!isset ( $get_language_choices ['ig'] ) ) {
1870
+ $get_language_choices['ig'] = 0;
1871
+ }
1872
+
1873
+ if (!isset ( $get_language_choices ['id'] ) ) {
1874
+ $get_language_choices['id'] = 0;
1875
+ }
1876
+
1877
+ if (!isset ( $get_language_choices ['ga'] ) ) {
1878
+ $get_language_choices['ga'] = 0;
1879
+ }
1880
+
1881
+ if (!isset ( $get_language_choices ['it'] ) ) {
1882
+ $get_language_choices['it'] = 0;
1883
+ }
1884
+
1885
+ if (!isset ( $get_language_choices ['ja'] ) ) {
1886
+ $get_language_choices['ja'] = 0;
1887
+ }
1888
+
1889
+ if (!isset ( $get_language_choices ['jw'] ) ) {
1890
+ $get_language_choices['jw'] = 0;
1891
+ }
1892
+
1893
+ if (!isset ( $get_language_choices ['kn'] ) ) {
1894
+ $get_language_choices['kn'] = 0;
1895
+ }
1896
+
1897
+ if (!isset ( $get_language_choices ['km'] ) ) {
1898
+ $get_language_choices['km'] = 0;
1899
+ }
1900
+
1901
+ if (!isset ( $get_language_choices ['ko'] ) ) {
1902
+ $get_language_choices['ko'] = 0;
1903
+ }
1904
+
1905
+ if (!isset ( $get_language_choices ['lo'] ) ) {
1906
+ $get_language_choices['lo'] = 0;
1907
+ }
1908
+
1909
+ if (!isset ( $get_language_choices ['la'] ) ) {
1910
+ $get_language_choices['la'] = 0;
1911
+ }
1912
+
1913
+ if (!isset ( $get_language_choices ['lv'] ) ) {
1914
+ $get_language_choices['lv'] = 0;
1915
+ }
1916
+
1917
+ if (!isset ( $get_language_choices ['lt'] ) ) {
1918
+ $get_language_choices['lt'] = 0;
1919
+ }
1920
+
1921
+ if (!isset ( $get_language_choices ['mk'] ) ) {
1922
+ $get_language_choices['mk'] = 0;
1923
+ }
1924
+
1925
+ if (!isset ( $get_language_choices ['ms'] ) ) {
1926
+ $get_language_choices['ms'] = 0;
1927
+ }
1928
+
1929
+ if (!isset ( $get_language_choices ['mt'] ) ) {
1930
+ $get_language_choices['mt'] = 0;
1931
+ }
1932
+
1933
+ if (!isset ( $get_language_choices ['mi'] ) ) {
1934
+ $get_language_choices['mi'] = 0;
1935
+ }
1936
+
1937
+ if (!isset ( $get_language_choices ['mr'] ) ) {
1938
+ $get_language_choices['mr'] = 0;
1939
+ }
1940
+
1941
+ if (!isset ( $get_language_choices ['mn'] ) ) {
1942
+ $get_language_choices['mn'] = 0;
1943
+ }
1944
+
1945
+ if (!isset ( $get_language_choices ['ne'] ) ) {
1946
+ $get_language_choices['ne'] = 0;
1947
+ }
1948
+
1949
+ if (!isset ( $get_language_choices ['no'] ) ) {
1950
+ $get_language_choices['no'] = 0;
1951
+ }
1952
+
1953
+ if (!isset ( $get_language_choices ['fa'] ) ) {
1954
+ $get_language_choices['fa'] = 0;
1955
+ }
1956
+
1957
+ if (!isset ( $get_language_choices ['pl'] ) ) {
1958
+ $get_language_choices['pl'] = 0;
1959
+ }
1960
+
1961
+ if (!isset ( $get_language_choices ['pt'] ) ) {
1962
+ $get_language_choices['pt'] = 0;
1963
+ }
1964
+
1965
+ if (!isset ( $get_language_choices ['pa'] ) ) {
1966
+ $get_language_choices['pa'] = 0;
1967
+ }
1968
+
1969
+ if (!isset ( $get_language_choices ['ro'] ) ) {
1970
+ $get_language_choices['ro'] = 0;
1971
+ }
1972
+
1973
+ if (!isset ( $get_language_choices ['ru'] ) ) {
1974
+ $get_language_choices['ru'] = 0;
1975
+ }
1976
+
1977
+ if (!isset ( $get_language_choices ['sr'] ) ) {
1978
+ $get_language_choices['sr'] = 0;
1979
+ }
1980
+
1981
+ if (!isset ( $get_language_choices ['sk'] ) ) {
1982
+ $get_language_choices['sk'] = 0;
1983
+ }
1984
+
1985
+ if (!isset ( $get_language_choices ['sl'] ) ) {
1986
+ $get_language_choices['sl'] = 0;
1987
+ }
1988
+
1989
+ if (!isset ( $get_language_choices ['so'] ) ) {
1990
+ $get_language_choices['so'] = 0;
1991
+ }
1992
+
1993
+ if (!isset ( $get_language_choices ['es'] ) ) {
1994
+ $get_language_choices['es'] = 0;
1995
+ }
1996
+
1997
+ if (!isset ( $get_language_choices ['sw'] ) ) {
1998
+ $get_language_choices['sw'] = 0;
1999
+ }
2000
+
2001
+ if (!isset ( $get_language_choices ['sv'] ) ) {
2002
+ $get_language_choices['sv'] = 0;
2003
+ }
2004
+
2005
+ if (!isset ( $get_language_choices ['ta'] ) ) {
2006
+ $get_language_choices['ta'] = 0;
2007
+ }
2008
+
2009
+ if (!isset ( $get_language_choices ['te'] ) ) {
2010
+ $get_language_choices['te'] = 0;
2011
+ }
2012
+
2013
+ if (!isset ( $get_language_choices ['th'] ) ) {
2014
+ $get_language_choices['th'] = 0;
2015
+ }
2016
+
2017
+ if (!isset ( $get_language_choices ['tr'] ) ) {
2018
+ $get_language_choices['tr'] = 0;
2019
+ }
2020
+
2021
+ if (!isset ( $get_language_choices ['uk'] ) ) {
2022
+ $get_language_choices['uk'] = 0;
2023
+ }
2024
+
2025
+ if (!isset ( $get_language_choices ['ur'] ) ) {
2026
+ $get_language_choices['ur'] = 0;
2027
+ }
2028
+
2029
+ if (!isset ( $get_language_choices ['vi'] ) ) {
2030
+ $get_language_choices['vi'] = 0;
2031
+ }
2032
+
2033
+ if (!isset ( $get_language_choices ['cy'] ) ) {
2034
+ $get_language_choices['cy'] = 0;
2035
+ }
2036
+
2037
+ if (!isset ( $get_language_choices ['yi'] ) ) {
2038
+ $get_language_choices['yi'] = 0;
2039
+ }
2040
+
2041
+ if (!isset ( $get_language_choices ['yo'] ) ) {
2042
+ $get_language_choices['yo'] = 0;
2043
+ }
2044
+
2045
+ if (!isset ( $get_language_choices ['zu'] ) ) {
2046
+ $get_language_choices['zu'] = 0;
2047
+ } ?>
2048
+
2049
+ <div class="languages" style="width:25%; float:left">
2050
+ <div><input type="checkbox" name="language_display_settings[af]" value="1" <?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?>/> Afrikaans</div>
2051
+ <div><input type="checkbox" name="language_display_settings[sq]" value="1" <?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?>/> Albanian</div>
2052
+ <div><input type="checkbox" name="language_display_settings[ar]" value="1" <?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?>/> Arabic</div>
2053
+ <div><input type="checkbox" name="language_display_settings[hy]" value="1" <?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?>/> Armenian</div>
2054
+ <div><input type="checkbox" name="language_display_settings[az]" value="1" <?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?>/> Azerbaijani</div>
2055
+ <div><input type="checkbox" name="language_display_settings[eu]" value="1" <?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?>/> Basque</div>
2056
+ <div><input type="checkbox" name="language_display_settings[be]" value="1" <?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?>/> Belarusian</div>
2057
+ <div><input type="checkbox" name="language_display_settings[bn]" value="1" <?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?>/> Bengali</div>
2058
+ <div><input type="checkbox" name="language_display_settings[bs]" value="1" <?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?>/> Bosnian</div>
2059
+ <div><input type="checkbox" name="language_display_settings[bg]" value="1" <?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?>/> Bulgarian</div>
2060
+ <div><input type="checkbox" name="language_display_settings[ca]" value="1" <?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?>/> Catalan</div>
2061
+ <div><input type="checkbox" name="language_display_settings[ceb]" value="1" <?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?>/> Cebuano</div>
2062
+ <div><input type="checkbox" name="language_display_settings[zh-CN]" value="1" <?php if ( 1 == $get_language_choices['zh-CN'] ) echo 'checked="checked"'; ?>/> Chinese</div>
2063
+ <div><input type="checkbox" name="language_display_settings[zh-TW]" value="1" <?php if ( 1 == $get_language_choices['zh-TW'] ) echo 'checked="checked"'; ?>/> Chinese (Han)</div>
2064
+ <div><input type="checkbox" name="language_display_settings[hr]" value="1" <?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?>/> Croatian</div>
2065
+ <div><input type="checkbox" name="language_display_settings[cs]" value="1" <?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?>/> Czech</div>
2066
+ <div><input type="checkbox" name="language_display_settings[da]" value="1" <?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?>/> Danish</div>
2067
+ <div><input type="checkbox" name="language_display_settings[nl]" value="1" <?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?>/> Dutch</div>
2068
+ <div><input type="checkbox" name="language_display_settings[en]" value="1" <?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?>/> English</div>
2069
+ <div><input type="checkbox" name="language_display_settings[eo]" value="1" <?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?>/> Esperanto</div>
2070
+ <div><input type="checkbox" name="language_display_settings[et]" value="1" <?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?>/> Estonian</div>
2071
+ </div>
2072
+
2073
+ <div class="languages" style="width:25%; float:left">
2074
+ <div><input type="checkbox" name="language_display_settings[tl]" value="1" <?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?>/> Filipino</div>
2075
+ <div><input type="checkbox" name="language_display_settings[fi]" value="1" <?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?>/> Finnish</div>
2076
+ <div><input type="checkbox" name="language_display_settings[fr]" value="1" <?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?>/> French</div>
2077
+ <div><input type="checkbox" name="language_display_settings[gl]" value="1" <?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?>/> Galician</div>
2078
+ <div><input type="checkbox" name="language_display_settings[ka]" value="1" <?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?>/> Georgian</div>
2079
+ <div><input type="checkbox" name="language_display_settings[de]" value="1" <?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?>/> German</div>
2080
+ <div><input type="checkbox" name="language_display_settings[el]" value="1" <?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?>/> Greek</div>
2081
+ <div><input type="checkbox" name="language_display_settings[gu]" value="1" <?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?>/> Gujarati</div>
2082
+ <div><input type="checkbox" name="language_display_settings[ht]" value="1" <?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?>/> Haitian Creole</div>
2083
+ <div><input type="checkbox" name="language_display_settings[ha]" value="1" <?php if ( 1 == $get_language_choices['ha'] ) echo 'checked="checked"'; ?>/> Hausa</div>
2084
+ <div><input type="checkbox" name="language_display_settings[iw]" value="1" <?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?>/> Hebrew</div>
2085
+ <div><input type="checkbox" name="language_display_settings[hi]" value="1" <?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?>/> Hindi</div>
2086
+ <div><input type="checkbox" name="language_display_settings[hmn]" value="1" <?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?>/> Hmong</div>
2087
+ <div><input type="checkbox" name="language_display_settings[hu]" value="1" <?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?>/> Hungarian</div>
2088
+ <div><input type="checkbox" name="language_display_settings[is]" value="1" <?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?>/> Icelandic</div>
2089
+ <div><input type="checkbox" name="language_display_settings[ig]" value="1" <?php if ( 1 == $get_language_choices['ig'] ) echo 'checked="checked"'; ?>/> Igbo</div>
2090
+ <div><input type="checkbox" name="language_display_settings[id]" value="1" <?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?>/> Indonesian</div>
2091
+ <div><input type="checkbox" name="language_display_settings[ga]" value="1" <?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?>/> Irish</div>
2092
+ <div><input type="checkbox" name="language_display_settings[it]" value="1" <?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?>/> Italian</div>
2093
+ <div><input type="checkbox" name="language_display_settings[ja]" value="1" <?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?>/> Japanese</div>
2094
+ <div><input type="checkbox" name="language_display_settings[jw]" value="1" <?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?>/> Javanese</div>
2095
+ </div>
2096
+
2097
+ <div class="languages" style="width:25%; float:left">
2098
+ <div><input type="checkbox" name="language_display_settings[kn]" value="1" <?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?>/> Kannada</div>
2099
+ <div><input type="checkbox" name="language_display_settings[km]" value="1" <?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?>/> Khmer</div>
2100
+ <div><input type="checkbox" name="language_display_settings[ko]" value="1" <?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?>/> Korean</div>
2101
+ <div><input type="checkbox" name="language_display_settings[lo]" value="1" <?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?>/> Lao</div>
2102
+ <div><input type="checkbox" name="language_display_settings[la]" value="1" <?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?>/> Latin</div>
2103
+ <div><input type="checkbox" name="language_display_settings[lv]" value="1" <?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?>/> Latvian</div>
2104
+ <div><input type="checkbox" name="language_display_settings[lt]" value="1" <?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?>/> Lithuanian</div>
2105
+ <div><input type="checkbox" name="language_display_settings[mk]" value="1" <?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?>/> Macedonian</div>
2106
+ <div><input type="checkbox" name="language_display_settings[ms]" value="1" <?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?>/> Malay</div>
2107
+ <div><input type="checkbox" name="language_display_settings[mt]" value="1" <?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?>/> Maltese</div>
2108
+ <div><input type="checkbox" name="language_display_settings[mi]" value="1" <?php if ( 1 == $get_language_choices['mi'] ) echo 'checked="checked"'; ?>/> Maori</div>
2109
+ <div><input type="checkbox" name="language_display_settings[mr]" value="1" <?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?>/> Marathi</div>
2110
+ <div><input type="checkbox" name="language_display_settings[mn]" value="1" <?php if ( 1 == $get_language_choices['mn'] ) echo 'checked="checked"'; ?>/> Mongolian</div>
2111
+ <div><input type="checkbox" name="language_display_settings[ne]" value="1" <?php if ( 1 == $get_language_choices['ne'] ) echo 'checked="checked"'; ?>/> Nepali</div>
2112
+ <div><input type="checkbox" name="language_display_settings[no]" value="1" <?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?>/> Norwegian</div>
2113
+ <div><input type="checkbox" name="language_display_settings[fa]" value="1" <?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?>/> Persian</div>
2114
+ <div><input type="checkbox" name="language_display_settings[pl]" value="1" <?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?>/> Polish</div>
2115
+ <div><input type="checkbox" name="language_display_settings[pt]" value="1" <?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?>/> Portuguese</div>
2116
+ <div><input type="checkbox" name="language_display_settings[pa]" value="1" <?php if ( 1 == $get_language_choices['pa'] ) echo 'checked="checked"'; ?>/> Punjabi</div>
2117
+ <div><input type="checkbox" name="language_display_settings[ro]" value="1" <?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?>/> Romanian</div>
2118
+ <div><input type="checkbox" name="language_display_settings[ru]" value="1" <?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?>/> Russian</div>
2119
+ </div>
2120
+
2121
+ <div class="languages" style="width:25%; float:left">
2122
+ <div><input type="checkbox" name="language_display_settings[sr]" value="1" <?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?>/> Serbian</div>
2123
+ <div><input type="checkbox" name="language_display_settings[sk]" value="1" <?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?>/> Slovak</div>
2124
+ <div><input type="checkbox" name="language_display_settings[sl]" value="1" <?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?>/> Slovenian</div>
2125
+ <div><input type="checkbox" name="language_display_settings[so]" value="1" <?php if ( 1 == $get_language_choices['so'] ) echo 'checked="checked"'; ?>/> Somali</div>
2126
+ <div><input type="checkbox" name="language_display_settings[es]" value="1" <?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?>/> Spanish</div>
2127
+ <div><input type="checkbox" name="language_display_settings[sw]" value="1" <?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?>/> Swahili</div>
2128
+ <div><input type="checkbox" name="language_display_settings[sv]" value="1" <?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?>/> Swedish</div>
2129
+ <div><input type="checkbox" name="language_display_settings[ta]" value="1" <?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?>/> Tamil</div>
2130
+ <div><input type="checkbox" name="language_display_settings[te]" value="1" <?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?>/> Telugu</div>
2131
+ <div><input type="checkbox" name="language_display_settings[th]" value="1" <?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?>/> Thai</div>
2132
+ <div><input type="checkbox" name="language_display_settings[tr]" value="1" <?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?>/> Turkish</div>
2133
+ <div><input type="checkbox" name="language_display_settings[uk]" value="1" <?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?>/> Ukranian</div>
2134
+ <div><input type="checkbox" name="language_display_settings[ur]" value="1" <?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?>/> Urdu</div>
2135
+ <div><input type="checkbox" name="language_display_settings[vi]" value="1" <?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?>/> Vietnamese</div>
2136
+ <div><input type="checkbox" name="language_display_settings[cy]" value="1" <?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?>/> Welsh</div>
2137
+ <div><input type="checkbox" name="language_display_settings[yi]" value="1" <?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?>/> Yiddish</div>
2138
+ <div><input type="checkbox" name="language_display_settings[yo]" value="1" <?php if ( 1 == $get_language_choices['yo'] ) echo 'checked="checked"'; ?>/> Yoruba</div>
2139
+ <div><input type="checkbox" name="language_display_settings[zu]" value="1" <?php if ( 1 == $get_language_choices['zu'] ) echo 'checked="checked"'; ?>/> Zulu</div>
2140
+
2141
+ </div>
2142
+
2143
+ <div style="clear:both"></div>
2144
+ <?php }
2145
+
2146
+ public function googlelanguagetranslator_flags_cb() {
2147
+
2148
+ $option_name = 'googlelanguagetranslator_flags' ;
2149
+ $new_value = 'show_flags';
2150
+
2151
+ if ( get_option( $option_name ) === false ) {
2152
+
2153
+ // The option does not exist, so we update it.
2154
+ update_option( $option_name, $new_value );
2155
+ }
2156
+
2157
+ $options = get_option (''.$option_name.''); ?>
2158
+
2159
+ <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="show_flags" <?php if($options=='show_flags'){echo "checked";}?>/> Yes, show flag images<br/>
2160
+ <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="hide_flags" <?php if($options=='hide_flags'){echo "checked";}?>/> No, hide flag images
2161
+ <?php
2162
+ }
2163
+
2164
+ public function flag_display_settings_cb() {
2165
+ $defaults = array(
2166
+ 'flag-en' => 1
2167
+ );
2168
+
2169
+ $option_name = 'flag_display_settings' ;
2170
+ $new_value = $defaults;
2171
+
2172
+ if ( get_option( $option_name ) === false ) {
2173
+
2174
+ // The option does not exist, so we update it.
2175
+ update_option( $option_name, $new_value );
2176
+ }
2177
+
2178
+ $get_flag_choices = get_option (''.$option_name.'');
2179
+
2180
+ if (!isset ( $get_flag_choices ['flag-af'] ) ) {
2181
+ $get_flag_choices['flag-af'] = 0;
2182
+ }
2183
+
2184
+ if (!isset ( $get_flag_choices ['flag-sq'] ) ) {
2185
+ $get_flag_choices['flag-sq'] = 0;
2186
+ }
2187
+
2188
+ if (!isset ( $get_flag_choices ['flag-ar'] ) ) {
2189
+ $get_flag_choices['flag-ar'] = 0;
2190
+ }
2191
+
2192
+ if (!isset ( $get_flag_choices ['flag-hy'] ) ) {
2193
+ $get_flag_choices['flag-hy'] = 0;
2194
+ }
2195
+
2196
+ if (!isset ( $get_flag_choices ['flag-az'] ) ) {
2197
+ $get_flag_choices['flag-az'] = 0;
2198
+ }
2199
+
2200
+ if (!isset ( $get_flag_choices ['flag-eu'] ) ) {
2201
+ $get_flag_choices['flag-eu'] = 0;
2202
+ }
2203
+
2204
+ if (!isset ( $get_flag_choices ['flag-be'] ) ) {
2205
+ $get_flag_choices['flag-be'] = 0;
2206
+ }
2207
+
2208
+ if (!isset ( $get_flag_choices ['flag-bn'] ) ) {
2209
+ $get_flag_choices['flag-bn'] = 0;
2210
+ }
2211
+
2212
+ if (!isset ( $get_flag_choices ['flag-bs'] ) ) {
2213
+ $get_flag_choices['flag-bs'] = 0;
2214
+ }
2215
+
2216
+ if (!isset ( $get_flag_choices ['flag-bg'] ) ) {
2217
+ $get_flag_choices['flag-bg'] = 0;
2218
+ }
2219
+
2220
+ if (!isset ( $get_flag_choices ['flag-ca'] ) ) {
2221
+ $get_flag_choices['flag-ca'] = 0;
2222
+ }
2223
+
2224
+ if (!isset ( $get_flag_choices ['flag-ceb'] ) ) {
2225
+ $get_flag_choices['flag-ceb'] = 0;
2226
+ }
2227
+
2228
+ if (!isset ( $get_flag_choices ['flag-zh-CN'] ) ) {
2229
+ $get_flag_choices['flag-zh-CN'] = 0;
2230
+ }
2231
+
2232
+ if (!isset ( $get_flag_choices ['flag-zh-TW'] ) ) {
2233
+ $get_flag_choices['flag-zh-TW'] = 0;
2234
+ }
2235
+
2236
+ if (!isset ( $get_flag_choices ['flag-hr'] ) ) {
2237
+ $get_flag_choices['flag-hr'] = 0;
2238
+ }
2239
+
2240
+ if (!isset ( $get_flag_choices ['flag-cs'] ) ) {
2241
+ $get_flag_choices['flag-cs'] = 0;
2242
+ }
2243
+
2244
+ if (!isset ( $get_flag_choices ['flag-da'] ) ) {
2245
+ $get_flag_choices['flag-da'] = 0;
2246
+ }
2247
+
2248
+ if (!isset ( $get_flag_choices ['flag-nl'] ) ) {
2249
+ $get_flag_choices['flag-nl'] = 0;
2250
+ }
2251
+
2252
+ if (!isset ( $get_flag_choices ['flag-en'] ) ) {
2253
+ $get_flag_choices['flag-en'] = 1;
2254
+ }
2255
+
2256
+ if (!isset ( $get_flag_choices ['flag-eo'] ) ) {
2257
+ $get_flag_choices['flag-eo'] = 0;
2258
+ }
2259
+
2260
+ if (!isset ( $get_flag_choices ['flag-et'] ) ) {
2261
+ $get_flag_choices['flag-et'] = 0;
2262
+ }
2263
+
2264
+ if (!isset ( $get_flag_choices ['flag-tl'] ) ) {
2265
+ $get_flag_choices['flag-tl'] = 0;
2266
+ }
2267
+
2268
+ if (!isset ( $get_flag_choices ['flag-fi'] ) ) {
2269
+ $get_flag_choices['flag-fi'] = 0;
2270
+ }
2271
+
2272
+ if (!isset ( $get_flag_choices ['flag-fr'] ) ) {
2273
+ $get_flag_choices['flag-fr'] = 0;
2274
+ }
2275
+
2276
+ if (!isset ( $get_flag_choices ['flag-gl'] ) ) {
2277
+ $get_flag_choices['flag-gl'] = 0;
2278
+ }
2279
+
2280
+ if (!isset ( $get_flag_choices ['flag-ka'] ) ) {
2281
+ $get_flag_choices['flag-ka'] = 0;
2282
+ }
2283
+
2284
+ if (!isset ( $get_flag_choices ['flag-de'] ) ) {
2285
+ $get_flag_choices['flag-de'] = 0;
2286
+ }
2287
+
2288
+ if (!isset ( $get_flag_choices ['flag-el'] ) ) {
2289
+ $get_flag_choices['flag-el'] = 0;
2290
+ }
2291
+
2292
+ if (!isset ( $get_flag_choices ['flag-gu'] ) ) {
2293
+ $get_flag_choices['flag-gu'] = 0;
2294
+ }
2295
+
2296
+ if (!isset ( $get_flag_choices ['flag-ht'] ) ) {
2297
+ $get_flag_choices['flag-ht'] = 0;
2298
+ }
2299
+
2300
+ if (!isset ( $get_flag_choices ['flag-ha'] ) ) {
2301
+ $get_flag_choices['flag-ha'] = 0;
2302
+ }
2303
+
2304
+ if (!isset ( $get_flag_choices ['flag-iw'] ) ) {
2305
+ $get_flag_choices['flag-iw'] = 0;
2306
+ }
2307
+
2308
+ if (!isset ( $get_flag_choices ['flag-hi'] ) ) {
2309
+ $get_flag_choices['flag-hi'] = 0;
2310
+ }
2311
+
2312
+ if (!isset ( $get_flag_choices ['flag-hmn'] ) ) {
2313
+ $get_flag_choices['flag-hmn'] = 0;
2314
+ }
2315
+
2316
+ if (!isset ( $get_flag_choices ['flag-hu'] ) ) {
2317
+ $get_flag_choices['flag-hu'] = 0;
2318
+ }
2319
+
2320
+ if (!isset ( $get_flag_choices ['flag-is'] ) ) {
2321
+ $get_flag_choices['flag-is'] = 0;
2322
+ }
2323
+
2324
+ if (!isset ( $get_flag_choices ['flag-ig'] ) ) {
2325
+ $get_flag_choices['flag-ig'] = 0;
2326
+ }
2327
+
2328
+ if (!isset ( $get_flag_choices ['flag-id'] ) ) {
2329
+ $get_flag_choices['flag-id'] = 0;
2330
+ }
2331
+
2332
+ if (!isset ( $get_flag_choices ['flag-ga'] ) ) {
2333
+ $get_flag_choices['flag-ga'] = 0;
2334
+ }
2335
+
2336
+ if (!isset ( $get_flag_choices ['flag-it'] ) ) {
2337
+ $get_flag_choices['flag-it'] = 0;
2338
+ }
2339
+
2340
+ if (!isset ( $get_flag_choices ['flag-ja'] ) ) {
2341
+ $get_flag_choices['flag-ja'] = 0;
2342
+ }
2343
+
2344
+ if (!isset ( $get_flag_choices ['flag-jw'] ) ) {
2345
+ $get_flag_choices['flag-jw'] = 0;
2346
+ }
2347
+
2348
+ if (!isset ( $get_flag_choices ['flag-kn'] ) ) {
2349
+ $get_flag_choices['flag-kn'] = 0;
2350
+ }
2351
+
2352
+ if (!isset ( $get_flag_choices ['flag-km'] ) ) {
2353
+ $get_flag_choices['flag-km'] = 0;
2354
+ }
2355
+
2356
+ if (!isset ( $get_flag_choices ['flag-ko'] ) ) {
2357
+ $get_flag_choices['flag-ko'] = 0;
2358
+ }
2359
+
2360
+ if (!isset ( $get_flag_choices ['flag-lo'] ) ) {
2361
+ $get_flag_choices['flag-lo'] = 0;
2362
+ }
2363
+
2364
+ if (!isset ( $get_flag_choices ['flag-la'] ) ) {
2365
+ $get_flag_choices['flag-la'] = 0;
2366
+ }
2367
+
2368
+ if (!isset ( $get_flag_choices ['flag-lv'] ) ) {
2369
+ $get_flag_choices['flag-lv'] = 0;
2370
+ }
2371
+
2372
+ if (!isset ( $get_flag_choices ['flag-lt'] ) ) {
2373
+ $get_flag_choices['flag-lt'] = 0;
2374
+ }
2375
+
2376
+ if (!isset ( $get_flag_choices ['flag-mk'] ) ) {
2377
+ $get_flag_choices['flag-mk'] = 0;
2378
+ }
2379
+
2380
+ if (!isset ( $get_flag_choices ['flag-ms'] ) ) {
2381
+ $get_flag_choices['flag-ms'] = 0;
2382
+ }
2383
+
2384
+ if (!isset ( $get_flag_choices ['flag-mt'] ) ) {
2385
+ $get_flag_choices['flag-mt'] = 0;
2386
+ }
2387
+
2388
+ if (!isset ( $get_flag_choices ['flag-mi'] ) ) {
2389
+ $get_flag_choices['flag-mi'] = 0;
2390
+ }
2391
+
2392
+ if (!isset ( $get_flag_choices ['flag-mr'] ) ) {
2393
+ $get_flag_choices['flag-mr'] = 0;
2394
+ }
2395
+
2396
+ if (!isset ( $get_flag_choices ['flag-mn'] ) ) {
2397
+ $get_flag_choices['flag-mn'] = 0;
2398
+ }
2399
+
2400
+ if (!isset ( $get_flag_choices ['flag-ne'] ) ) {
2401
+ $get_flag_choices['flag-ne'] = 0;
2402
+ }
2403
+
2404
+ if (!isset ( $get_flag_choices ['flag-no'] ) ) {
2405
+ $get_flag_choices['flag-no'] = 0;
2406
+ }
2407
+
2408
+ if (!isset ( $get_flag_choices ['flag-fa'] ) ) {
2409
+ $get_flag_choices['flag-fa'] = 0;
2410
+ }
2411
+
2412
+ if (!isset ( $get_flag_choices ['flag-pl'] ) ) {
2413
+ $get_flag_choices['flag-pl'] = 0;
2414
+ }
2415
+
2416
+ if (!isset ( $get_flag_choices ['flag-pt'] ) ) {
2417
+ $get_flag_choices['flag-pt'] = 0;
2418
+ }
2419
+
2420
+ if (!isset ( $get_flag_choices ['flag-pa'] ) ) {
2421
+ $get_flag_choices['flag-pa'] = 0;
2422
+ }
2423
+
2424
+ if (!isset ( $get_flag_choices ['flag-ro'] ) ) {
2425
+ $get_flag_choices['flag-ro'] = 0;
2426
+ }
2427
+
2428
+ if (!isset ( $get_flag_choices ['flag-ru'] ) ) {
2429
+ $get_flag_choices['flag-ru'] = 0;
2430
+ }
2431
+
2432
+ if (!isset ( $get_flag_choices ['flag-sr'] ) ) {
2433
+ $get_flag_choices['flag-sr'] = 0;
2434
+ }
2435
+
2436
+ if (!isset ( $get_flag_choices ['flag-sk'] ) ) {
2437
+ $get_flag_choices['flag-sk'] = 0;
2438
+ }
2439
+
2440
+ if (!isset ( $get_flag_choices ['flag-sl'] ) ) {
2441
+ $get_flag_choices['flag-sl'] = 0;
2442
+ }
2443
+
2444
+ if (!isset ( $get_flag_choices ['flag-so'] ) ) {
2445
+ $get_flag_choices['flag-so'] = 0;
2446
+ }
2447
+
2448
+ if (!isset ( $get_flag_choices ['flag-so'] ) ) {
2449
+ $get_flag_choices['flag-so'] = 0;
2450
+ }
2451
+
2452
+ if (!isset ( $get_flag_choices ['flag-es'] ) ) {
2453
+ $get_flag_choices['flag-es'] = 0;
2454
+ }
2455
+
2456
+ if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
2457
+ $get_flag_choices['flag-sw'] = 0;
2458
+ }
2459
+
2460
+ if (!isset ( $get_flag_choices ['flag-sv'] ) ) {
2461
+ $get_flag_choices['flag-sv'] = 0;
2462
+ }
2463
+
2464
+ if (!isset ( $get_flag_choices ['flag-ta'] ) ) {
2465
+ $get_flag_choices['flag-ta'] = 0;
2466
+ }
2467
+
2468
+ if (!isset ( $get_flag_choices ['flag-te'] ) ) {
2469
+ $get_flag_choices['flag-te'] = 0;
2470
+ }
2471
+
2472
+ if (!isset ( $get_flag_choices ['flag-th'] ) ) {
2473
+ $get_flag_choices['flag-th'] = 0;
2474
+ }
2475
+
2476
+ if (!isset ( $get_flag_choices ['flag-tr'] ) ) {
2477
+ $get_flag_choices['flag-tr'] = 0;
2478
+ }
2479
+
2480
+ if (!isset ( $get_flag_choices ['flag-uk'] ) ) {
2481
+ $get_flag_choices['flag-uk'] = 0;
2482
+ }
2483
+
2484
+ if (!isset ( $get_flag_choices ['flag-ur'] ) ) {
2485
+ $get_flag_choices['flag-ur'] = 0;
2486
+ }
2487
+
2488
+ if (!isset ( $get_flag_choices ['flag-vi'] ) ) {
2489
+ $get_flag_choices['flag-vi'] = 0;
2490
+ }
2491
+
2492
+ if (!isset ( $get_flag_choices ['flag-cy'] ) ) {
2493
+ $get_flag_choices['flag-cy'] = 0;
2494
+ }
2495
+
2496
+ if (!isset ( $get_flag_choices ['flag-yi'] ) ) {
2497
+ $get_flag_choices['flag-yi'] = 0;
2498
+ }
2499
+
2500
+ if (!isset ( $get_flag_choices ['flag-yo'] ) ) {
2501
+ $get_flag_choices['flag-yo'] = 0;
2502
+ }
2503
+
2504
+ ?>
2505
+ <div class="flagdisplay" style="width:25%; float:left">
2506
+ <div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?>/> Afrikaans</div>
2507
+ <div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?>/> Albanian</div>
2508
+ <div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?>/> Arabic</div>
2509
+ <div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?>/> Armenian</div>
2510
+ <div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?>/> Azerbaijani</div>
2511
+ <div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?>/> Basque</div>
2512
+ <div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?>/> Belarusian</div>
2513
+ <div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?>/> Bengali</div>
2514
+ <div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?>/> Bosnian</div>
2515
+ <div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?>/> Bulgarian</div>
2516
+ <div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?>/> Catalan</div>
2517
+ <div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?>/> Cebuano</div>
2518
+ <div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?>/> Chinese</div>
2519
+ <div><input type="checkbox" name="flag_display_settings[flag-zh-TW]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-TW']); ?>/> Chinese (Han)</div>
2520
+ <div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?>/> Croatian</div>
2521
+ <div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?>/> Czech</div>
2522
+ <div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?>/> Danish</div>
2523
+ <div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?>/> Dutch</div>
2524
+ <div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?>/> English</div>
2525
+ <div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1" <?php checked( 1,$get_flag_choices['flag-eo']); ?>/> Esperanto</div>
2526
+ <div><input type="checkbox" name="flag_display_settings[flag-et]" value="1" <?php checked( 1,$get_flag_choices['flag-et']); ?>/> Estonian</div>
2527
+ </div>
2528
+
2529
+ <div class="flagdisplay" style="width:25%; float:left">
2530
+ <div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1" <?php checked( 1,$get_flag_choices['flag-tl']); ?>/> Filipino</div>
2531
+ <div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1" <?php checked( 1,$get_flag_choices['flag-fi']); ?>/> Finnish</div>
2532
+ <div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1" <?php checked( 1,$get_flag_choices['flag-fr']); ?>/> French</div>
2533
+ <div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1" <?php checked( 1,$get_flag_choices['flag-gl']); ?>/> Galician</div>
2534
+ <div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1" <?php checked( 1,$get_flag_choices['flag-ka']); ?>/> Georgian</div>
2535
+ <div><input type="checkbox" name="flag_display_settings[flag-de]" value="1" <?php checked( 1,$get_flag_choices['flag-de']); ?>/> German</div>
2536
+ <div><input type="checkbox" name="flag_display_settings[flag-el]" value="1" <?php checked( 1,$get_flag_choices['flag-el']); ?>/> Greek</div>
2537
+ <div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1" <?php checked( 1,$get_flag_choices['flag-gu']); ?>/> Gujarati</div>
2538
+ <div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1" <?php checked( 1,$get_flag_choices['flag-ht']); ?>/> Haitian Creole</div>
2539
+ <div><input type="checkbox" name="flag_display_settings[flag-ha]" value="1" <?php checked( 1,$get_flag_choices['flag-ha']); ?>/> Hausa</div>
2540
+ <div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1" <?php checked( 1,$get_flag_choices['flag-iw']); ?>/> Hebrew</div>
2541
+ <div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1" <?php checked( 1,$get_flag_choices['flag-hi']); ?>/> Hindi</div>
2542
+ <div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1" <?php checked( 1,$get_flag_choices['flag-hmn']); ?>/> Hmong</div>
2543
+ <div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1" <?php checked( 1,$get_flag_choices['flag-hu']); ?>/> Hungarian</div>
2544
+ <div><input type="checkbox" name="flag_display_settings[flag-is]" value="1" <?php checked( 1,$get_flag_choices['flag-is']); ?>/> Icelandic</div>
2545
+ <div><input type="checkbox" name="flag_display_settings[flag-ig]" value="1" <?php checked( 1,$get_flag_choices['flag-ig']); ?>/> Igbo</div>
2546
+ <div><input type="checkbox" name="flag_display_settings[flag-id]" value="1" <?php checked( 1,$get_flag_choices['flag-id']); ?>/> Indonesian</div>
2547
+ <div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1" <?php checked( 1,$get_flag_choices['flag-ga']); ?>/> Irish</div>
2548
+ <div><input type="checkbox" name="flag_display_settings[flag-it]" value="1" <?php checked( 1,$get_flag_choices['flag-it']); ?>/> Italian</div>
2549
+ <div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1" <?php checked( 1,$get_flag_choices['flag-ja']); ?>/> Japanese</div>
2550
+ <div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1" <?php checked( 1,$get_flag_choices['flag-jw']); ?>/> Javanese</div>
2551
+ </div>
2552
+
2553
+ <div class="flagdisplay" style="width:25%; float:left">
2554
+ <div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1" <?php checked( 1,$get_flag_choices['flag-kn']); ?>/> Kannada</div>
2555
+ <div><input type="checkbox" name="flag_display_settings[flag-km]" value="1" <?php checked( 1,$get_flag_choices['flag-km']); ?>/> Khmer</div>
2556
+ <div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1" <?php checked( 1,$get_flag_choices['flag-ko']); ?>/> Korean</div>
2557
+ <div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1" <?php checked( 1,$get_flag_choices['flag-lo']); ?>/> Lao</div>
2558
+ <div><input type="checkbox" name="flag_display_settings[flag-la]" value="1" <?php checked( 1,$get_flag_choices['flag-la']); ?>/> Latin</div>
2559
+ <div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1" <?php checked( 1,$get_flag_choices['flag-lv']); ?>/> Latvian</div>
2560
+ <div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1" <?php checked( 1,$get_flag_choices['flag-lt']); ?>/> Lithuanian</div>
2561
+ <div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1" <?php checked( 1,$get_flag_choices['flag-mk']); ?>/> Macedonian</div>
2562
+ <div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1" <?php checked( 1,$get_flag_choices['flag-ms']); ?>/> Malay</div>
2563
+ <div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1" <?php checked( 1,$get_flag_choices['flag-mt']); ?>/> Maltese</div>
2564
+ <div><input type="checkbox" name="flag_display_settings[flag-mi]" value="1" <?php checked( 1,$get_flag_choices['flag-mi']); ?>/> Maori</div>
2565
+ <div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1" <?php checked( 1,$get_flag_choices['flag-mr']); ?>/> Marathi</div>
2566
+ <div><input type="checkbox" name="flag_display_settings[flag-mn]" value="1" <?php checked( 1,$get_flag_choices['flag-mn']); ?>/> Mongolian</div>
2567
+ <div><input type="checkbox" name="flag_display_settings[flag-ne]" value="1" <?php checked( 1,$get_flag_choices['flag-ne']); ?>/> Nepali</div>
2568
+ <div><input type="checkbox" name="flag_display_settings[flag-no]" value="1" <?php checked( 1,$get_flag_choices['flag-no']); ?>/> Norwegian</div>
2569
+ <div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1" <?php checked( 1,$get_flag_choices['flag-fa']); ?>/> Persian</div>
2570
+ <div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1" <?php checked( 1,$get_flag_choices['flag-pl']); ?>/> Polish</div>
2571
+ <div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1" <?php checked( 1,$get_flag_choices['flag-pt']); ?>/> Portuguese</div>
2572
+ <div><input type="checkbox" name="flag_display_settings[flag-pa]" value="1" <?php checked( 1,$get_flag_choices['flag-pa']); ?>/> Punjabi</div>
2573
+ <div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1" <?php checked( 1,$get_flag_choices['flag-ro']); ?>/> Romanian</div>
2574
+ <div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1" <?php checked( 1,$get_flag_choices['flag-ru']); ?>/> Russian</div>
2575
+ </div>
2576
+
2577
+ <div class="flagdisplay" style="width:25%; float:left">
2578
+ <div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1" <?php checked( 1,$get_flag_choices['flag-sr']); ?>/> Serbian</div>
2579
+ <div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1" <?php checked( 1,$get_flag_choices['flag-sk']); ?>/> Slovak</div>
2580
+ <div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1" <?php checked( 1,$get_flag_choices['flag-sl']); ?>/> Slovenian</div>
2581
+ <div><input type="checkbox" name="flag_display_settings[flag-so]" value="1" <?php checked( 1,$get_flag_choices['flag-so']); ?>/> Somali</div>
2582
+ <div><input type="checkbox" name="flag_display_settings[flag-es]" value="1" <?php checked( 1,$get_flag_choices['flag-es']); ?>/> Spanish</div>
2583
+ <div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1" <?php checked( 1,$get_flag_choices['flag-sw']); ?>/> Swahili</div>
2584
+ <div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1" <?php checked( 1,$get_flag_choices['flag-sv']); ?>/> Swedish</div>
2585
+ <div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1" <?php checked( 1,$get_flag_choices['flag-ta']); ?>/> Tamil</div>
2586
+ <div><input type="checkbox" name="flag_display_settings[flag-te]" value="1" <?php checked( 1,$get_flag_choices['flag-te']); ?>/> Telugu</div>
2587
+ <div><input type="checkbox" name="flag_display_settings[flag-th]" value="1" <?php checked( 1,$get_flag_choices['flag-th']); ?>/> Thai</div>
2588
+ <div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1" <?php checked( 1,$get_flag_choices['flag-tr']); ?>/> Turkish</div>
2589
+ <div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1" <?php checked( 1,$get_flag_choices['flag-uk']); ?>/> Ukranian</div>
2590
+ <div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1" <?php checked( 1,$get_flag_choices['flag-ur']); ?>/> Urdu</div>
2591
+ <div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1" <?php checked( 1,$get_flag_choices['flag-vi']); ?>/> Vietnamese</div>
2592
+ <div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1" <?php checked( 1,$get_flag_choices['flag-cy']); ?>/> Welsh</div>
2593
+ <div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1" <?php checked( 1,$get_flag_choices['flag-yi']); ?>/> Yiddish</div>
2594
+ <div><input type="checkbox" name="flag_display_settings[flag-yo]" value="1" <?php checked( 1,$get_flag_choices['flag-yo']); ?>/> Yoruba</div>
2595
+ <div><input type="checkbox" name="flag_display_settings[flag-zu]" value="1" <?php checked( 1,$get_flag_choices['flag-zu']); ?>/> Zulu</div>
2596
+
2597
+ </div>
2598
+ <div style="clear:both"></div>
2599
+ <?php }
2600
+
2601
+ public function googlelanguagetranslator_floating_widget_cb() {
2602
+
2603
+ $option_name = 'googlelanguagetranslator_floating_widget' ;
2604
+ $new_value = 'yes';
2605
+
2606
+ if ( get_option( $option_name ) === false ) {
2607
+
2608
+ // The option does not exist, so we update it.
2609
+ update_option( $option_name, $new_value );
2610
+ }
2611
+
2612
+ $options = get_option (''.$option_name.''); ?>
2613
+
2614
+ <select name="googlelanguagetranslator_floating_widget" id="googlelanguagetranslator_floating_widget" style="width:170px">
2615
+ <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show widget</option>
2616
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide widget</option>
2617
+ </select>
2618
+ <?php }
2619
+
2620
+ public function googlelanguagetranslator_translatebox_cb() {
2621
+
2622
+ $option_name = 'googlelanguagetranslator_translatebox' ;
2623
+ $new_value = 'yes';
2624
+
2625
+ if ( get_option( $option_name ) === false ) {
2626
+
2627
+ // The option does not exist, so we update it.
2628
+ update_option( $option_name, $new_value );
2629
+ }
2630
+
2631
+ $options = get_option (''.$option_name.''); ?>
2632
+
2633
+ <select name="googlelanguagetranslator_translatebox" id="googlelanguagetranslator_translatebox" style="width:190px">
2634
+ <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show language box</option>
2635
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide language box</option>
2636
+ </select>
2637
+ <?php }
2638
+
2639
+ public function googlelanguagetranslator_display_cb() {
2640
+
2641
+ $option_name = 'googlelanguagetranslator_display' ;
2642
+ $new_value = 'Vertical';
2643
+
2644
+ if ( get_option( $option_name ) === false ) {
2645
+
2646
+ // The option does not exist, so we update it.
2647
+ update_option( $option_name, $new_value );
2648
+ }
2649
+
2650
+ $options = get_option (''.$option_name.''); ?>
2651
+
2652
+ <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:170px;">
2653
+ <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
2654
+ <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
2655
+ </select>
2656
+ <?php }
2657
+
2658
+ public function googlelanguagetranslator_toolbar_cb() {
2659
+
2660
+ $option_name = 'googlelanguagetranslator_toolbar' ;
2661
+ $new_value = 'Yes';
2662
+
2663
+ if ( get_option( $option_name ) === false ) {
2664
+
2665
+ // The option does not exist, so we update it.
2666
+ update_option( $option_name, $new_value );
2667
+ }
2668
+
2669
+ $options = get_option (''.$option_name.''); ?>
2670
+
2671
+ <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:170px;">
2672
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
2673
+ <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
2674
+ </select>
2675
+ <?php }
2676
+
2677
+ public function googlelanguagetranslator_showbranding_cb() {
2678
+
2679
+ $option_name = 'googlelanguagetranslator_showbranding' ;
2680
+ $new_value = 'Yes';
2681
+
2682
+ if ( get_option( $option_name ) === false ) {
2683
+
2684
+ // The option does not exist, so we update it.
2685
+ update_option( $option_name, $new_value );
2686
+ }
2687
+
2688
+ $options = get_option (''.$option_name.''); ?>
2689
+
2690
+ <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:170px;">
2691
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
2692
+ <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
2693
+ </select>
2694
+ <?php }
2695
+
2696
+ public function googlelanguagetranslator_flags_alignment_cb() {
2697
+
2698
+ $option_name = 'googlelanguagetranslator_flags_alignment' ;
2699
+ $new_value = 'flags_left';
2700
+
2701
+ if ( get_option( $option_name ) === false ) {
2702
+
2703
+ // The option does not exist, so we update it.
2704
+ update_option( $option_name, 'flags_left' );
2705
+ }
2706
+
2707
+ $options = get_option (''.$option_name.''); ?>
2708
+
2709
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="flags_left" value="flags_left" <?php if($options=='flags_left'){echo "checked";}?>/> Align Left<br/>
2710
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="flags_right" value="flags_right" <?php if($options=='flags_right'){echo "checked";}?>/> Align Right
2711
+ <?php }
2712
+
2713
+ public function googlelanguagetranslator_analytics_cb() {
2714
+
2715
+ $option_name = 'googlelanguagetranslator_analytics' ;
2716
+ $new_value = 0;
2717
+
2718
+ if ( get_option( $option_name ) === false ) {
2719
+
2720
+ // The option does not exist, so we update it.
2721
+ update_option( $option_name, $new_value );
2722
+ }
2723
+
2724
+ $options = get_option (''.$option_name.'');
2725
+
2726
+ $html = '<input type="checkbox" name="googlelanguagetranslator_analytics" id="googlelanguagetranslator_analytics" value="1" '.checked(1,$options,false).'/> &nbsp; Activate Google Analytics tracking?';
2727
+ echo $html;
2728
  }
2729
+
2730
+ public function googlelanguagetranslator_analytics_id_cb() {
2731
+
2732
+ $option_name = 'googlelanguagetranslator_analytics_id' ;
2733
+ $new_value = '';
2734
+
2735
+ if ( get_option( $option_name ) === false ) {
2736
 
2737
+ // The option does not exist, so we update it.
2738
+ update_option( $option_name, $new_value );
2739
+ }
2740
+
2741
+ $options = get_option (''.$option_name.'');
2742
+
2743
+ $html = '<input type="text" name="googlelanguagetranslator_analytics_id" id="googlelanguagetranslator_analytics_id" value="'.$options.'" />';
2744
+ echo $html;
2745
  }
2746
+
2747
+ public function googlelanguagetranslator_css_cb() {
2748
+
2749
+ $option_name = 'googlelanguagetranslator_css' ;
2750
+ $new_value = '';
2751
+
2752
+ if ( get_option( $option_name ) === false ) {
2753
+
2754
+ // The option does not exist, so we update it.
2755
+ update_option( $option_name, $new_value );
2756
+ }
2757
+
2758
+ $options = get_option (''.$option_name.'');
2759
+
2760
+ $html = '<textarea style="width:100%; height:200px" name="googlelanguagetranslator_css" id="googlelanguagetranslator_css">'.$options.'</textarea>';
2761
+ echo $html;
2762
+ }
2763
+
2764
+ public function googlelanguagetranslator_manage_translations_cb() {
2765
+ $option_name = 'googlelanguagetranslator_manage_translations' ;
2766
+ $new_value = 0;
2767
+
2768
+ if ( get_option( $option_name ) === false ) {
2769
+
2770
+ // The option does not exist, so we update it.
2771
+ update_option( $option_name, $new_value );
2772
+ }
2773
+
2774
+ $options = get_option (''.$option_name.'');
2775
+
2776
+ $html = '<input type="checkbox" name="googlelanguagetranslator_manage_translations" id="googlelanguagetranslator_manage_translations" value="1" '.checked(1,$options,false).'/> &nbsp; Turn on translation management?';
2777
+ echo $html;
2778
+ }
2779
+
2780
+ public function googlelanguagetranslator_multilanguage_cb() {
2781
+
2782
+ $option_name = 'googlelanguagetranslator_multilanguage' ;
2783
+ $new_value = 0;
2784
+
2785
+ if ( get_option( $option_name ) === false ) {
2786
+
2787
+ // The option does not exist, so we update it.
2788
+ update_option( $option_name, $new_value );
2789
+ }
2790
+
2791
+ $options = get_option (''.$option_name.'');
2792
+
2793
+ $html = '<input type="checkbox" name="googlelanguagetranslator_multilanguage" id="googlelanguagetranslator_multilanguage" value="1" '.checked(1,$options,false).'/> &nbsp; Turn on multilanguage mode?';
2794
+ echo $html;
2795
+ }
2796
+
2797
+ public function page_layout_cb() { ?>
2798
+ <div class="wrap">
2799
+ <div id="icon-options-general" class="icon32"></div>
2800
+ <h2><span class="notranslate">Google Language Translator</span></h2>
2801
+ <form action="<?php echo admin_url('options.php'); ?>" method="post">
2802
+ <div class="metabox-holder has-right-sidebar" style="float:left; width:65%">
2803
+ <div class="postbox" style="width: 100%">
2804
+ <h3 class="notranslate">Settings</h3>
2805
+
2806
+ <?php settings_fields('google_language_translator'); ?>
2807
+ <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
2808
+ <tr>
2809
+ <td style="width:60%" class="notranslate">Plugin Status:</td>
2810
+ <td class="notranslate"><?php $this->googlelanguagetranslator_active_cb(); ?></td>
2811
+ </tr>
2812
+
2813
+ <tr class="notranslate">
2814
+ <td>Choose the original language of your website</td>
2815
+ <td><?php $this->googlelanguagetranslator_language_cb(); ?></td>
2816
+ </tr>
2817
+
2818
+ <tr class="notranslate">
2819
+ <td>What translation languages will display in the language box?<br/>("All Languages" option <strong><u>must</u></strong> be chosen to show flags.)</td>
2820
+ <td><?php $this->googlelanguagetranslator_language_option_cb(); ?></td>
2821
+ </tr>
2822
+
2823
+ <tr class="notranslate">
2824
+ <td colspan="2"><?php $this->language_display_settings_cb(); ?></td>
2825
+ </tr>
2826
+
2827
+ <tr class="notranslate">
2828
+ <td class="choose_flags_intro">Show flag images?<br/>(Display up to 81 flags above the translator)</td>
2829
+ <td class="choose_flags_intro"><?php $this->googlelanguagetranslator_flags_cb(); ?></td>
2830
+ </tr>
2831
+
2832
+ <tr class="notranslate">
2833
+ <td class="choose_flags">Choose the flags you want to display:</td>
2834
+ <td></td>
2835
+ </tr>
2836
+
2837
+ <tr class="notranslate">
2838
+ <td colspan="2" class="choose_flags"><?php $this->flag_display_settings_cb(); ?></td>
2839
+ </tr>
2840
+
2841
+ <tr class="notranslate">
2842
+ <td>Show floating translation widget? <strong style="color:red">(New!)</strong><br/>
2843
+ <span>("All Languages" option <strong><u>must</u></strong> be chosen to show widget.)</span>
2844
+ </td>
2845
+ <td><?php $this->googlelanguagetranslator_floating_widget_cb(); ?></td>
2846
+ </tr>
2847
+
2848
+ <tr class="notranslate">
2849
+ <td>Show translate box?</td>
2850
+ <td><?php $this->googlelanguagetranslator_translatebox_cb(); ?></td>
2851
+ </tr>
2852
+
2853
+ <tr class="notranslate">
2854
+ <td>Layout options:</td>
2855
+ <td><?php $this->googlelanguagetranslator_display_cb(); ?></td>
2856
+ </tr>
2857
+
2858
+ <tr class="notranslate">
2859
+ <td>Show Google Toolbar?</td>
2860
+ <td><?php $this->googlelanguagetranslator_toolbar_cb(); ?></td>
2861
+ </tr>
2862
+
2863
+ <tr class="notranslate">
2864
+ <td>Show Google Branding?<br/>
2865
+ <span>(<a href="https://developers.google.com/translate/v2/attribution" target="_blank">Learn more</a> about Google's Attribution Requirements.)</span>
2866
+ </td>
2867
+ <td><?php $this->googlelanguagetranslator_showbranding_cb(); ?></td>
2868
+ </tr>
2869
+
2870
+ <tr class="alignment notranslate">
2871
+ <td class="flagdisplay">Align the translator left or right?</td>
2872
+ <td class="flagdisplay"><?php $this->googlelanguagetranslator_flags_alignment_cb(); ?></td>
2873
+ </tr>
2874
+
2875
+ <tr class="manage_translations notranslate">
2876
+ <td>Turn on translation management?<br/>(Managed directly through your Google account. Requires <a href="http://translate.google.com/manager/website/settings" target="_blank">Google Translate</a> meta tag installed in header.)</td>
2877
+ <td><?php $this->googlelanguagetranslator_manage_translations_cb(); ?></td>
2878
+ </tr>
2879
+
2880
+ <tr class="multilanguage notranslate">
2881
+ <td>Multilanguage Page Option?: (<em>not recommended)</em><br/>(If checked, a "forced" translation of your webpage will be served when returned to the default language, instead of delivering original content.)</td>
2882
+ <td><?php $this->googlelanguagetranslator_multilanguage_cb(); ?></td>
2883
+ </tr>
2884
+
2885
+ <tr class="notranslate">
2886
+ <td>Google Analytics:</td>
2887
+ <td><?php $this->googlelanguagetranslator_analytics_cb(); ?></td>
2888
+ </tr>
2889
+
2890
+ <tr class="analytics notranslate">
2891
+ <td>Google Analytics ID (Ex. 'UA-11117410-2')</td>
2892
+ <td><?php $this->googlelanguagetranslator_analytics_id_cb(); ?></td>
2893
+ </tr>
2894
+
2895
+ <tr class="notranslate">
2896
+ <td>Copy/Paste this shortcode if adding to pages/posts:</td>
2897
+ <td>[google-translator]</td>
2898
+ </tr>
2899
+ </table>
2900
+
2901
+ <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
2902
+ <tr class="notranslate">
2903
+ <td>Copy/Paste this code if adding to header/footer:</td>
2904
+ <td>&lt?php echo do_shortcode('[google-translator]'); ?&gt</td>
2905
+ </tr>
2906
+
2907
+ <tr class="notranslate">
2908
+ <td><?php submit_button(); ?></td>
2909
+ <td></td>
2910
+ </tr>
2911
+ </table>
2912
+
2913
+ </div> <!-- .postbox -->
2914
+ </div> <!-- .metbox-holder -->
2915
+
2916
+ <div class="metabox-holder" style="float:right; clear:right; width:33%">
2917
+ <div class="postbox">
2918
+ <h3 class="notranslate">Preview</h3>
2919
+ <table style="width:100%">
2920
+ <tr>
2921
+ <td style="height:80px; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; padding:15px 15px; margin:0px"><?php echo do_shortcode('[google-translator]'); ?><p class="hello"><span class="notranslate">Translated text:</span> &nbsp; <span>Hello</span></p></td>
2922
+ </tr>
2923
+ </table>
2924
+ </div> <!-- .postbox -->
2925
+ </div> <!-- .metabox-holder -->
2926
+
2927
+
2928
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
2929
+ <div class="postbox">
2930
+ <h3>Add CSS Styles</h3>
2931
+ <div class="inside">
2932
+ <p>You can apply any necessary CSS styles below:</p>
2933
+ <?php $this->googlelanguagetranslator_css_cb(); ?>
2934
+ </div>
2935
+ </div>
2936
+ </div>
2937
+ </form>
2938
+
2939
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
2940
+ <div class="postbox">
2941
+ <h3>GLT Premium is Here! $12</h3>
2942
+ <div class="inside"><a href="http://www.wp-studio.net/" target="_blank"><img style="background:#444; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px" src="<?php echo plugins_url('google-language-translator/images/logo.png'); ?>"></a><br />
2943
+ <ul id="features">
2944
+ <li>Get more design and functionality options</li>
2945
+ <li>Loads directly with page content, not afterward</li>
2946
+ <li>jQuery-powered "Elegant" theme to engage your visitors</li>
2947
+ <li>Manage your website's translations</li>
2948
+ <li>Show or hide any features you want</li>
2949
+ <li>Full access to our support forum</li>
2950
+ <li>Full access to future updates, for life of the plugin</li>
2951
+ </ul>
2952
+ </div>
2953
+ </div>
2954
+ </div>
2955
+
2956
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
2957
+ <div class="postbox">
2958
+ <h3>Please Consider A Donation</h3>
2959
+ <div class="inside">If you like this plugin and find it useful, help keep this plugin actively developed by clicking the donate button <br /><br />
2960
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
2961
+ <input type="hidden" name="cmd" value="_donations">
2962
+ <input type="hidden" name="business" value="robertmyrick@hotmail.com">
2963
+ <input type="hidden" name="lc" value="US">
2964
+ <input type="hidden" name="item_name" value="Support Studio 88 Design and help us bring you more Wordpress goodies! Any donation is kindly appreciated. Thank you!">
2965
+ <input type="hidden" name="no_note" value="0">
2966
+ <input type="hidden" name="currency_code" value="USD">
2967
+ <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
2968
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
2969
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
2970
+ </form>
2971
 
2972
+ <br />
2973
+ <br />
2974
+ </div>
2975
+ </div>
2976
+ </div>
2977
+ </div> <!-- .wrap -->
2978
+ <?php }
2979
+
2980
+ } // class google_language_translator
2981
+ $google_language_translator = new google_language_translator();
2982
  ?>
images/flags24/mongolia.png ADDED
Binary file
images/flags24/nepal.png ADDED
Binary file
images/flags24/newzealand.png ADDED
Binary file
images/flags24/niger.png ADDED
Binary file
images/flags24/nigeria.png ADDED
Binary file
images/flags24/somalia.png ADDED
Binary file
admin.js → js/admin.js RENAMED
File without changes
flags.js → js/flags.js RENAMED
File without changes
load-toolbar.js → js/load-toolbar.js RENAMED
File without changes
toolbar.js → js/toolbar.js RENAMED
File without changes
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin link: http://www.studio88design.com/plugins/google-language-translator
5
  Tags: language translator, google translator, language translate, google, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
  Tested up to: 3.8.1
8
- stable tag: 3.0.7
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
 
@@ -26,69 +26,87 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
26
 
27
  == Changelog ==
28
 
29
- 1.1 The shortcode supplied on the settings page was updated to display '[google-translator]'.
30
 
31
- 1.2 Shortcode support is now available for adding [google-translator] to text widgets. I apologize for any inconvenience this may have caused.
 
 
 
 
 
 
 
32
 
33
- 1.3 HTML display problem in the sidebar area now fixed. Previously, inserting the [google-translator] plugin into a text widget caused it to display above the widget, instead of inside of it.
34
-
35
- 1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
36
 
37
- 1.5 Added "Original Language" support to the plugin settings, which allows the user to choose the original language of their website, which ultimately removes the original language as a choice in the language drop-down presented to website visitors.
38
 
39
- 1.6 Added "Specific Language" support to the plugin settings, which allows the user to choose specific languages that are displayed to website visitors.
40
 
41
- 1.7 Modified google-language-translator.php so that jQuery and CSS styles were enqueued properly onto the settings page only. Previously, jQuery functionality and CSS styles were being added to all pages of the Wordpresss Dashboard, which was causing functionality and display issues for some users.
42
 
43
- 1.8 Modified google-language-translator.php to display the correct output to the browser when horizontal layout is selected. Previously, it was not displaying at all.
44
 
45
- 1.9
 
46
 
47
- - Added 7 flag image choices that, when clicked by website visitors, will change the language displayed, both on the website, AND in the drop-down box (flag language choices are limited to those provided in this plugin).
48
 
49
- - Added 6 additional languages to the translator, as provided in Google's most recent updates ( new languages include Bosnian, Cebuano, Khmer, Marathi, Hmong, Javanese ).
 
 
50
 
51
- - Corrected a minor technical issue where the Czech option (on the backend) was incorrectly displaying the Croatian language on the front end.
52
 
53
- - Added jQuery functionality to the settings panel to improve the user experience.
 
 
 
54
 
55
- - Added an option for users to display/hide the flag images.
56
 
57
- - Added an option for users to display/hide the translate box when flags are displayed.
58
 
59
- - Removed the settings.css file - I found a better way of displaying the options without CSS.
60
 
61
- 2.0 Corrected some immediate errors in the 1.9 update.
 
 
62
 
63
- 2.1
64
 
65
- - Added language "Dutch" to the Original Language drop-down option on the settings page.
66
 
67
- - Added a new CSS class that more accurately hides the "Powered by" text when hiding Google's branding. In previous version, the "Powered by" text was actually disguised by setting it's color to "transparent", but now we have set it's font-size to 0px instead.
68
 
69
- 2.2
70
 
71
- - Added language "Portuguese" and "German" to the Original Language drop-down option on the settings page.
 
 
 
72
 
73
- - Changed flag image for the English language (changed United States flag to the United Kingdom flag).
74
 
75
- - Added link in the settings panel that points to Google's Attribution Policy.
 
 
76
 
77
- 2.3
78
 
79
- - Added a "Preview" area on the settings page that allows you to see your settings in action.
80
 
81
- - Added custom flag support for all languages (custom flags available ONLY when selecting the "ALL Languages" setting.
82
 
83
- - Added an option that allows left/right alignment of the translation tool.
84
 
85
- - Added the "Google Language Translator" widget.
86
 
87
- - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
88
 
89
- 2.4
90
 
91
- - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
92
 
93
  2.5
94
 
@@ -96,77 +114,69 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
96
 
97
  - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
98
 
99
- 2.6
100
 
101
- - Added defaults to all options to ensure there are no more issues with the translator displaying upon installation. Again, sorry for any inconvenience.
102
 
103
- 2.7
104
 
105
- - Added Google Analytics tracking capability to the plugin.
106
 
107
- - Added a "CSS Styles" box in the settings panel.
108
 
109
- - Changed the Catalonian flag to its correct flag image.
110
 
111
- - Fixed coding issues that previously updated options incorrectly, which is why many users experienced display issues. All options are now initialized upon plugin activation, which should fix this issue permanently.
112
 
113
- - Fixed a glitch in our usage of the translate API. Previously, when the user clicked the default language, it would toggle back and forth between the default language and "Afrikaans" language. Now, users will see the correct language displayed at all times, no matter how many times it is clicked.
114
 
 
115
 
116
- 2.8
117
 
118
- - Added an option to allow users to manage their own translations directly through their Google Translate account (free). When activated, users can hover over the text of their website, and edit the translations from the webpage directly. Google will remember these translations, and then serve them to users once the edits are made. Users must install the Google Translate Customization meta tag provided through Google Translate here: translate.google.com/manager/website/settings. To obtain this meta tag, users need to configure the Google Translate tool directly from this website (although they will not use this because the plugin provides it), then the user can obtain the meta tag on the "Get Code" screen, which is displayed after configuring the Google Translate tool on this webpage.
119
- - Added an option to allow users to turn on/off Google's multilanguagePage option, that when activated, the original website content will be a forced translation, instead of original content (but only after a translation is made.)
120
- - Added more flexible styles to the settings page, so that left and right panels display nicely to the user.
121
 
122
- 2.9
123
 
124
- ***IMPORTANT: Google's most recent server update is producing display issues for website translation tool. There are major display issues with the translation toolbar and also the translations editing interface. Version 2.9 temporarily hides the edit translation functionality until Google decides to fix this issue, although you can still edit translations directly through your Google account at translate.google.com. Please direct any support requests through Wordpress.org and we will be happy to assist you.
125
 
126
- - Fixed Google Translation toolbar display issue
127
- - Fixed the Edit Translation interface by hiding it temporarily until Google fixes this
128
- - Removed some unneeded styles from the style sheet.
129
- - Fixed some CSS issues for the Google Branding display, which was affected by Google's most recent update
130
 
131
- 3.0
132
 
133
- - Correct a small CSS error that affected the showing/hiding of the Google toolbar.
134
 
135
- 3.0.1
136
 
137
- - Changed the url request to Google to allow both unsecured and secured page translations. Previously, some users experienced errors when trying to use the translator on "https://" (secured) pages.
138
- - Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
139
- - Removed old CSS styles that were added in the previous 3.0 update - the styles were added when Google servers were being updated, and were producing major translation dislay issues until their update was complete. Now the styles I added are no longer needed.
140
 
141
- 3.0.2
142
 
143
- - Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
144
 
145
- 3.0.3
146
 
147
- - Re-factored/re-arranged some of the code in googlelanguagetranslator.php by placing them into separate files.
148
- - Fixed a minor coding issue in glt_widget.php - this was generating an error in Wordpress when debugging.
149
- - Moved all CSS code into a single file. The result is nice, clean inline CSS code that is now called only once.
150
- - Fixed some additional CSS display issues.
151
 
152
- 3.0.4
153
 
154
- - Re-factored/re-arranged more code in google languagetransltor.php by placing them into separate files.
155
- - Fixed the issue of Custom CSS box not displaying it's styles to the website. This was only missed in this last update, due to re-arrangement of the files. Sorry for any inconvenience.
156
- - Removed style2.php file, which is unnecessary and was being used in testing.
157
 
158
- 3.0.5
159
 
160
- - Added new Floating Widget (see settings page). The Floating Widget is simply another way for allowing website visitors to translate languages. The functionality is built-in with the existing flag preferences, and can be turned on or off at the administrator's preference. The floating widget can also function in full with both the language box and/or flags showing OR hiding, so the administrator has full control of how it displays. The floating widget is placed at bottom right of the website in the free version, but can be placed in other locations by changing CSS styles associated with the box. The premium version will allow more options as to changing the Floating Widget location.
161
- - Fixed the issue with Dashboard styles loading on the wrong pages. This was causing some annoying display issues on the Wordpress Dashboard.
162
 
163
- 3.0.6
164
 
165
- - Corrected a small display error in displaying the floating widget correctly.
166
 
167
- 3.0.7
168
 
169
- - Removed an unnecessary CSS file, left over from development. Sorry for any inconvenience if you received display errors.
 
 
 
 
170
 
171
  == Screenshots ==
172
 
5
  Tags: language translator, google translator, language translate, google, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
  Tested up to: 3.8.1
8
+ stable tag: 3.0.8
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
 
26
 
27
  == Changelog ==
28
 
29
+ 3.0.8
30
 
31
+ - Added 9 new languages into the plugin (Hausa, Igbo, Maori, Mongolian, Nepali, Punjabi, Somali, Yoruba, Zulu).
32
+ - Corrected an "undefined variable" error that was being generated in Vertical and Horizontal layouts.
33
+ - Re-structured coding once again into an Object-Oriented approach.
34
+ - Moved all functions of the base class into 'googlelanguagetranslator.php' and the widget into 'widget.php'.
35
+ - Moved all javascript files into it's own JS folder.
36
+ - Fixed an display issue with "Edit Translations" - they were being hidden when "No branding" option was chosen.
37
+ - Corrected various "comma" errors in the string that outputs the script for loading the translator.
38
+ - Changed Changelog in readme.txt to show most recent changes first, instead of last.
39
 
40
+ 3.0.7
 
 
41
 
42
+ - Removed an unnecessary CSS file, left over from development. Sorry for any inconvenience if you received display errors.
43
 
44
+ 3.0.6
45
 
46
+ - Corrected a small display error in displaying the floating widget correctly.
47
 
48
+ 3.0.5
49
 
50
+ - Added new Floating Widget (see settings page). The Floating Widget is simply another way for allowing website visitors to translate languages. The functionality is built-in with the existing flag preferences, and can be turned on or off at the administrator's preference. The floating widget can also function in full with both the language box and/or flags showing OR hiding, so the administrator has full control of how it displays. The floating widget is placed at bottom right of the website in the free version, but can be placed in other locations by changing CSS styles associated with the box. The premium version will allow more options as to changing the Floating Widget location.
51
+ - Fixed the issue with Dashboard styles loading on the wrong pages. This was causing some annoying display issues on the Wordpress Dashboard.
52
 
53
+ 3.0.4
54
 
55
+ - Re-factored/re-arranged more code in google languagetransltor.php by placing them into separate files.
56
+ - Fixed the issue of Custom CSS box not displaying it's styles to the website. This was only missed in this last update, due to re-arrangement of the files. Sorry for any inconvenience.
57
+ - Removed style2.php file, which is unnecessary and was being used in testing.
58
 
59
+ 3.0.3
60
 
61
+ - Re-factored/re-arranged some of the code in googlelanguagetranslator.php by placing them into separate files.
62
+ - Fixed a minor coding issue in glt_widget.php - this was generating an error in Wordpress when debugging.
63
+ - Moved all CSS code into a single file. The result is nice, clean inline CSS code that is now called only once.
64
+ - Fixed some additional CSS display issues.
65
 
66
+ 3.0.2
67
 
68
+ - Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
69
 
70
+ 3.0.1
71
 
72
+ - Changed the url request to Google to allow both unsecured and secured page translations. Previously, some users experienced errors when trying to use the translator on "https://" (secured) pages.
73
+ - Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
74
+ - Removed old CSS styles that were added in the previous 3.0 update - the styles were added when Google servers were being updated, and were producing major translation dislay issues until their update was complete. Now the styles I added are no longer needed.
75
 
76
+ 3.0
77
 
78
+ - Correct a small CSS error that affected the showing/hiding of the Google toolbar.
79
 
80
+ 2.9
81
 
82
+ ***IMPORTANT: Google's most recent server update is producing display issues for website translation tool. There are major display issues with the translation toolbar and also the translations editing interface. Version 2.9 temporarily hides the edit translation functionality until Google decides to fix this issue, although you can still edit translations directly through your Google account at translate.google.com. Please direct any support requests through Wordpress.org and we will be happy to assist you.
83
 
84
+ - Fixed Google Translation toolbar display issue
85
+ - Fixed the Edit Translation interface by hiding it temporarily until Google fixes this
86
+ - Removed some unneeded styles from the style sheet.
87
+ - Fixed some CSS issues for the Google Branding display, which was affected by Google's most recent update
88
 
89
+ 2.8
90
 
91
+ - Added an option to allow users to manage their own translations directly through their Google Translate account (free). When activated, users can hover over the text of their website, and edit the translations from the webpage directly. Google will remember these translations, and then serve them to users once the edits are made. Users must install the Google Translate Customization meta tag provided through Google Translate here: translate.google.com/manager/website/settings. To obtain this meta tag, users need to configure the Google Translate tool directly from this website (although they will not use this because the plugin provides it), then the user can obtain the meta tag on the "Get Code" screen, which is displayed after configuring the Google Translate tool on this webpage.
92
+ - Added an option to allow users to turn on/off Google's multilanguagePage option, that when activated, the original website content will be a forced translation, instead of original content (but only after a translation is made.)
93
+ - Added more flexible styles to the settings page, so that left and right panels display nicely to the user.
94
 
95
+ 2.7
96
 
97
+ - Added Google Analytics tracking capability to the plugin.
98
 
99
+ - Added a "CSS Styles" box in the settings panel.
100
 
101
+ - Changed the Catalonian flag to its correct flag image.
102
 
103
+ - Fixed coding issues that previously updated options incorrectly, which is why many users experienced display issues. All options are now initialized upon plugin activation, which should fix this issue permanently.
104
 
105
+ - Fixed a glitch in our usage of the translate API. Previously, when the user clicked the default language, it would toggle back and forth between the default language and "Afrikaans" language. Now, users will see the correct language displayed at all times, no matter how many times it is clicked.
106
 
107
+ 2.6
108
 
109
+ - Added defaults to all options to ensure there are no more issues with the translator displaying upon installation. Again, sorry for any inconvenience.
110
 
111
  2.5
112
 
114
 
115
  - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
116
 
117
+ 2.4
118
 
119
+ - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
120
 
121
+ 2.3
122
 
123
+ - Added a "Preview" area on the settings page that allows you to see your settings in action.
124
 
125
+ - Added custom flag support for all languages (custom flags available ONLY when selecting the "ALL Languages" setting.
126
 
127
+ - Added an option that allows left/right alignment of the translation tool.
128
 
129
+ - Added the "Google Language Translator" widget.
130
 
131
+ - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
132
 
133
+ 2.2
134
 
135
+ - Added language "Portuguese" and "German" to the Original Language drop-down option on the settings page.
136
 
137
+ - Changed flag image for the English language (changed United States flag to the United Kingdom flag).
 
 
138
 
139
+ - Added link in the settings panel that points to Google's Attribution Policy.
140
 
141
+ 2.1
142
 
143
+ - Added language "Dutch" to the Original Language drop-down option on the settings page.
 
 
 
144
 
145
+ - Added a new CSS class that more accurately hides the "Powered by" text when hiding Google's branding. In previous version, the "Powered by" text was actually disguised by setting it's color to "transparent", but now we have set it's font-size to 0px instead.
146
 
147
+ 2.0 Corrected some immediate errors in the 1.9 update.
148
 
149
+ 1.9
150
 
151
+ - Added 7 flag image choices that, when clicked by website visitors, will change the language displayed, both on the website, AND in the drop-down box (flag language choices are limited to those provided in this plugin).
 
 
152
 
153
+ - Added 6 additional languages to the translator, as provided in Google's most recent updates ( new languages include Bosnian, Cebuano, Khmer, Marathi, Hmong, Javanese ).
154
 
155
+ - Corrected a minor technical issue where the Czech option (on the backend) was incorrectly displaying the Croatian language on the front end.
156
 
157
+ - Added jQuery functionality to the settings panel to improve the user experience.
158
 
159
+ - Added an option for users to display/hide the flag images.
 
 
 
160
 
161
+ - Added an option for users to display/hide the translate box when flags are displayed.
162
 
163
+ - Removed the settings.css file - I found a better way of displaying the options without CSS.
 
 
164
 
165
+ 1.8 Modified google-language-translator.php to display the correct output to the browser when horizontal layout is selected. Previously, it was not displaying at all.
166
 
167
+ 1.7 Modified google-language-translator.php so that jQuery and CSS styles were enqueued properly onto the settings page only. Previously, jQuery functionality and CSS styles were being added to all pages of the Wordpresss Dashboard, which was causing functionality and display issues for some users.
 
168
 
169
+ 1.6 Added "Specific Language" support to the plugin settings, which allows the user to choose specific languages that are displayed to website visitors.
170
 
171
+ 1.5 Added "Original Language" support to the plugin settings, which allows the user to choose the original language of their website, which ultimately removes the original language as a choice in the language drop-down presented to website visitors.
172
 
173
+ 1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
174
 
175
+ 1.3 HTML display problem in the sidebar area now fixed. Previously, inserting the [google-translator] plugin into a text widget caused it to display above the widget, instead of inside of it.
176
+
177
+ 1.2 Shortcode support is now available for adding [google-translator] to text widgets. I apologize for any inconvenience this may have caused.
178
+
179
+ 1.1 The shortcode supplied on the settings page was updated to display '[google-translator]'.
180
 
181
  == Screenshots ==
182
 
widget.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class glt_widget extends WP_Widget {
4
+
5
+ function __construct() {
6
+ parent::__construct(
7
+ 'glt_widget', // Base ID
8
+ __('Google Language Translator', 'text_domain'), // Name
9
+ array( 'description' => __( 'Add the Google Language Translator website tool.', 'text_domain' ), ) // Args
10
+ );
11
+ }
12
+
13
+ public function widget( $args, $instance ) {
14
+ $title = apply_filters( 'widget_title', $instance['title'] );
15
+
16
+ echo $args['before_widget'];
17
+ if ( ! empty( $title ) )
18
+ echo $args['before_title'] . $title . $args['after_title'];
19
+ $google_language_translator_class = new google_language_translator();
20
+ $glt_shortcode = $google_language_translator_class->google_translator_shortcode();
21
+ echo $glt_shortcode;
22
+ echo $args['after_widget'];
23
+ }
24
+
25
+ public function form( $instance ) {
26
+ if ( isset( $instance[ 'title' ] ) ) {
27
+ $title = $instance[ 'title' ];
28
+ }
29
+ else {
30
+ $title = __( 'Translate:', 'text_domain' );
31
+ }
32
+ ?>
33
+ <p>
34
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
35
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
36
+ </p>
37
+ <?php
38
+ }
39
+
40
+ public function update( $new_instance, $old_instance ) {
41
+ $instance = array();
42
+ $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
43
+
44
+ return $instance;
45
+ }
46
+
47
+ } // class glt_widget
48
+
49
+ // register Foo_Widget widget
50
+ function register_foo_widget() {
51
+ register_widget( 'glt_widget' );
52
+ }
53
+ add_action( 'widgets_init', 'register_foo_widget' );