Google Language Translator - Version 3.0.9

Version Description

Download this release

Release Info

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

Code changes from version 3.0.8 to 3.0.9

Files changed (4) hide show
  1. css/style.php +6 -6
  2. google-language-translator.php +2975 -2982
  3. readme.txt +7 -1
  4. widget.php +50 -52
css/style.php CHANGED
@@ -1,8 +1,9 @@
1
- <style type="text/css">
2
  <?php
3
 
4
- $glt_css = get_option("googlelanguagetranslator_css");
5
- echo $glt_css;
 
 
6
 
7
  if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
8
 
@@ -93,6 +94,5 @@ if(get_option('googlelanguagetranslator_toolbar')=='Yes') {
93
  echo 'body { top:0px !important;}';
94
  }
95
  }
96
-
97
- ?>
98
- </style>
 
1
  <?php
2
 
3
+ $glt_css = get_option("googlelanguagetranslator_css");
4
+
5
+ echo '<style type="text/css">';
6
+ echo $glt_css;
7
 
8
  if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
9
 
94
  echo 'body { top:0px !important;}';
95
  }
96
  }
97
+ echo '</style>';
98
+ ?>
 
google-language-translator.php CHANGED
@@ -1,2982 +1,2975 @@
1
- <?php
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
- ?>
1
+ <?php
2
+ /*
3
+ Plugin Name: Google Language Translator
4
+ Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 3.0.9
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
+ include( plugin_dir_path( __FILE__ ) . 'widget.php');
12
+
13
+ class google_language_translator {
14
+
15
+ public function __construct(){
16
+
17
+ register_activation_hook( __FILE__, array( $this, 'glt_activate' ) );
18
+
19
+ add_action('admin_menu',array(&$this, 'page_layout'));
20
+ add_action('admin_init',array(&$this, 'initialize_settings'));
21
+ add_action('wp_head',array(&$this, 'load_css'));
22
+ add_action('admin_head',array(&$this, 'load_css'));
23
+ add_shortcode( 'google-translator',array(&$this, 'google_translator_shortcode'));
24
+ add_filter('widget_text','do_shortcode');
25
+
26
+ if (!is_admin()) {
27
+ add_action('init',array(&$this, 'flags'));
28
+ }
29
+ }
30
+
31
+ public function glt_activate() {
32
+ add_option('googlelanguagetranslator_active', 1);
33
+ add_option('googlelanguagetranslator_language','en');
34
+ add_option('googlelanguagetranslator_language_option','all');
35
+ add_option('language_display_settings',array ('en' => 1));
36
+ add_option('googlelanguagetranslator_flags','show_flags');
37
+ add_option('flag_display_settings',array ('flag-en' => 1));
38
+ add_option('googlelanguagetranslator_translatebox','yes');
39
+ add_option('googlelanguagetranslator_display','Vertical');
40
+ add_option('googlelanguagetranslator_toolbar','Yes');
41
+ add_option('googlelanguagetranslator_showbranding','Yes');
42
+ add_option('googlelanguagetranslator_flags_alignment','flags_left');
43
+ add_option('googlelanguagetranslator_analytics',1);
44
+ add_option('googlelanguagetranslator_analytics_id','');
45
+ add_option('googlelanguagetranslator_css','');
46
+ add_option('googlelanguagetranslator_manage_translations',0);
47
+ add_option('googlelanguagetranslator_multilanguage',0);
48
+ add_option('googlelanguagetranslator_floating_widget','yes');
49
+ }
50
+
51
+ public function load_css() {
52
+ include( plugin_dir_path( __FILE__ ) . 'css/style.php');
53
+ }
54
+
55
+ public function scripts($hook_suffix) {
56
+ global $p;
57
+ if ($p == $hook_suffix) {
58
+ wp_enqueue_script( 'my-admin-script', plugins_url('js/admin.js',__FILE__), array('jquery'));
59
+ wp_enqueue_script( 'my-flag-script', plugins_url('js/flags.js',__FILE__), array('jquery'));
60
+ wp_enqueue_script( 'my-toolbar-script', plugins_url('js/toolbar.js',__FILE__), array('jquery'));
61
+ wp_enqueue_script( 'my-load-toolbar-script', plugins_url('js/load-toolbar.js',__FILE__), array('jquery'));
62
+ wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
63
+ wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
64
+ wp_enqueue_style( 'style.css' );
65
+ wp_enqueue_style( 'toolbar.css' );
66
+ }
67
+ }
68
+
69
+ public function flags() {
70
+ wp_enqueue_script( 'flags', plugins_url('js/flags.js',__FILE__), array('jquery'));
71
+ wp_enqueue_script( 'my-toolbar-script', plugins_url('js/toolbar.js',__FILE__), array('jquery'));
72
+ wp_enqueue_script( 'my-load-toolbar-script', plugins_url('js/load-toolbar.js',__FILE__), array('jquery'));
73
+ wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
74
+ wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
75
+ wp_enqueue_style( 'style.css' );
76
+ wp_enqueue_style( 'toolbar.css' );
77
+ }
78
+
79
+ public function page_layout () {
80
+ global $p;
81
+
82
+ add_action( 'admin_enqueue_scripts',array(&$this, 'scripts'));
83
+
84
+ $p = add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'google_language_translator', array(&$this, 'page_layout_cb'));
85
+ }
86
+
87
+
88
+ public function google_translator_shortcode() {
89
+ if (get_option('googlelanguagetranslator_display')=='Vertical'){
90
+ return $this->googlelanguagetranslator_vertical();
91
+ }
92
+
93
+ elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
94
+ return $this->googlelanguagetranslator_horizontal();
95
+ }
96
+ }
97
+
98
+ public function googlelanguagetranslator_included_languages() {
99
+ if ( get_option('googlelanguagetranslator_language_option')=='specific') {
100
+ $get_language_choices = get_option ('language_display_settings');
101
+
102
+ foreach ($get_language_choices as $key=>$value) {
103
+ if($value == 1) {
104
+ $items[] = $key;
105
+ }
106
+ }
107
+
108
+ $comma_separated = implode(",",array_values($items));
109
+
110
+ if ( get_option('googlelanguagetranslator_display') == 'Vertical') {
111
+ $lang = ', includedLanguages:\''.$comma_separated.'\'';
112
+ return $lang;
113
+ } elseif ( get_option('googlelanguagetranslator_display') == 'Horizontal') {
114
+ $lang = ', includedLanguages:\''.$comma_separated.'\'';
115
+ return $lang;
116
+ }
117
+ }
118
+ }
119
+
120
+ public function analytics() {
121
+ if ( get_option('googlelanguagetranslator_analytics') == 1 ) {
122
+ $analytics_id = get_option('googlelanguagetranslator_analytics_id');
123
+ $analytics = 'gaTrack: true, gaId: \''.$analytics_id.'\'';
124
+ return ', '.$analytics;
125
+ }
126
+ }
127
+
128
+ public function googlelanguagetranslator_vertical(){
129
+ $is_active = get_option ( 'googlelanguagetranslator_active' );
130
+ $get_flag_choices = get_option ('flag_display_settings');
131
+ $get_language_option = get_option('googlelanguagetranslator_language_option');
132
+ $language_choices = $this->googlelanguagetranslator_included_languages();
133
+ $floating_widget = get_option ('googlelanguagetranslator_floating_widget');
134
+ $str = '';
135
+
136
+ if( $is_active == 1){
137
+ if ($floating_widget=='yes' && $get_language_option != 'specific') {
138
+ $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</strong></div>';
139
+ $str.='<div id="glt-toolbar">';
140
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
141
+ $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>';
142
+ }
143
+
144
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
145
+ $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>';
146
+ }
147
+
148
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
149
+ $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>';
150
+ }
151
+
152
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
153
+ $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>';
154
+ }
155
+
156
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
157
+ $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>';
158
+ }
159
+
160
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
161
+ $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>';
162
+ }
163
+
164
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
165
+ $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>';
166
+ }
167
+
168
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
169
+ $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>';
170
+ }
171
+
172
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
173
+ $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>';
174
+ }
175
+
176
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
177
+ $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>';
178
+ }
179
+
180
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
181
+ $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>';
182
+ }
183
+
184
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
185
+ $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>';
186
+ }
187
+
188
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
189
+ $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>';
190
+ }
191
+
192
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
193
+ $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>';
194
+ }
195
+
196
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
197
+ $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>';
198
+ }
199
+
200
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
201
+ $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>';
202
+ }
203
+
204
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
205
+ $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>';
206
+ }
207
+
208
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
209
+ $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>';
210
+ }
211
+
212
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
213
+ $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>';
214
+ }
215
+
216
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
217
+ $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>';
218
+ }
219
+
220
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
221
+ $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>';
222
+ }
223
+
224
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
225
+ $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>';
226
+ }
227
+
228
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
229
+ $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>';
230
+ }
231
+
232
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
233
+ $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>';
234
+ }
235
+
236
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
237
+ $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>';
238
+ }
239
+
240
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
241
+ $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>';
242
+ }
243
+
244
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
245
+ $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>';
246
+ }
247
+
248
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
249
+ $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>';
250
+ }
251
+
252
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
253
+ $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>';
254
+ }
255
+
256
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
257
+ $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>';
258
+ }
259
+
260
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
261
+ $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>';
262
+ }
263
+
264
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
265
+ $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>';
266
+ }
267
+
268
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
269
+ $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>';
270
+ }
271
+
272
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
273
+ $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>';
274
+ }
275
+
276
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
277
+ $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>';
278
+ }
279
+
280
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
281
+ $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>';
282
+ }
283
+
284
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
285
+ $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>';
286
+ }
287
+
288
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
289
+ $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>';
290
+ }
291
+
292
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
293
+ $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>';
294
+ }
295
+
296
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
297
+ $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>';
298
+ }
299
+
300
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
301
+ $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>';
302
+ }
303
+
304
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
305
+ $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>';
306
+ }
307
+
308
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
309
+ $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>';
310
+ }
311
+
312
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
313
+ $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>';
314
+ }
315
+
316
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
317
+ $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>';
318
+ }
319
+
320
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
321
+ $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>';
322
+ }
323
+
324
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
325
+ $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>';
326
+ }
327
+
328
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
329
+ $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>';
330
+ }
331
+
332
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
333
+ $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>';
334
+ }
335
+
336
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
337
+ $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>';
338
+ }
339
+
340
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
341
+ $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>';
342
+ }
343
+
344
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
345
+ $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>';
346
+ }
347
+
348
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
349
+ $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>';
350
+ }
351
+
352
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
353
+ $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>';
354
+ }
355
+
356
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
357
+ $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>';
358
+ }
359
+
360
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
361
+ $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>';
362
+ }
363
+
364
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
365
+ $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>';
366
+ }
367
+
368
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
369
+ $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>';
370
+ }
371
+
372
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
373
+ $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>';
374
+ }
375
+
376
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
377
+ $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>';
378
+ }
379
+
380
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
381
+ $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>';
382
+ }
383
+
384
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
385
+ $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>';
386
+ }
387
+
388
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
389
+ $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>';
390
+ }
391
+
392
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
393
+ $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>';
394
+ }
395
+
396
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
397
+ $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>';
398
+ }
399
+
400
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
401
+ $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>';
402
+ }
403
+
404
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
405
+ $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>';
406
+ }
407
+
408
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
409
+ $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>';
410
+ }
411
+
412
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
413
+ $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>';
414
+ }
415
+
416
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
417
+ $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>';
418
+ }
419
+
420
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
421
+ $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>';
422
+ }
423
+
424
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
425
+ $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>';
426
+ }
427
+
428
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
429
+ $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>';
430
+ }
431
+
432
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
433
+ $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>';
434
+ }
435
+
436
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
437
+ $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>';
438
+ }
439
+
440
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
441
+ $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>';
442
+ }
443
+
444
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
445
+ $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>';
446
+ }
447
+
448
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
449
+ $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>';
450
+ }
451
+
452
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
453
+ $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>';
454
+ }
455
+
456
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
457
+ $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>';
458
+ }
459
+
460
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
461
+ $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>';
462
+ }
463
+ $str.='</div>';
464
+ }
465
+
466
+ foreach ($get_flag_choices as $key) {
467
+
468
+ }
469
+
470
+ $str.='<div id="flags">';
471
+
472
+ if ($key == '1') {
473
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
474
+ $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>';
475
+ }
476
+
477
+
478
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
479
+ $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>';
480
+ }
481
+
482
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
483
+ $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>';
484
+ }
485
+
486
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
487
+ $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>';
488
+ }
489
+
490
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
491
+ $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>';
492
+ }
493
+
494
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
495
+ $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>';
496
+ }
497
+
498
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
499
+ $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>';
500
+ }
501
+
502
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
503
+ $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>';
504
+ }
505
+
506
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
507
+ $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>';
508
+ }
509
+
510
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
511
+ $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>';
512
+ }
513
+
514
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
515
+ $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>';
516
+ }
517
+
518
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
519
+ $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>';
520
+ }
521
+
522
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
523
+ $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>';
524
+ }
525
+
526
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
527
+ $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>';
528
+ }
529
+
530
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
531
+ $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>';
532
+ }
533
+
534
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
535
+ $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>';
536
+ }
537
+
538
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
539
+ $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>';
540
+ }
541
+
542
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
543
+ $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>';
544
+ }
545
+
546
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
547
+ $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>';
548
+ }
549
+
550
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
551
+ $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>';
552
+ }
553
+
554
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
555
+ $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>';
556
+ }
557
+
558
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
559
+ $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>';
560
+ }
561
+
562
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
563
+ $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>';
564
+ }
565
+
566
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
567
+ $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>';
568
+ }
569
+
570
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
571
+ $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>';
572
+ }
573
+
574
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
575
+ $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>';
576
+ }
577
+
578
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
579
+ $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>';
580
+ }
581
+
582
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
583
+ $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>';
584
+ }
585
+
586
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
587
+ $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>';
588
+ }
589
+
590
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
591
+ $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>';
592
+ }
593
+
594
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
595
+ $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>';
596
+ }
597
+
598
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
599
+ $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>';
600
+ }
601
+
602
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
603
+ $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>';
604
+ }
605
+
606
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
607
+ $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>';
608
+ }
609
+
610
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
611
+ $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>';
612
+ }
613
+
614
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
615
+ $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>';
616
+ }
617
+
618
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
619
+ $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>';
620
+ }
621
+
622
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
623
+ $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>';
624
+ }
625
+
626
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
627
+ $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>';
628
+ }
629
+
630
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
631
+ $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>';
632
+ }
633
+
634
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
635
+ $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>';
636
+ }
637
+
638
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
639
+ $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>';
640
+ }
641
+
642
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
643
+ $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>';
644
+ }
645
+
646
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
647
+ $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>';
648
+ }
649
+
650
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
651
+ $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>';
652
+ }
653
+
654
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
655
+ $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>';
656
+ }
657
+
658
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
659
+ $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>';
660
+ }
661
+
662
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
663
+ $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>';
664
+ }
665
+
666
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
667
+ $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>';
668
+ }
669
+
670
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
671
+ $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>';
672
+ }
673
+
674
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
675
+ $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>';
676
+ }
677
+
678
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
679
+ $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>';
680
+ }
681
+
682
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
683
+ $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>';
684
+ }
685
+
686
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
687
+ $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>';
688
+ }
689
+
690
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
691
+ $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>';
692
+ }
693
+
694
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
695
+ $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>';
696
+ }
697
+
698
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
699
+ $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>';
700
+ }
701
+
702
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
703
+ $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>';
704
+ }
705
+
706
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
707
+ $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>';
708
+ }
709
+
710
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
711
+ $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>';
712
+ }
713
+
714
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
715
+ $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>';
716
+ }
717
+
718
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
719
+ $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>';
720
+ }
721
+
722
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
723
+ $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>';
724
+ }
725
+
726
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
727
+ $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>';
728
+ }
729
+
730
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
731
+ $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>';
732
+ }
733
+
734
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
735
+ $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>';
736
+ }
737
+
738
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
739
+ $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>';
740
+ }
741
+
742
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
743
+ $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>';
744
+ }
745
+
746
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
747
+ $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>';
748
+ }
749
+
750
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
751
+ $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>';
752
+ }
753
+
754
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
755
+ $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>';
756
+ }
757
+
758
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
759
+ $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>';
760
+ }
761
+
762
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
763
+ $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>';
764
+ }
765
+
766
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
767
+ $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>';
768
+ }
769
+
770
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
771
+ $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>';
772
+ }
773
+
774
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
775
+ $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>';
776
+ }
777
+
778
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
779
+ $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>';
780
+ }
781
+
782
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
783
+ $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>';
784
+ }
785
+
786
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
787
+ $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>';
788
+ }
789
+
790
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
791
+ $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>';
792
+ }
793
+
794
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
795
+ $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>';
796
+ }
797
+
798
+ $str.='</div>';
799
+
800
+ $is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
801
+ $auto_display = ', autoDisplay: false';
802
+
803
+ if ($is_multilanguage == 1) {
804
+ $multilanguagePage = ', multilanguagePage:true';
805
+
806
+ $str.='<script type="text/javascript">
807
+ function GoogleLanguageTranslatorInit() {
808
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''.$language_choices . $auto_display . $multilanguagePage . $this->analytics().'}, \'google_language_translator\');}
809
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
810
+ <div id="google_language_translator"></div>';
811
+ return $str;
812
+ } elseif ($is_multilanguage == 0) {
813
+
814
+ $str.='<script type="text/javascript">
815
+ function GoogleLanguageTranslatorInit() {
816
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''.$language_choices . $auto_display . $this->analytics().'}, \'google_language_translator\');}
817
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
818
+ <div id="google_language_translator"></div>';
819
+ return $str;
820
+ }
821
+ }
822
+ }
823
+ } // End glt_vertical
824
+
825
+ public function googlelanguagetranslator_horizontal(){
826
+ $is_active = get_option ( 'googlelanguagetranslator_active' );
827
+ $get_flag_choices = get_option ('flag_display_settings');
828
+ $get_language_option = get_option('googlelanguagetranslator_language_option');
829
+ $language_choices = $this->googlelanguagetranslator_included_languages();
830
+ $floating_widget = get_option ('googlelanguagetranslator_floating_widget');
831
+ $str = '';
832
+
833
+ if( $is_active == 1){
834
+ if ($floating_widget=='yes' && $get_language_option != 'specific') {
835
+ $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</strong></div>';
836
+ $str.='<div id="glt-toolbar">';
837
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
838
+ $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>';
839
+ }
840
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
841
+ $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>';
842
+ }
843
+
844
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
845
+ $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>';
846
+ }
847
+
848
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
849
+ $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>';
850
+ }
851
+
852
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
853
+ $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>';
854
+ }
855
+
856
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
857
+ $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>';
858
+ }
859
+
860
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
861
+ $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>';
862
+ }
863
+
864
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
865
+ $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>';
866
+ }
867
+
868
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
869
+ $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>';
870
+ }
871
+
872
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
873
+ $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>';
874
+ }
875
+
876
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
877
+ $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>';
878
+ }
879
+
880
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
881
+ $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>';
882
+ }
883
+
884
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
885
+ $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>';
886
+ }
887
+
888
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
889
+ $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>';
890
+ }
891
+
892
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
893
+ $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>';
894
+ }
895
+
896
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
897
+ $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>';
898
+ }
899
+
900
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
901
+ $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>';
902
+ }
903
+
904
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
905
+ $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>';
906
+ }
907
+
908
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
909
+ $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>';
910
+ }
911
+
912
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
913
+ $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>';
914
+ }
915
+
916
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
917
+ $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>';
918
+ }
919
+
920
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
921
+ $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>';
922
+ }
923
+
924
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
925
+ $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>';
926
+ }
927
+
928
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
929
+ $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>';
930
+ }
931
+
932
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
933
+ $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>';
934
+ }
935
+
936
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
937
+ $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>';
938
+ }
939
+
940
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
941
+ $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>';
942
+ }
943
+
944
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
945
+ $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>';
946
+ }
947
+
948
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
949
+ $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>';
950
+ }
951
+
952
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
953
+ $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>';
954
+ }
955
+
956
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
957
+ $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>';
958
+ }
959
+
960
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
961
+ $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>';
962
+ }
963
+
964
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
965
+ $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>';
966
+ }
967
+
968
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
969
+ $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>';
970
+ }
971
+
972
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
973
+ $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>';
974
+ }
975
+
976
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
977
+ $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>';
978
+ }
979
+
980
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
981
+ $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>';
982
+ }
983
+
984
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
985
+ $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>';
986
+ }
987
+
988
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
989
+ $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>';
990
+ }
991
+
992
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
993
+ $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>';
994
+ }
995
+
996
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
997
+ $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>';
998
+ }
999
+
1000
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1001
+ $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>';
1002
+ }
1003
+
1004
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1005
+ $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>';
1006
+ }
1007
+
1008
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1009
+ $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>';
1010
+ }
1011
+
1012
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1013
+ $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>';
1014
+ }
1015
+
1016
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1017
+ $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>';
1018
+ }
1019
+
1020
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1021
+ $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>';
1022
+ }
1023
+
1024
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1025
+ $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>';
1026
+ }
1027
+
1028
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1029
+ $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>';
1030
+ }
1031
+
1032
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1033
+ $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>';
1034
+ }
1035
+
1036
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1037
+ $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>';
1038
+ }
1039
+
1040
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1041
+ $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>';
1042
+ }
1043
+
1044
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
1045
+ $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>';
1046
+ }
1047
+
1048
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1049
+ $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>';
1050
+ }
1051
+
1052
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
1053
+ $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>';
1054
+ }
1055
+
1056
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
1057
+ $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>';
1058
+ }
1059
+
1060
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1061
+ $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>';
1062
+ }
1063
+
1064
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1065
+ $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>';
1066
+ }
1067
+
1068
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1069
+ $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>';
1070
+ }
1071
+
1072
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1073
+ $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>';
1074
+ }
1075
+
1076
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
1077
+ $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>';
1078
+ }
1079
+
1080
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1081
+ $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>';
1082
+ }
1083
+
1084
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1085
+ $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>';
1086
+ }
1087
+
1088
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1089
+ $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>';
1090
+ }
1091
+
1092
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1093
+ $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>';
1094
+ }
1095
+
1096
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1097
+ $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>';
1098
+ }
1099
+
1100
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
1101
+ $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>';
1102
+ }
1103
+
1104
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1105
+ $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>';
1106
+ }
1107
+
1108
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1109
+ $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>';
1110
+ }
1111
+
1112
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1113
+ $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>';
1114
+ }
1115
+
1116
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1117
+ $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>';
1118
+ }
1119
+
1120
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1121
+ $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>';
1122
+ }
1123
+
1124
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1125
+ $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>';
1126
+ }
1127
+
1128
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1129
+ $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>';
1130
+ }
1131
+
1132
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1133
+ $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>';
1134
+ }
1135
+
1136
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1137
+ $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>';
1138
+ }
1139
+
1140
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1141
+ $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>';
1142
+ }
1143
+
1144
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1145
+ $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>';
1146
+ }
1147
+
1148
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1149
+ $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>';
1150
+ }
1151
+
1152
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
1153
+ $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>';
1154
+ }
1155
+
1156
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
1157
+ $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>';
1158
+ }
1159
+ $str.='</div>';
1160
+ }
1161
+
1162
+ foreach ($get_flag_choices as $key) {
1163
+ }
1164
+
1165
+ $str.='<div id="flags">';
1166
+
1167
+ if ($key == '1') {
1168
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
1169
+ $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>';
1170
+ }
1171
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
1172
+ $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>';
1173
+ }
1174
+
1175
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
1176
+ $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>';
1177
+ }
1178
+
1179
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1180
+ $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>';
1181
+ }
1182
+
1183
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
1184
+ $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>';
1185
+ }
1186
+
1187
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
1188
+ $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>';
1189
+ }
1190
+
1191
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
1192
+ $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>';
1193
+ }
1194
+
1195
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
1196
+ $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>';
1197
+ }
1198
+
1199
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
1200
+ $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>';
1201
+ }
1202
+
1203
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
1204
+ $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>';
1205
+ }
1206
+
1207
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
1208
+ $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>';
1209
+ }
1210
+
1211
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
1212
+ $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>';
1213
+ }
1214
+
1215
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
1216
+ $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>';
1217
+ }
1218
+
1219
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
1220
+ $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>';
1221
+ }
1222
+
1223
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
1224
+ $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>';
1225
+ }
1226
+
1227
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
1228
+ $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>';
1229
+ }
1230
+
1231
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
1232
+ $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>';
1233
+ }
1234
+
1235
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
1236
+ $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>';
1237
+ }
1238
+
1239
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
1240
+ $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>';
1241
+ }
1242
+
1243
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1244
+ $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>';
1245
+ }
1246
+
1247
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
1248
+ $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>';
1249
+ }
1250
+
1251
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1252
+ $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>';
1253
+ }
1254
+
1255
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1256
+ $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>';
1257
+ }
1258
+
1259
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1260
+ $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>';
1261
+ }
1262
+
1263
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1264
+ $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>';
1265
+ }
1266
+
1267
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1268
+ $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>';
1269
+ }
1270
+
1271
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
1272
+ $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>';
1273
+ }
1274
+
1275
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
1276
+ $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>';
1277
+ }
1278
+
1279
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1280
+ $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>';
1281
+ }
1282
+
1283
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1284
+ $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>';
1285
+ }
1286
+
1287
+ if ( isset ( $get_flag_choices['flag-ha'] ) ) {
1288
+ $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>';
1289
+ }
1290
+
1291
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1292
+ $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>';
1293
+ }
1294
+
1295
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1296
+ $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>';
1297
+ }
1298
+
1299
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1300
+ $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>';
1301
+ }
1302
+
1303
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1304
+ $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>';
1305
+ }
1306
+
1307
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
1308
+ $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>';
1309
+ }
1310
+
1311
+ if ( isset ( $get_flag_choices['flag-ig'] ) ) {
1312
+ $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>';
1313
+ }
1314
+
1315
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
1316
+ $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>';
1317
+ }
1318
+
1319
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1320
+ $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>';
1321
+ }
1322
+
1323
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
1324
+ $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>';
1325
+ }
1326
+
1327
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1328
+ $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>';
1329
+ }
1330
+
1331
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1332
+ $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>';
1333
+ }
1334
+
1335
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1336
+ $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>';
1337
+ }
1338
+
1339
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1340
+ $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>';
1341
+ }
1342
+
1343
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1344
+ $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>';
1345
+ }
1346
+
1347
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1348
+ $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>';
1349
+ }
1350
+
1351
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1352
+ $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>';
1353
+ }
1354
+
1355
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1356
+ $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>';
1357
+ }
1358
+
1359
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1360
+ $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>';
1361
+ }
1362
+
1363
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1364
+ $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>';
1365
+ }
1366
+
1367
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1368
+ $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>';
1369
+ }
1370
+
1371
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1372
+ $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>';
1373
+ }
1374
+
1375
+ if ( isset ( $get_flag_choices['flag-mi'] ) ) {
1376
+ $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>';
1377
+ }
1378
+
1379
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1380
+ $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>';
1381
+ }
1382
+
1383
+ if ( isset ( $get_flag_choices['flag-mn'] ) ) {
1384
+ $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>';
1385
+ }
1386
+
1387
+ if ( isset ( $get_flag_choices['flag-ne'] ) ) {
1388
+ $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>';
1389
+ }
1390
+
1391
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1392
+ $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>';
1393
+ }
1394
+
1395
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1396
+ $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>';
1397
+ }
1398
+
1399
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1400
+ $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>';
1401
+ }
1402
+
1403
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1404
+ $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>';
1405
+ }
1406
+
1407
+ if ( isset ( $get_flag_choices['flag-pa'] ) ) {
1408
+ $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>';
1409
+ }
1410
+
1411
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1412
+ $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>';
1413
+ }
1414
+
1415
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1416
+ $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>';
1417
+ }
1418
+
1419
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1420
+ $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>';
1421
+ }
1422
+
1423
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1424
+ $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>';
1425
+ }
1426
+
1427
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1428
+ $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>';
1429
+ }
1430
+
1431
+ if ( isset ( $get_flag_choices['flag-so'] ) ) {
1432
+ $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>';
1433
+ }
1434
+
1435
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1436
+ $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>';
1437
+ }
1438
+
1439
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1440
+ $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>';
1441
+ }
1442
+
1443
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1444
+ $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>';
1445
+ }
1446
+
1447
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1448
+ $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>';
1449
+ }
1450
+
1451
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1452
+ $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>';
1453
+ }
1454
+
1455
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1456
+ $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>';
1457
+ }
1458
+
1459
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1460
+ $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>';
1461
+ }
1462
+
1463
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1464
+ $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>';
1465
+ }
1466
+
1467
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1468
+ $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>';
1469
+ }
1470
+
1471
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1472
+ $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>';
1473
+ }
1474
+
1475
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1476
+ $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>';
1477
+ }
1478
+
1479
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1480
+ $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>';
1481
+ }
1482
+
1483
+ if ( isset ( $get_flag_choices['flag-yo'] ) ) {
1484
+ $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>';
1485
+ }
1486
+
1487
+ if ( isset ( $get_flag_choices['flag-zu'] ) ) {
1488
+ $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>';
1489
+ }
1490
+ $str.='</div>';
1491
+
1492
+ $is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
1493
+ $horizontal_layout = ', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL';
1494
+ $auto_display = ', autoDisplay: false';
1495
+
1496
+ if ($is_multilanguage == 1) {
1497
+ $multilanguagePage = ', multilanguagePage:true';
1498
+
1499
+ $str.='<script type="text/javascript">
1500
+ function GoogleLanguageTranslatorInit() {
1501
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''. $language_choices . $horizontal_layout . $auto_display . $multilanguagePage . $this->analytics().'}, \'google_language_translator\');}
1502
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1503
+ <div id="google_language_translator"></div>';
1504
+ return $str;
1505
+ } elseif ($is_multilanguage == 0) {
1506
+
1507
+ $str.='<script type="text/javascript">
1508
+ function GoogleLanguageTranslatorInit() {
1509
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\''. $language_choices . $horizontal_layout . $auto_display . $this->analytics().'}, \'google_language_translator\');}
1510
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1511
+ <div id="google_language_translator"></div>';
1512
+ return $str;
1513
+ }
1514
+ }
1515
+ }
1516
+ } // End glt_horizontal
1517
+
1518
+ public function initialize_settings() {
1519
+
1520
+ // First, we register a section. This is necessary since all future options must belong to one.
1521
+ add_settings_section(
1522
+ 'glt_settings', // ID used to identify this section and with which to register options
1523
+ 'Settings', // Title to be displayed on the administration page
1524
+ '', // Callback used to render the description of the section
1525
+ 'google_language_translator' // Page on which to add this section of options
1526
+ );
1527
+
1528
+ //Fieldset 1
1529
+ add_settings_field( 'googlelanguagetranslator_active','Plugin status:','googlelanguagetranslator_active_cb','google_language_translator','glt_settings');
1530
+ add_settings_field( 'googlelanguagetranslator_language','Choose the original language of your website','','googlelanguagetranslator_language_cb','glt_settings');
1531
+ add_settings_field( 'googlelanguagetranslator_language_option','What translation languages will you display to website visitors?','googlelanguagetranslator_language_option_cb','google_language_translator','glt_settings');
1532
+ add_settings_field( 'language_display_settings','Your language choices','language_display_settings_cb','google_language_translator','glt_settings');
1533
+ add_settings_field( 'googlelanguagetranslator_flags','Show Flag Images?','googlelanguagetranslator_flags_cb','google_language_translator','glt_settings');
1534
+ add_settings_field( 'flag_display_settings','Flag Options','flag_display_settings_cb','google_language_translator','glt_settings');
1535
+ add_settings_field( 'googlelanguagetranslator_translatebox','Show Translate Box?','googlelanguagetranslator_translatebox_cb','google_language_translator','glt_settings');
1536
+ add_settings_field( 'googlelanguagetranslator_display', 'Layout Options','googlelanguagetranslator_display_cb','google_language_translator','glt_settings');
1537
+ add_settings_field( 'googlelanguagetranslator_toolbar', 'Show Toolbar','googlelanguagetranslator_toolbar_cb','google_language_translator','glt_settings');
1538
+ add_settings_field( 'googlelanguagetranslator_showbranding', 'Show Google Branding','googlelanguagetranslator_showbranding_cb','google_language_translator','glt_settings');
1539
+ add_settings_field( 'googlelanguagetranslator_flags_alignment', 'Align Flags Right or Left', 'googlelanguagetranslator_flags_alignment_cb','google_language_translator','glt_settings');
1540
+ add_settings_field( 'googlelanguagetranslator_analytics','Activate Google Analytics tracking?','googlelanguagetranslator_analytics_cb','google_language_translator','glt_settings');
1541
+ add_settings_field( 'googlelanguagetranslator_analytics_id','Enter your Google Analytics ID','googlelanguagetranslator_analytics_id_cb','google_language_translator','glt_settings');
1542
+ add_settings_field( 'googlelanguagetranslator_css','Custom CSS Overrides','googlelanguagetranslator_css_cb','google_language_translator','glt_settings');
1543
+ add_settings_field( 'googlelanguagetranslator_manage_translations','Turn on translation management?','googlelanguagetranslator_manage_translations_cb','google_language_translator','glt_settings');
1544
+ add_settings_field( 'googlelanguagetranslator_multilanguage','Multilanguage webpages?','googlelanguagetranslator_multilanguage_cb','google_language_translator','glt_settings');
1545
+ add_settings_field( 'googlelanguagetranslator_floating_widget','Show floating translation widget?','googlelanguagetranslator_floating_widget_cb','google_language_translator','glt_settings');
1546
+
1547
+ //Register Fieldset 1
1548
+ register_setting( 'google_language_translator','googlelanguagetranslator_active');
1549
+ register_setting( 'google_language_translator','googlelanguagetranslator_language');
1550
+ register_setting( 'google_language_translator','googlelanguagetranslator_language_option');
1551
+ register_setting( 'google_language_translator','language_display_settings');
1552
+ register_setting( 'google_language_translator','googlelanguagetranslator_flags');
1553
+ register_setting( 'google_language_translator','flag_display_settings');
1554
+ register_setting( 'google_language_translator','googlelanguagetranslator_translatebox');
1555
+ register_setting( 'google_language_translator','googlelanguagetranslator_display');
1556
+ register_setting( 'google_language_translator','googlelanguagetranslator_toolbar');
1557
+ register_setting( 'google_language_translator','googlelanguagetranslator_showbranding');
1558
+ register_setting( 'google_language_translator','googlelanguagetranslator_flags_alignment');
1559
+ register_setting( 'google_language_translator','googlelanguagetranslator_disable_mootools');
1560
+ register_setting( 'google_language_translator','googlelanguagetranslator_disable_modal');
1561
+ register_setting( 'google_language_translator','googlelanguagetranslator_analytics');
1562
+ register_setting( 'google_language_translator','googlelanguagetranslator_analytics_id');
1563
+ register_setting( 'google_language_translator','googlelanguagetranslator_css');
1564
+ register_setting( 'google_language_translator','googlelanguagetranslator_manage_translations');
1565
+ register_setting( 'google_language_translator','googlelanguagetranslator_multilanguage');
1566
+ register_setting( 'google_language_translator','googlelanguagetranslator_floating_widget');
1567
+ }
1568
+
1569
+ public function googlelanguagetranslator_active_cb() {
1570
+
1571
+ $option_name = 'googlelanguagetranslator_active' ;
1572
+ $new_value = 1;
1573
+
1574
+ if ( get_option( $option_name ) === false ) {
1575
+
1576
+ // The option does not exist, so we update it.
1577
+ update_option( $option_name, $new_value );
1578
+ }
1579
+
1580
+ $options = get_option (''.$option_name.'');
1581
+
1582
+ $html = '<input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" '.checked(1,$options,false).'/> &nbsp; Activate Google Language Translator?';
1583
+ echo $html;
1584
+ }
1585
+
1586
+ public function googlelanguagetranslator_language_cb() {
1587
+
1588
+ $option_name = 'googlelanguagetranslator_language';
1589
+ $new_value = 'en';
1590
+
1591
+ if ( get_option( $option_name ) === false ) {
1592
+
1593
+ // The option does not exist, so we update it.
1594
+ update_option( $option_name, $new_value );
1595
+ }
1596
+
1597
+ $options = get_option (''.$option_name.''); ?>
1598
+ <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language">
1599
+ <option value="af" <?php if($options=='af'){echo "selected";}?>>Afrikaans</option>
1600
+ <option value="sq" <?php if($options=='sq'){echo "selected";}?>>Albanian</option>
1601
+ <option value="ar" <?php if($options=='ar'){echo "selected";}?>>Arabic</option>
1602
+ <option value="hy" <?php if($options=='hy'){echo "selected";}?>>Armenian</option>
1603
+ <option value="az" <?php if($options=='az'){echo "selected";}?>>Azerbaijani</option>
1604
+ <option value="eu" <?php if($options=='eu'){echo "selected";}?>>Basque</option>
1605
+ <option value="be" <?php if($options=='be'){echo "selected";}?>>Belarusian</option>
1606
+ <option value="bn" <?php if($options=='bn'){echo "selected";}?>>Bengali</option>
1607
+ <option value="bs" <?php if($options=='bs'){echo "selected";}?>>Bosnian</option>
1608
+ <option value="bg" <?php if($options=='bg'){echo "selected";}?>>Bulgarian</option>
1609
+ <option value="ca" <?php if($options=='ca'){echo "selected";}?>>Catalan</option>
1610
+ <option value="ceb" <?php if($options=='ceb'){echo "selected";}?>>Cebuano</option>
1611
+ <option value="zh-CN" <?php if($options=='zh-CN'){echo "selected";}?>>Chinese</option>
1612
+ <option value="zh-TW" <?php if($options=='zh-TW'){echo "selected";}?>>Chinese (Han)</option>
1613
+ <option value="hr" <?php if($options=='hr'){echo "selected";}?>>Croatian</option>
1614
+ <option value="cs" <?php if($options=='cs'){echo "selected";}?>>Czech</option>
1615
+ <option value="da" <?php if($options=='da'){echo "selected";}?>>Danish</option>
1616
+ <option value="nl" <?php if($options=='nl'){echo "selected";}?>>Dutch</option>
1617
+ <option value="en" <?php if($options=='en'){echo "selected";}?>>English</option>
1618
+ <option value="eo" <?php if($options=='eo'){echo "selected";}?>>Esperanto</option>
1619
+ <option value="et" <?php if($options=='et'){echo "selected";}?>>Estonian</option>
1620
+ <option value="tl" <?php if($options=='tl'){echo "selected";}?>>Filipino</option>
1621
+ <option value="fi" <?php if($options=='fi'){echo "selected";}?>>Finnish</option>
1622
+ <option value="fr" <?php if($options=='fr'){echo "selected";}?>>French</option>
1623
+ <option value="gl" <?php if($options=='gl'){echo "selected";}?>>Galician</option>
1624
+ <option value="ka" <?php if($options=='ka'){echo "selected";}?>>Georgian</option>
1625
+ <option value="de" <?php if($options=='de'){echo "selected";}?>>German</option>
1626
+ <option value="el" <?php if($options=='el'){echo "selected";}?>>Greek</option>
1627
+ <option value="gu" <?php if($options=='gu'){echo "selected";}?>>Gujarati</option>
1628
+ <option value="ht" <?php if($options=='ht'){echo "selected";}?>>Haitian Creole</option>
1629
+ <option value="ha" <?php if($options=='ha'){echo "selected";}?>>Hausa</option>
1630
+ <option value="iw" <?php if($options=='iw'){echo "selected";}?>>Hebrew</option>
1631
+ <option value="hi" <?php if($options=='hi'){echo "selected";}?>>Hindi</option>
1632
+ <option value="hmn" <?php if($options=='hmn'){echo "selected";}?>>Hmong</option>
1633
+ <option value="hu" <?php if($options=='hu'){echo "selected";}?>>Hungarian</option>
1634
+ <option value="is" <?php if($options=='is'){echo "selected";}?>>Icelandic</option>
1635
+ <option value="ig" <?php if($options=='ig'){echo "selected";}?>>Igbo</option>
1636
+ <option value="id" <?php if($options=='id'){echo "selected";}?>>Indonesian</option>
1637
+ <option value="ga" <?php if($options=='ga'){echo "selected";}?>>Irish</option>
1638
+ <option value="it" <?php if($options=='it'){echo "selected";}?>>Italian</option>
1639
+ <option value="ja" <?php if($options=='ja'){echo "selected";}?>>Japanese</option>
1640
+ <option value="jw" <?php if($options=='jw'){echo "selected";}?>>Javanese</option>
1641
+ <option value="kn" <?php if($options=='kn'){echo "selected";}?>>Kannada</option>
1642
+ <option value="km" <?php if($options=='km'){echo "selected";}?>>Khmer</option>
1643
+ <option value="ko" <?php if($options=='ko'){echo "selected";}?>>Korean</option>
1644
+ <option value="lo" <?php if($options=='lo'){echo "selected";}?>>Lao</option>
1645
+ <option value="la" <?php if($options=='la'){echo "selected";}?>>Latin</option>
1646
+ <option value="lv" <?php if($options=='lv'){echo "selected";}?>>Latvian</option>
1647
+ <option value="lt" <?php if($options=='lt'){echo "selected";}?>>Lithuanian</option>
1648
+ <option value="mk" <?php if($options=='mk'){echo "selected";}?>>Macedonian</option>
1649
+ <option value="ms" <?php if($options=='ms'){echo "selected";}?>>Malay</option>
1650
+ <option value="mt" <?php if($options=='mt'){echo "selected";}?>>Maltese</option>
1651
+ <option value="mi" <?php if($options=='mi'){echo "selected";}?>>Maori</option>
1652
+ <option value="mr" <?php if($options=='mr'){echo "selected";}?>>Marathi</option>
1653
+ <option value="mn" <?php if($options=='mn'){echo "selected";}?>>Mongolian</option>
1654
+ <option value="ne" <?php if($options=='ne'){echo "selected";}?>>Nepali</option>
1655
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>Norwegian</option>
1656
+ <option value="fa" <?php if($options=='fa'){echo "selected";}?>>Persian</option>
1657
+ <option value="pl" <?php if($options=='pl'){echo "selected";}?>>Polish</option>
1658
+ <option value="pt" <?php if($options=='pt'){echo "selected";}?>>Portuguese</option>
1659
+ <option value="pa" <?php if($options=='pa'){echo "selected";}?>>Punjabi</option>
1660
+ <option value="ro" <?php if($options=='ro'){echo "selected";}?>>Romanian</option>
1661
+ <option value="ru" <?php if($options=='ru'){echo "selected";}?>>Russian</option>
1662
+ <option value="sr" <?php if($options=='sr'){echo "selected";}?>>Serbian</option>
1663
+ <option value="sk" <?php if($options=='sk'){echo "selected";}?>>Slovak</option>
1664
+ <option value="sl" <?php if($options=='sl'){echo "selected";}?>>Slovenian</option>
1665
+ <option value="so" <?php if($options=='so'){echo "selected";}?>>Somali</option>
1666
+ <option value="es" <?php if($options=='es'){echo "selected";}?>>Spanish</option>
1667
+ <option value="sw" <?php if($options=='sw'){echo "selected";}?>>Swahili</option>
1668
+ <option value="sv" <?php if($options=='sv'){echo "selected";}?>>Swedish</option>
1669
+ <option value="ta" <?php if($options=='ta'){echo "selected";}?>>Tamil</option>
1670
+ <option value="te" <?php if($options=='te'){echo "selected";}?>>Telugu</option>
1671
+ <option value="th" <?php if($options=='th'){echo "selected";}?>>Thai</option>
1672
+ <option value="tr" <?php if($options=='tr'){echo "selected";}?>>Turkish</option>
1673
+ <option value="uk" <?php if($options=='uk'){echo "selected";}?>>Ukranian</option>
1674
+ <option value="ur" <?php if($options=='ur'){echo "selected";}?>>Urdu</option>
1675
+ <option value="vi" <?php if($options=='vi'){echo "selected";}?>>Vietnamese</option>
1676
+ <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Welsh</option>
1677
+ <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Yiddish</option>
1678
+ <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Yoruba</option>
1679
+ <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Zulu</option>
1680
+
1681
+ </select>
1682
+ <?php
1683
+ }
1684
+
1685
+ public function googlelanguagetranslator_language_option_cb() {
1686
+
1687
+ $option_name = 'googlelanguagetranslator_language_option' ;
1688
+ $new_value = 'all';
1689
+
1690
+ if ( get_option( $option_name ) === false ) {
1691
+
1692
+ // The option does not exist, so we update it.
1693
+ update_option( $option_name, $new_value );
1694
+ }
1695
+
1696
+ $options = get_option (''.$option_name.''); ?>
1697
+
1698
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="all" <?php if($options=='all'){echo "checked";}?>/> All Languages<br/>
1699
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="specific" <?php if($options=='specific'){echo "checked";}?>/> Specific Languages
1700
+ <?php
1701
+ }
1702
+
1703
+ public function language_display_settings_cb() {
1704
+ $defaults = array (
1705
+ 'en' => 1
1706
+ );
1707
+
1708
+ $option_name = 'language_display_settings' ;
1709
+ $new_value = $defaults;
1710
+
1711
+ if ( get_option( $option_name ) === false ) {
1712
+
1713
+ // The option does not exist, so we update it.
1714
+ update_option( $option_name, $new_value );
1715
+ }
1716
+
1717
+ $get_language_choices = get_option (''.$option_name.'');
1718
+
1719
+ if (!isset ( $get_language_choices ['af'] ) ) {
1720
+ $get_language_choices['af'] = 0;
1721
+ }
1722
+
1723
+ if (!isset ( $get_language_choices ['sq'] ) ) {
1724
+ $get_language_choices['sq'] = 0;
1725
+ }
1726
+
1727
+ if (!isset ( $get_language_choices ['ar'] ) ) {
1728
+ $get_language_choices['ar'] = 0;
1729
+ }
1730
+
1731
+ if (!isset ( $get_language_choices ['hy'] ) ) {
1732
+ $get_language_choices['hy'] = 0;
1733
+ }
1734
+
1735
+ if (!isset ( $get_language_choices ['az'] ) ) {
1736
+ $get_language_choices['az'] = 0;
1737
+ }
1738
+
1739
+ if (!isset ( $get_language_choices ['eu'] ) ) {
1740
+ $get_language_choices['eu'] = 0;
1741
+ }
1742
+
1743
+ if (!isset ( $get_language_choices ['be'] ) ) {
1744
+ $get_language_choices['be'] = 0;
1745
+ }
1746
+
1747
+ if (!isset ( $get_language_choices ['bn'] ) ) {
1748
+ $get_language_choices['bn'] = 0;
1749
+ }
1750
+
1751
+ if (!isset ( $get_language_choices ['bs'] ) ) {
1752
+ $get_language_choices['bs'] = 0;
1753
+ }
1754
+
1755
+ if (!isset ( $get_language_choices ['bg'] ) ) {
1756
+ $get_language_choices['bg'] = 0;
1757
+ }
1758
+
1759
+ if (!isset ( $get_language_choices ['ca'] ) ) {
1760
+ $get_language_choices['ca'] = 0;
1761
+ }
1762
+
1763
+ if (!isset ( $get_language_choices ['ceb'] ) ) {
1764
+ $get_language_choices['ceb'] = 0;
1765
+ }
1766
+
1767
+ if (!isset ( $get_language_choices ['zh-CN'] ) ) {
1768
+ $get_language_choices['zh-CN'] = 0;
1769
+ }
1770
+
1771
+ if (!isset ( $get_language_choices ['zh-TW'] ) ) {
1772
+ $get_language_choices['zh-TW'] = 0;
1773
+ }
1774
+
1775
+ if (!isset ( $get_language_choices ['hr'] ) ) {
1776
+ $get_language_choices['hr'] = 0;
1777
+ }
1778
+
1779
+ if (!isset ( $get_language_choices ['cs'] ) ) {
1780
+ $get_language_choices['cs'] = 0;
1781
+ }
1782
+
1783
+ if (!isset ( $get_language_choices ['da'] ) ) {
1784
+ $get_language_choices['da'] = 0;
1785
+ }
1786
+
1787
+ if (!isset ( $get_language_choices ['nl'] ) ) {
1788
+ $get_language_choices['nl'] = 0;
1789
+ }
1790
+
1791
+ if (!isset ( $get_language_choices ['en'] ) ) {
1792
+ $get_language_choices['en'] = 1;
1793
+ }
1794
+
1795
+ if (!isset ( $get_language_choices ['eo'] ) ) {
1796
+ $get_language_choices['eo'] = 0;
1797
+ }
1798
+
1799
+ if (!isset ( $get_language_choices ['et'] ) ) {
1800
+ $get_language_choices['et'] = 0;
1801
+ }
1802
+
1803
+ if (!isset ( $get_language_choices ['tl'] ) ) {
1804
+ $get_language_choices['tl'] = 0;
1805
+ }
1806
+
1807
+ if (!isset ( $get_language_choices ['fi'] ) ) {
1808
+ $get_language_choices['fi'] = 0;
1809
+ }
1810
+
1811
+ if (!isset ( $get_language_choices ['fr'] ) ) {
1812
+ $get_language_choices['fr'] = 0;
1813
+ }
1814
+
1815
+ if (!isset ( $get_language_choices ['gl'] ) ) {
1816
+ $get_language_choices['gl'] = 0;
1817
+ }
1818
+
1819
+ if (!isset ( $get_language_choices ['ka'] ) ) {
1820
+ $get_language_choices['ka'] = 0;
1821
+ }
1822
+
1823
+ if (!isset ( $get_language_choices ['de'] ) ) {
1824
+ $get_language_choices['de'] = 0;
1825
+ }
1826
+
1827
+ if (!isset ( $get_language_choices ['el'] ) ) {
1828
+ $get_language_choices['el'] = 0;
1829
+ }
1830
+
1831
+ if (!isset ( $get_language_choices ['gu'] ) ) {
1832
+ $get_language_choices['gu'] = 0;
1833
+ }
1834
+
1835
+ if (!isset ( $get_language_choices ['ht'] ) ) {
1836
+ $get_language_choices['ht'] = 0;
1837
+ }
1838
+
1839
+ if (!isset ( $get_language_choices ['ha'] ) ) {
1840
+ $get_language_choices['ha'] = 0;
1841
+ }
1842
+
1843
+ if (!isset ( $get_language_choices ['iw'] ) ) {
1844
+ $get_language_choices['iw'] = 0;
1845
+ }
1846
+
1847
+ if (!isset ( $get_language_choices ['hi'] ) ) {
1848
+ $get_language_choices['hi'] = 0;
1849
+ }
1850
+
1851
+ if (!isset ( $get_language_choices ['hmn'] ) ) {
1852
+ $get_language_choices['hmn'] = 0;
1853
+ }
1854
+
1855
+ if (!isset ( $get_language_choices ['hu'] ) ) {
1856
+ $get_language_choices['hu'] = 0;
1857
+ }
1858
+
1859
+ if (!isset ( $get_language_choices ['is'] ) ) {
1860
+ $get_language_choices['is'] = 0;
1861
+ }
1862
+
1863
+ if (!isset ( $get_language_choices ['ig'] ) ) {
1864
+ $get_language_choices['ig'] = 0;
1865
+ }
1866
+
1867
+ if (!isset ( $get_language_choices ['id'] ) ) {
1868
+ $get_language_choices['id'] = 0;
1869
+ }
1870
+
1871
+ if (!isset ( $get_language_choices ['ga'] ) ) {
1872
+ $get_language_choices['ga'] = 0;
1873
+ }
1874
+
1875
+ if (!isset ( $get_language_choices ['it'] ) ) {
1876
+ $get_language_choices['it'] = 0;
1877
+ }
1878
+
1879
+ if (!isset ( $get_language_choices ['ja'] ) ) {
1880
+ $get_language_choices['ja'] = 0;
1881
+ }
1882
+
1883
+ if (!isset ( $get_language_choices ['jw'] ) ) {
1884
+ $get_language_choices['jw'] = 0;
1885
+ }
1886
+
1887
+ if (!isset ( $get_language_choices ['kn'] ) ) {
1888
+ $get_language_choices['kn'] = 0;
1889
+ }
1890
+
1891
+ if (!isset ( $get_language_choices ['km'] ) ) {
1892
+ $get_language_choices['km'] = 0;
1893
+ }
1894
+
1895
+ if (!isset ( $get_language_choices ['ko'] ) ) {
1896
+ $get_language_choices['ko'] = 0;
1897
+ }
1898
+
1899
+ if (!isset ( $get_language_choices ['lo'] ) ) {
1900
+ $get_language_choices['lo'] = 0;
1901
+ }
1902
+
1903
+ if (!isset ( $get_language_choices ['la'] ) ) {
1904
+ $get_language_choices['la'] = 0;
1905
+ }
1906
+
1907
+ if (!isset ( $get_language_choices ['lv'] ) ) {
1908
+ $get_language_choices['lv'] = 0;
1909
+ }
1910
+
1911
+ if (!isset ( $get_language_choices ['lt'] ) ) {
1912
+ $get_language_choices['lt'] = 0;
1913
+ }
1914
+
1915
+ if (!isset ( $get_language_choices ['mk'] ) ) {
1916
+ $get_language_choices['mk'] = 0;
1917
+ }
1918
+
1919
+ if (!isset ( $get_language_choices ['ms'] ) ) {
1920
+ $get_language_choices['ms'] = 0;
1921
+ }
1922
+
1923
+ if (!isset ( $get_language_choices ['mt'] ) ) {
1924
+ $get_language_choices['mt'] = 0;
1925
+ }
1926
+
1927
+ if (!isset ( $get_language_choices ['mi'] ) ) {
1928
+ $get_language_choices['mi'] = 0;
1929
+ }
1930
+
1931
+ if (!isset ( $get_language_choices ['mr'] ) ) {
1932
+ $get_language_choices['mr'] = 0;
1933
+ }
1934
+
1935
+ if (!isset ( $get_language_choices ['mn'] ) ) {
1936
+ $get_language_choices['mn'] = 0;
1937
+ }
1938
+
1939
+ if (!isset ( $get_language_choices ['ne'] ) ) {
1940
+ $get_language_choices['ne'] = 0;
1941
+ }
1942
+
1943
+ if (!isset ( $get_language_choices ['no'] ) ) {
1944
+ $get_language_choices['no'] = 0;
1945
+ }
1946
+
1947
+ if (!isset ( $get_language_choices ['fa'] ) ) {
1948
+ $get_language_choices['fa'] = 0;
1949
+ }
1950
+
1951
+ if (!isset ( $get_language_choices ['pl'] ) ) {
1952
+ $get_language_choices['pl'] = 0;
1953
+ }
1954
+
1955
+ if (!isset ( $get_language_choices ['pt'] ) ) {
1956
+ $get_language_choices['pt'] = 0;
1957
+ }
1958
+
1959
+ if (!isset ( $get_language_choices ['pa'] ) ) {
1960
+ $get_language_choices['pa'] = 0;
1961
+ }
1962
+
1963
+ if (!isset ( $get_language_choices ['ro'] ) ) {
1964
+ $get_language_choices['ro'] = 0;
1965
+ }
1966
+
1967
+ if (!isset ( $get_language_choices ['ru'] ) ) {
1968
+ $get_language_choices['ru'] = 0;
1969
+ }
1970
+
1971
+ if (!isset ( $get_language_choices ['sr'] ) ) {
1972
+ $get_language_choices['sr'] = 0;
1973
+ }
1974
+
1975
+ if (!isset ( $get_language_choices ['sk'] ) ) {
1976
+ $get_language_choices['sk'] = 0;
1977
+ }
1978
+
1979
+ if (!isset ( $get_language_choices ['sl'] ) ) {
1980
+ $get_language_choices['sl'] = 0;
1981
+ }
1982
+
1983
+ if (!isset ( $get_language_choices ['so'] ) ) {
1984
+ $get_language_choices['so'] = 0;
1985
+ }
1986
+
1987
+ if (!isset ( $get_language_choices ['es'] ) ) {
1988
+ $get_language_choices['es'] = 0;
1989
+ }
1990
+
1991
+ if (!isset ( $get_language_choices ['sw'] ) ) {
1992
+ $get_language_choices['sw'] = 0;
1993
+ }
1994
+
1995
+ if (!isset ( $get_language_choices ['sv'] ) ) {
1996
+ $get_language_choices['sv'] = 0;
1997
+ }
1998
+
1999
+ if (!isset ( $get_language_choices ['ta'] ) ) {
2000
+ $get_language_choices['ta'] = 0;
2001
+ }
2002
+
2003
+ if (!isset ( $get_language_choices ['te'] ) ) {
2004
+ $get_language_choices['te'] = 0;
2005
+ }
2006
+
2007
+ if (!isset ( $get_language_choices ['th'] ) ) {
2008
+ $get_language_choices['th'] = 0;
2009
+ }
2010
+
2011
+ if (!isset ( $get_language_choices ['tr'] ) ) {
2012
+ $get_language_choices['tr'] = 0;
2013
+ }
2014
+
2015
+ if (!isset ( $get_language_choices ['uk'] ) ) {
2016
+ $get_language_choices['uk'] = 0;
2017
+ }
2018
+
2019
+ if (!isset ( $get_language_choices ['ur'] ) ) {
2020
+ $get_language_choices['ur'] = 0;
2021
+ }
2022
+
2023
+ if (!isset ( $get_language_choices ['vi'] ) ) {
2024
+ $get_language_choices['vi'] = 0;
2025
+ }
2026
+
2027
+ if (!isset ( $get_language_choices ['cy'] ) ) {
2028
+ $get_language_choices['cy'] = 0;
2029
+ }
2030
+
2031
+ if (!isset ( $get_language_choices ['yi'] ) ) {
2032
+ $get_language_choices['yi'] = 0;
2033
+ }
2034
+
2035
+ if (!isset ( $get_language_choices ['yo'] ) ) {
2036
+ $get_language_choices['yo'] = 0;
2037
+ }
2038
+
2039
+ if (!isset ( $get_language_choices ['zu'] ) ) {
2040
+ $get_language_choices['zu'] = 0;
2041
+ } ?>
2042
+
2043
+ <div class="languages" style="width:25%; float:left">
2044
+ <div><input type="checkbox" name="language_display_settings[af]" value="1" <?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?>/> Afrikaans</div>
2045
+ <div><input type="checkbox" name="language_display_settings[sq]" value="1" <?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?>/> Albanian</div>
2046
+ <div><input type="checkbox" name="language_display_settings[ar]" value="1" <?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?>/> Arabic</div>
2047
+ <div><input type="checkbox" name="language_display_settings[hy]" value="1" <?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?>/> Armenian</div>
2048
+ <div><input type="checkbox" name="language_display_settings[az]" value="1" <?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?>/> Azerbaijani</div>
2049
+ <div><input type="checkbox" name="language_display_settings[eu]" value="1" <?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?>/> Basque</div>
2050
+ <div><input type="checkbox" name="language_display_settings[be]" value="1" <?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?>/> Belarusian</div>
2051
+ <div><input type="checkbox" name="language_display_settings[bn]" value="1" <?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?>/> Bengali</div>
2052
+ <div><input type="checkbox" name="language_display_settings[bs]" value="1" <?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?>/> Bosnian</div>
2053
+ <div><input type="checkbox" name="language_display_settings[bg]" value="1" <?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?>/> Bulgarian</div>
2054
+ <div><input type="checkbox" name="language_display_settings[ca]" value="1" <?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?>/> Catalan</div>
2055
+ <div><input type="checkbox" name="language_display_settings[ceb]" value="1" <?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?>/> Cebuano</div>
2056
+ <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>
2057
+ <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>
2058
+ <div><input type="checkbox" name="language_display_settings[hr]" value="1" <?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?>/> Croatian</div>
2059
+ <div><input type="checkbox" name="language_display_settings[cs]" value="1" <?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?>/> Czech</div>
2060
+ <div><input type="checkbox" name="language_display_settings[da]" value="1" <?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?>/> Danish</div>
2061
+ <div><input type="checkbox" name="language_display_settings[nl]" value="1" <?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?>/> Dutch</div>
2062
+ <div><input type="checkbox" name="language_display_settings[en]" value="1" <?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?>/> English</div>
2063
+ <div><input type="checkbox" name="language_display_settings[eo]" value="1" <?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?>/> Esperanto</div>
2064
+ <div><input type="checkbox" name="language_display_settings[et]" value="1" <?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?>/> Estonian</div>
2065
+ </div>
2066
+
2067
+ <div class="languages" style="width:25%; float:left">
2068
+ <div><input type="checkbox" name="language_display_settings[tl]" value="1" <?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?>/> Filipino</div>
2069
+ <div><input type="checkbox" name="language_display_settings[fi]" value="1" <?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?>/> Finnish</div>
2070
+ <div><input type="checkbox" name="language_display_settings[fr]" value="1" <?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?>/> French</div>
2071
+ <div><input type="checkbox" name="language_display_settings[gl]" value="1" <?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?>/> Galician</div>
2072
+ <div><input type="checkbox" name="language_display_settings[ka]" value="1" <?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?>/> Georgian</div>
2073
+ <div><input type="checkbox" name="language_display_settings[de]" value="1" <?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?>/> German</div>
2074
+ <div><input type="checkbox" name="language_display_settings[el]" value="1" <?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?>/> Greek</div>
2075
+ <div><input type="checkbox" name="language_display_settings[gu]" value="1" <?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?>/> Gujarati</div>
2076
+ <div><input type="checkbox" name="language_display_settings[ht]" value="1" <?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?>/> Haitian Creole</div>
2077
+ <div><input type="checkbox" name="language_display_settings[ha]" value="1" <?php if ( 1 == $get_language_choices['ha'] ) echo 'checked="checked"'; ?>/> Hausa</div>
2078
+ <div><input type="checkbox" name="language_display_settings[iw]" value="1" <?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?>/> Hebrew</div>
2079
+ <div><input type="checkbox" name="language_display_settings[hi]" value="1" <?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?>/> Hindi</div>
2080
+ <div><input type="checkbox" name="language_display_settings[hmn]" value="1" <?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?>/> Hmong</div>
2081
+ <div><input type="checkbox" name="language_display_settings[hu]" value="1" <?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?>/> Hungarian</div>
2082
+ <div><input type="checkbox" name="language_display_settings[is]" value="1" <?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?>/> Icelandic</div>
2083
+ <div><input type="checkbox" name="language_display_settings[ig]" value="1" <?php if ( 1 == $get_language_choices['ig'] ) echo 'checked="checked"'; ?>/> Igbo</div>
2084
+ <div><input type="checkbox" name="language_display_settings[id]" value="1" <?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?>/> Indonesian</div>
2085
+ <div><input type="checkbox" name="language_display_settings[ga]" value="1" <?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?>/> Irish</div>
2086
+ <div><input type="checkbox" name="language_display_settings[it]" value="1" <?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?>/> Italian</div>
2087
+ <div><input type="checkbox" name="language_display_settings[ja]" value="1" <?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?>/> Japanese</div>
2088
+ <div><input type="checkbox" name="language_display_settings[jw]" value="1" <?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?>/> Javanese</div>
2089
+ </div>
2090
+
2091
+ <div class="languages" style="width:25%; float:left">
2092
+ <div><input type="checkbox" name="language_display_settings[kn]" value="1" <?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?>/> Kannada</div>
2093
+ <div><input type="checkbox" name="language_display_settings[km]" value="1" <?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?>/> Khmer</div>
2094
+ <div><input type="checkbox" name="language_display_settings[ko]" value="1" <?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?>/> Korean</div>
2095
+ <div><input type="checkbox" name="language_display_settings[lo]" value="1" <?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?>/> Lao</div>
2096
+ <div><input type="checkbox" name="language_display_settings[la]" value="1" <?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?>/> Latin</div>
2097
+ <div><input type="checkbox" name="language_display_settings[lv]" value="1" <?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?>/> Latvian</div>
2098
+ <div><input type="checkbox" name="language_display_settings[lt]" value="1" <?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?>/> Lithuanian</div>
2099
+ <div><input type="checkbox" name="language_display_settings[mk]" value="1" <?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?>/> Macedonian</div>
2100
+ <div><input type="checkbox" name="language_display_settings[ms]" value="1" <?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?>/> Malay</div>
2101
+ <div><input type="checkbox" name="language_display_settings[mt]" value="1" <?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?>/> Maltese</div>
2102
+ <div><input type="checkbox" name="language_display_settings[mi]" value="1" <?php if ( 1 == $get_language_choices['mi'] ) echo 'checked="checked"'; ?>/> Maori</div>
2103
+ <div><input type="checkbox" name="language_display_settings[mr]" value="1" <?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?>/> Marathi</div>
2104
+ <div><input type="checkbox" name="language_display_settings[mn]" value="1" <?php if ( 1 == $get_language_choices['mn'] ) echo 'checked="checked"'; ?>/> Mongolian</div>
2105
+ <div><input type="checkbox" name="language_display_settings[ne]" value="1" <?php if ( 1 == $get_language_choices['ne'] ) echo 'checked="checked"'; ?>/> Nepali</div>
2106
+ <div><input type="checkbox" name="language_display_settings[no]" value="1" <?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?>/> Norwegian</div>
2107
+ <div><input type="checkbox" name="language_display_settings[fa]" value="1" <?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?>/> Persian</div>
2108
+ <div><input type="checkbox" name="language_display_settings[pl]" value="1" <?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?>/> Polish</div>
2109
+ <div><input type="checkbox" name="language_display_settings[pt]" value="1" <?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?>/> Portuguese</div>
2110
+ <div><input type="checkbox" name="language_display_settings[pa]" value="1" <?php if ( 1 == $get_language_choices['pa'] ) echo 'checked="checked"'; ?>/> Punjabi</div>
2111
+ <div><input type="checkbox" name="language_display_settings[ro]" value="1" <?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?>/> Romanian</div>
2112
+ <div><input type="checkbox" name="language_display_settings[ru]" value="1" <?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?>/> Russian</div>
2113
+ </div>
2114
+
2115
+ <div class="languages" style="width:25%; float:left">
2116
+ <div><input type="checkbox" name="language_display_settings[sr]" value="1" <?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?>/> Serbian</div>
2117
+ <div><input type="checkbox" name="language_display_settings[sk]" value="1" <?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?>/> Slovak</div>
2118
+ <div><input type="checkbox" name="language_display_settings[sl]" value="1" <?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?>/> Slovenian</div>
2119
+ <div><input type="checkbox" name="language_display_settings[so]" value="1" <?php if ( 1 == $get_language_choices['so'] ) echo 'checked="checked"'; ?>/> Somali</div>
2120
+ <div><input type="checkbox" name="language_display_settings[es]" value="1" <?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?>/> Spanish</div>
2121
+ <div><input type="checkbox" name="language_display_settings[sw]" value="1" <?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?>/> Swahili</div>
2122
+ <div><input type="checkbox" name="language_display_settings[sv]" value="1" <?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?>/> Swedish</div>
2123
+ <div><input type="checkbox" name="language_display_settings[ta]" value="1" <?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?>/> Tamil</div>
2124
+ <div><input type="checkbox" name="language_display_settings[te]" value="1" <?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?>/> Telugu</div>
2125
+ <div><input type="checkbox" name="language_display_settings[th]" value="1" <?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?>/> Thai</div>
2126
+ <div><input type="checkbox" name="language_display_settings[tr]" value="1" <?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?>/> Turkish</div>
2127
+ <div><input type="checkbox" name="language_display_settings[uk]" value="1" <?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?>/> Ukranian</div>
2128
+ <div><input type="checkbox" name="language_display_settings[ur]" value="1" <?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?>/> Urdu</div>
2129
+ <div><input type="checkbox" name="language_display_settings[vi]" value="1" <?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?>/> Vietnamese</div>
2130
+ <div><input type="checkbox" name="language_display_settings[cy]" value="1" <?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?>/> Welsh</div>
2131
+ <div><input type="checkbox" name="language_display_settings[yi]" value="1" <?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?>/> Yiddish</div>
2132
+ <div><input type="checkbox" name="language_display_settings[yo]" value="1" <?php if ( 1 == $get_language_choices['yo'] ) echo 'checked="checked"'; ?>/> Yoruba</div>
2133
+ <div><input type="checkbox" name="language_display_settings[zu]" value="1" <?php if ( 1 == $get_language_choices['zu'] ) echo 'checked="checked"'; ?>/> Zulu</div>
2134
+
2135
+ </div>
2136
+
2137
+ <div style="clear:both"></div>
2138
+ <?php }
2139
+
2140
+ public function googlelanguagetranslator_flags_cb() {
2141
+
2142
+ $option_name = 'googlelanguagetranslator_flags' ;
2143
+ $new_value = 'show_flags';
2144
+
2145
+ if ( get_option( $option_name ) === false ) {
2146
+
2147
+ // The option does not exist, so we update it.
2148
+ update_option( $option_name, $new_value );
2149
+ }
2150
+
2151
+ $options = get_option (''.$option_name.''); ?>
2152
+
2153
+ <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="show_flags" <?php if($options=='show_flags'){echo "checked";}?>/> Yes, show flag images<br/>
2154
+ <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="hide_flags" <?php if($options=='hide_flags'){echo "checked";}?>/> No, hide flag images
2155
+ <?php
2156
+ }
2157
+
2158
+ public function flag_display_settings_cb() {
2159
+ $defaults = array(
2160
+ 'flag-en' => 1
2161
+ );
2162
+
2163
+ $option_name = 'flag_display_settings' ;
2164
+ $new_value = $defaults;
2165
+
2166
+ if ( get_option( $option_name ) === false ) {
2167
+
2168
+ // The option does not exist, so we update it.
2169
+ update_option( $option_name, $new_value );
2170
+ }
2171
+
2172
+ $get_flag_choices = get_option (''.$option_name.'');
2173
+
2174
+ if (!isset ( $get_flag_choices ['flag-af'] ) ) {
2175
+ $get_flag_choices['flag-af'] = 0;
2176
+ }
2177
+
2178
+ if (!isset ( $get_flag_choices ['flag-sq'] ) ) {
2179
+ $get_flag_choices['flag-sq'] = 0;
2180
+ }
2181
+
2182
+ if (!isset ( $get_flag_choices ['flag-ar'] ) ) {
2183
+ $get_flag_choices['flag-ar'] = 0;
2184
+ }
2185
+
2186
+ if (!isset ( $get_flag_choices ['flag-hy'] ) ) {
2187
+ $get_flag_choices['flag-hy'] = 0;
2188
+ }
2189
+
2190
+ if (!isset ( $get_flag_choices ['flag-az'] ) ) {
2191
+ $get_flag_choices['flag-az'] = 0;
2192
+ }
2193
+
2194
+ if (!isset ( $get_flag_choices ['flag-eu'] ) ) {
2195
+ $get_flag_choices['flag-eu'] = 0;
2196
+ }
2197
+
2198
+ if (!isset ( $get_flag_choices ['flag-be'] ) ) {
2199
+ $get_flag_choices['flag-be'] = 0;
2200
+ }
2201
+
2202
+ if (!isset ( $get_flag_choices ['flag-bn'] ) ) {
2203
+ $get_flag_choices['flag-bn'] = 0;
2204
+ }
2205
+
2206
+ if (!isset ( $get_flag_choices ['flag-bs'] ) ) {
2207
+ $get_flag_choices['flag-bs'] = 0;
2208
+ }
2209
+
2210
+ if (!isset ( $get_flag_choices ['flag-bg'] ) ) {
2211
+ $get_flag_choices['flag-bg'] = 0;
2212
+ }
2213
+
2214
+ if (!isset ( $get_flag_choices ['flag-ca'] ) ) {
2215
+ $get_flag_choices['flag-ca'] = 0;
2216
+ }
2217
+
2218
+ if (!isset ( $get_flag_choices ['flag-ceb'] ) ) {
2219
+ $get_flag_choices['flag-ceb'] = 0;
2220
+ }
2221
+
2222
+ if (!isset ( $get_flag_choices ['flag-zh-CN'] ) ) {
2223
+ $get_flag_choices['flag-zh-CN'] = 0;
2224
+ }
2225
+
2226
+ if (!isset ( $get_flag_choices ['flag-zh-TW'] ) ) {
2227
+ $get_flag_choices['flag-zh-TW'] = 0;
2228
+ }
2229
+
2230
+ if (!isset ( $get_flag_choices ['flag-hr'] ) ) {
2231
+ $get_flag_choices['flag-hr'] = 0;
2232
+ }
2233
+
2234
+ if (!isset ( $get_flag_choices ['flag-cs'] ) ) {
2235
+ $get_flag_choices['flag-cs'] = 0;
2236
+ }
2237
+
2238
+ if (!isset ( $get_flag_choices ['flag-da'] ) ) {
2239
+ $get_flag_choices['flag-da'] = 0;
2240
+ }
2241
+
2242
+ if (!isset ( $get_flag_choices ['flag-nl'] ) ) {
2243
+ $get_flag_choices['flag-nl'] = 0;
2244
+ }
2245
+
2246
+ if (!isset ( $get_flag_choices ['flag-en'] ) ) {
2247
+ $get_flag_choices['flag-en'] = 1;
2248
+ }
2249
+
2250
+ if (!isset ( $get_flag_choices ['flag-eo'] ) ) {
2251
+ $get_flag_choices['flag-eo'] = 0;
2252
+ }
2253
+
2254
+ if (!isset ( $get_flag_choices ['flag-et'] ) ) {
2255
+ $get_flag_choices['flag-et'] = 0;
2256
+ }
2257
+
2258
+ if (!isset ( $get_flag_choices ['flag-tl'] ) ) {
2259
+ $get_flag_choices['flag-tl'] = 0;
2260
+ }
2261
+
2262
+ if (!isset ( $get_flag_choices ['flag-fi'] ) ) {
2263
+ $get_flag_choices['flag-fi'] = 0;
2264
+ }
2265
+
2266
+ if (!isset ( $get_flag_choices ['flag-fr'] ) ) {
2267
+ $get_flag_choices['flag-fr'] = 0;
2268
+ }
2269
+
2270
+ if (!isset ( $get_flag_choices ['flag-gl'] ) ) {
2271
+ $get_flag_choices['flag-gl'] = 0;
2272
+ }
2273
+
2274
+ if (!isset ( $get_flag_choices ['flag-ka'] ) ) {
2275
+ $get_flag_choices['flag-ka'] = 0;
2276
+ }
2277
+
2278
+ if (!isset ( $get_flag_choices ['flag-de'] ) ) {
2279
+ $get_flag_choices['flag-de'] = 0;
2280
+ }
2281
+
2282
+ if (!isset ( $get_flag_choices ['flag-el'] ) ) {
2283
+ $get_flag_choices['flag-el'] = 0;
2284
+ }
2285
+
2286
+ if (!isset ( $get_flag_choices ['flag-gu'] ) ) {
2287
+ $get_flag_choices['flag-gu'] = 0;
2288
+ }
2289
+
2290
+ if (!isset ( $get_flag_choices ['flag-ht'] ) ) {
2291
+ $get_flag_choices['flag-ht'] = 0;
2292
+ }
2293
+
2294
+ if (!isset ( $get_flag_choices ['flag-ha'] ) ) {
2295
+ $get_flag_choices['flag-ha'] = 0;
2296
+ }
2297
+
2298
+ if (!isset ( $get_flag_choices ['flag-iw'] ) ) {
2299
+ $get_flag_choices['flag-iw'] = 0;
2300
+ }
2301
+
2302
+ if (!isset ( $get_flag_choices ['flag-hi'] ) ) {
2303
+ $get_flag_choices['flag-hi'] = 0;
2304
+ }
2305
+
2306
+ if (!isset ( $get_flag_choices ['flag-hmn'] ) ) {
2307
+ $get_flag_choices['flag-hmn'] = 0;
2308
+ }
2309
+
2310
+ if (!isset ( $get_flag_choices ['flag-hu'] ) ) {
2311
+ $get_flag_choices['flag-hu'] = 0;
2312
+ }
2313
+
2314
+ if (!isset ( $get_flag_choices ['flag-is'] ) ) {
2315
+ $get_flag_choices['flag-is'] = 0;
2316
+ }
2317
+
2318
+ if (!isset ( $get_flag_choices ['flag-ig'] ) ) {
2319
+ $get_flag_choices['flag-ig'] = 0;
2320
+ }
2321
+
2322
+ if (!isset ( $get_flag_choices ['flag-id'] ) ) {
2323
+ $get_flag_choices['flag-id'] = 0;
2324
+ }
2325
+
2326
+ if (!isset ( $get_flag_choices ['flag-ga'] ) ) {
2327
+ $get_flag_choices['flag-ga'] = 0;
2328
+ }
2329
+
2330
+ if (!isset ( $get_flag_choices ['flag-it'] ) ) {
2331
+ $get_flag_choices['flag-it'] = 0;
2332
+ }
2333
+
2334
+ if (!isset ( $get_flag_choices ['flag-ja'] ) ) {
2335
+ $get_flag_choices['flag-ja'] = 0;
2336
+ }
2337
+
2338
+ if (!isset ( $get_flag_choices ['flag-jw'] ) ) {
2339
+ $get_flag_choices['flag-jw'] = 0;
2340
+ }
2341
+
2342
+ if (!isset ( $get_flag_choices ['flag-kn'] ) ) {
2343
+ $get_flag_choices['flag-kn'] = 0;
2344
+ }
2345
+
2346
+ if (!isset ( $get_flag_choices ['flag-km'] ) ) {
2347
+ $get_flag_choices['flag-km'] = 0;
2348
+ }
2349
+
2350
+ if (!isset ( $get_flag_choices ['flag-ko'] ) ) {
2351
+ $get_flag_choices['flag-ko'] = 0;
2352
+ }
2353
+
2354
+ if (!isset ( $get_flag_choices ['flag-lo'] ) ) {
2355
+ $get_flag_choices['flag-lo'] = 0;
2356
+ }
2357
+
2358
+ if (!isset ( $get_flag_choices ['flag-la'] ) ) {
2359
+ $get_flag_choices['flag-la'] = 0;
2360
+ }
2361
+
2362
+ if (!isset ( $get_flag_choices ['flag-lv'] ) ) {
2363
+ $get_flag_choices['flag-lv'] = 0;
2364
+ }
2365
+
2366
+ if (!isset ( $get_flag_choices ['flag-lt'] ) ) {
2367
+ $get_flag_choices['flag-lt'] = 0;
2368
+ }
2369
+
2370
+ if (!isset ( $get_flag_choices ['flag-mk'] ) ) {
2371
+ $get_flag_choices['flag-mk'] = 0;
2372
+ }
2373
+
2374
+ if (!isset ( $get_flag_choices ['flag-ms'] ) ) {
2375
+ $get_flag_choices['flag-ms'] = 0;
2376
+ }
2377
+
2378
+ if (!isset ( $get_flag_choices ['flag-mt'] ) ) {
2379
+ $get_flag_choices['flag-mt'] = 0;
2380
+ }
2381
+
2382
+ if (!isset ( $get_flag_choices ['flag-mi'] ) ) {
2383
+ $get_flag_choices['flag-mi'] = 0;
2384
+ }
2385
+
2386
+ if (!isset ( $get_flag_choices ['flag-mr'] ) ) {
2387
+ $get_flag_choices['flag-mr'] = 0;
2388
+ }
2389
+
2390
+ if (!isset ( $get_flag_choices ['flag-mn'] ) ) {
2391
+ $get_flag_choices['flag-mn'] = 0;
2392
+ }
2393
+
2394
+ if (!isset ( $get_flag_choices ['flag-ne'] ) ) {
2395
+ $get_flag_choices['flag-ne'] = 0;
2396
+ }
2397
+
2398
+ if (!isset ( $get_flag_choices ['flag-no'] ) ) {
2399
+ $get_flag_choices['flag-no'] = 0;
2400
+ }
2401
+
2402
+ if (!isset ( $get_flag_choices ['flag-fa'] ) ) {
2403
+ $get_flag_choices['flag-fa'] = 0;
2404
+ }
2405
+
2406
+ if (!isset ( $get_flag_choices ['flag-pl'] ) ) {
2407
+ $get_flag_choices['flag-pl'] = 0;
2408
+ }
2409
+
2410
+ if (!isset ( $get_flag_choices ['flag-pt'] ) ) {
2411
+ $get_flag_choices['flag-pt'] = 0;
2412
+ }
2413
+
2414
+ if (!isset ( $get_flag_choices ['flag-pa'] ) ) {
2415
+ $get_flag_choices['flag-pa'] = 0;
2416
+ }
2417
+
2418
+ if (!isset ( $get_flag_choices ['flag-ro'] ) ) {
2419
+ $get_flag_choices['flag-ro'] = 0;
2420
+ }
2421
+
2422
+ if (!isset ( $get_flag_choices ['flag-ru'] ) ) {
2423
+ $get_flag_choices['flag-ru'] = 0;
2424
+ }
2425
+
2426
+ if (!isset ( $get_flag_choices ['flag-sr'] ) ) {
2427
+ $get_flag_choices['flag-sr'] = 0;
2428
+ }
2429
+
2430
+ if (!isset ( $get_flag_choices ['flag-sk'] ) ) {
2431
+ $get_flag_choices['flag-sk'] = 0;
2432
+ }
2433
+
2434
+ if (!isset ( $get_flag_choices ['flag-sl'] ) ) {
2435
+ $get_flag_choices['flag-sl'] = 0;
2436
+ }
2437
+
2438
+ if (!isset ( $get_flag_choices ['flag-so'] ) ) {
2439
+ $get_flag_choices['flag-so'] = 0;
2440
+ }
2441
+
2442
+ if (!isset ( $get_flag_choices ['flag-so'] ) ) {
2443
+ $get_flag_choices['flag-so'] = 0;
2444
+ }
2445
+
2446
+ if (!isset ( $get_flag_choices ['flag-es'] ) ) {
2447
+ $get_flag_choices['flag-es'] = 0;
2448
+ }
2449
+
2450
+ if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
2451
+ $get_flag_choices['flag-sw'] = 0;
2452
+ }
2453
+
2454
+ if (!isset ( $get_flag_choices ['flag-sv'] ) ) {
2455
+ $get_flag_choices['flag-sv'] = 0;
2456
+ }
2457
+
2458
+ if (!isset ( $get_flag_choices ['flag-ta'] ) ) {
2459
+ $get_flag_choices['flag-ta'] = 0;
2460
+ }
2461
+
2462
+ if (!isset ( $get_flag_choices ['flag-te'] ) ) {
2463
+ $get_flag_choices['flag-te'] = 0;
2464
+ }
2465
+
2466
+ if (!isset ( $get_flag_choices ['flag-th'] ) ) {
2467
+ $get_flag_choices['flag-th'] = 0;
2468
+ }
2469
+
2470
+ if (!isset ( $get_flag_choices ['flag-tr'] ) ) {
2471
+ $get_flag_choices['flag-tr'] = 0;
2472
+ }
2473
+
2474
+ if (!isset ( $get_flag_choices ['flag-uk'] ) ) {
2475
+ $get_flag_choices['flag-uk'] = 0;
2476
+ }
2477
+
2478
+ if (!isset ( $get_flag_choices ['flag-ur'] ) ) {
2479
+ $get_flag_choices['flag-ur'] = 0;
2480
+ }
2481
+
2482
+ if (!isset ( $get_flag_choices ['flag-vi'] ) ) {
2483
+ $get_flag_choices['flag-vi'] = 0;
2484
+ }
2485
+
2486
+ if (!isset ( $get_flag_choices ['flag-cy'] ) ) {
2487
+ $get_flag_choices['flag-cy'] = 0;
2488
+ }
2489
+
2490
+ if (!isset ( $get_flag_choices ['flag-yi'] ) ) {
2491
+ $get_flag_choices['flag-yi'] = 0;
2492
+ }
2493
+
2494
+ if (!isset ( $get_flag_choices ['flag-yo'] ) ) {
2495
+ $get_flag_choices['flag-yo'] = 0;
2496
+ }
2497
+
2498
+ ?>
2499
+ <div class="flagdisplay" style="width:25%; float:left">
2500
+ <div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?>/> Afrikaans</div>
2501
+ <div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?>/> Albanian</div>
2502
+ <div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?>/> Arabic</div>
2503
+ <div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?>/> Armenian</div>
2504
+ <div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?>/> Azerbaijani</div>
2505
+ <div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?>/> Basque</div>
2506
+ <div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?>/> Belarusian</div>
2507
+ <div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?>/> Bengali</div>
2508
+ <div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?>/> Bosnian</div>
2509
+ <div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?>/> Bulgarian</div>
2510
+ <div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?>/> Catalan</div>
2511
+ <div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?>/> Cebuano</div>
2512
+ <div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?>/> Chinese</div>
2513
+ <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>
2514
+ <div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?>/> Croatian</div>
2515
+ <div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?>/> Czech</div>
2516
+ <div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?>/> Danish</div>
2517
+ <div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?>/> Dutch</div>
2518
+ <div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?>/> English</div>
2519
+ <div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1" <?php checked( 1,$get_flag_choices['flag-eo']); ?>/> Esperanto</div>
2520
+ <div><input type="checkbox" name="flag_display_settings[flag-et]" value="1" <?php checked( 1,$get_flag_choices['flag-et']); ?>/> Estonian</div>
2521
+ </div>
2522
+
2523
+ <div class="flagdisplay" style="width:25%; float:left">
2524
+ <div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1" <?php checked( 1,$get_flag_choices['flag-tl']); ?>/> Filipino</div>
2525
+ <div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1" <?php checked( 1,$get_flag_choices['flag-fi']); ?>/> Finnish</div>
2526
+ <div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1" <?php checked( 1,$get_flag_choices['flag-fr']); ?>/> French</div>
2527
+ <div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1" <?php checked( 1,$get_flag_choices['flag-gl']); ?>/> Galician</div>
2528
+ <div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1" <?php checked( 1,$get_flag_choices['flag-ka']); ?>/> Georgian</div>
2529
+ <div><input type="checkbox" name="flag_display_settings[flag-de]" value="1" <?php checked( 1,$get_flag_choices['flag-de']); ?>/> German</div>
2530
+ <div><input type="checkbox" name="flag_display_settings[flag-el]" value="1" <?php checked( 1,$get_flag_choices['flag-el']); ?>/> Greek</div>
2531
+ <div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1" <?php checked( 1,$get_flag_choices['flag-gu']); ?>/> Gujarati</div>
2532
+ <div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1" <?php checked( 1,$get_flag_choices['flag-ht']); ?>/> Haitian Creole</div>
2533
+ <div><input type="checkbox" name="flag_display_settings[flag-ha]" value="1" <?php checked( 1,$get_flag_choices['flag-ha']); ?>/> Hausa</div>
2534
+ <div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1" <?php checked( 1,$get_flag_choices['flag-iw']); ?>/> Hebrew</div>
2535
+ <div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1" <?php checked( 1,$get_flag_choices['flag-hi']); ?>/> Hindi</div>
2536
+ <div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1" <?php checked( 1,$get_flag_choices['flag-hmn']); ?>/> Hmong</div>
2537
+ <div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1" <?php checked( 1,$get_flag_choices['flag-hu']); ?>/> Hungarian</div>
2538
+ <div><input type="checkbox" name="flag_display_settings[flag-is]" value="1" <?php checked( 1,$get_flag_choices['flag-is']); ?>/> Icelandic</div>
2539
+ <div><input type="checkbox" name="flag_display_settings[flag-ig]" value="1" <?php checked( 1,$get_flag_choices['flag-ig']); ?>/> Igbo</div>
2540
+ <div><input type="checkbox" name="flag_display_settings[flag-id]" value="1" <?php checked( 1,$get_flag_choices['flag-id']); ?>/> Indonesian</div>
2541
+ <div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1" <?php checked( 1,$get_flag_choices['flag-ga']); ?>/> Irish</div>
2542
+ <div><input type="checkbox" name="flag_display_settings[flag-it]" value="1" <?php checked( 1,$get_flag_choices['flag-it']); ?>/> Italian</div>
2543
+ <div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1" <?php checked( 1,$get_flag_choices['flag-ja']); ?>/> Japanese</div>
2544
+ <div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1" <?php checked( 1,$get_flag_choices['flag-jw']); ?>/> Javanese</div>
2545
+ </div>
2546
+
2547
+ <div class="flagdisplay" style="width:25%; float:left">
2548
+ <div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1" <?php checked( 1,$get_flag_choices['flag-kn']); ?>/> Kannada</div>
2549
+ <div><input type="checkbox" name="flag_display_settings[flag-km]" value="1" <?php checked( 1,$get_flag_choices['flag-km']); ?>/> Khmer</div>
2550
+ <div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1" <?php checked( 1,$get_flag_choices['flag-ko']); ?>/> Korean</div>
2551
+ <div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1" <?php checked( 1,$get_flag_choices['flag-lo']); ?>/> Lao</div>
2552
+ <div><input type="checkbox" name="flag_display_settings[flag-la]" value="1" <?php checked( 1,$get_flag_choices['flag-la']); ?>/> Latin</div>
2553
+ <div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1" <?php checked( 1,$get_flag_choices['flag-lv']); ?>/> Latvian</div>
2554
+ <div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1" <?php checked( 1,$get_flag_choices['flag-lt']); ?>/> Lithuanian</div>
2555
+ <div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1" <?php checked( 1,$get_flag_choices['flag-mk']); ?>/> Macedonian</div>
2556
+ <div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1" <?php checked( 1,$get_flag_choices['flag-ms']); ?>/> Malay</div>
2557
+ <div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1" <?php checked( 1,$get_flag_choices['flag-mt']); ?>/> Maltese</div>
2558
+ <div><input type="checkbox" name="flag_display_settings[flag-mi]" value="1" <?php checked( 1,$get_flag_choices['flag-mi']); ?>/> Maori</div>
2559
+ <div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1" <?php checked( 1,$get_flag_choices['flag-mr']); ?>/> Marathi</div>
2560
+ <div><input type="checkbox" name="flag_display_settings[flag-mn]" value="1" <?php checked( 1,$get_flag_choices['flag-mn']); ?>/> Mongolian</div>
2561
+ <div><input type="checkbox" name="flag_display_settings[flag-ne]" value="1" <?php checked( 1,$get_flag_choices['flag-ne']); ?>/> Nepali</div>
2562
+ <div><input type="checkbox" name="flag_display_settings[flag-no]" value="1" <?php checked( 1,$get_flag_choices['flag-no']); ?>/> Norwegian</div>
2563
+ <div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1" <?php checked( 1,$get_flag_choices['flag-fa']); ?>/> Persian</div>
2564
+ <div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1" <?php checked( 1,$get_flag_choices['flag-pl']); ?>/> Polish</div>
2565
+ <div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1" <?php checked( 1,$get_flag_choices['flag-pt']); ?>/> Portuguese</div>
2566
+ <div><input type="checkbox" name="flag_display_settings[flag-pa]" value="1" <?php checked( 1,$get_flag_choices['flag-pa']); ?>/> Punjabi</div>
2567
+ <div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1" <?php checked( 1,$get_flag_choices['flag-ro']); ?>/> Romanian</div>
2568
+ <div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1" <?php checked( 1,$get_flag_choices['flag-ru']); ?>/> Russian</div>
2569
+ </div>
2570
+
2571
+ <div class="flagdisplay" style="width:25%; float:left">
2572
+ <div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1" <?php checked( 1,$get_flag_choices['flag-sr']); ?>/> Serbian</div>
2573
+ <div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1" <?php checked( 1,$get_flag_choices['flag-sk']); ?>/> Slovak</div>
2574
+ <div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1" <?php checked( 1,$get_flag_choices['flag-sl']); ?>/> Slovenian</div>
2575
+ <div><input type="checkbox" name="flag_display_settings[flag-so]" value="1" <?php checked( 1,$get_flag_choices['flag-so']); ?>/> Somali</div>
2576
+ <div><input type="checkbox" name="flag_display_settings[flag-es]" value="1" <?php checked( 1,$get_flag_choices['flag-es']); ?>/> Spanish</div>
2577
+ <div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1" <?php checked( 1,$get_flag_choices['flag-sw']); ?>/> Swahili</div>
2578
+ <div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1" <?php checked( 1,$get_flag_choices['flag-sv']); ?>/> Swedish</div>
2579
+ <div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1" <?php checked( 1,$get_flag_choices['flag-ta']); ?>/> Tamil</div>
2580
+ <div><input type="checkbox" name="flag_display_settings[flag-te]" value="1" <?php checked( 1,$get_flag_choices['flag-te']); ?>/> Telugu</div>
2581
+ <div><input type="checkbox" name="flag_display_settings[flag-th]" value="1" <?php checked( 1,$get_flag_choices['flag-th']); ?>/> Thai</div>
2582
+ <div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1" <?php checked( 1,$get_flag_choices['flag-tr']); ?>/> Turkish</div>
2583
+ <div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1" <?php checked( 1,$get_flag_choices['flag-uk']); ?>/> Ukranian</div>
2584
+ <div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1" <?php checked( 1,$get_flag_choices['flag-ur']); ?>/> Urdu</div>
2585
+ <div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1" <?php checked( 1,$get_flag_choices['flag-vi']); ?>/> Vietnamese</div>
2586
+ <div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1" <?php checked( 1,$get_flag_choices['flag-cy']); ?>/> Welsh</div>
2587
+ <div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1" <?php checked( 1,$get_flag_choices['flag-yi']); ?>/> Yiddish</div>
2588
+ <div><input type="checkbox" name="flag_display_settings[flag-yo]" value="1" <?php checked( 1,$get_flag_choices['flag-yo']); ?>/> Yoruba</div>
2589
+ <div><input type="checkbox" name="flag_display_settings[flag-zu]" value="1" <?php checked( 1,$get_flag_choices['flag-zu']); ?>/> Zulu</div>
2590
+
2591
+ </div>
2592
+ <div style="clear:both"></div>
2593
+ <?php }
2594
+
2595
+ public function googlelanguagetranslator_floating_widget_cb() {
2596
+
2597
+ $option_name = 'googlelanguagetranslator_floating_widget' ;
2598
+ $new_value = 'yes';
2599
+
2600
+ if ( get_option( $option_name ) === false ) {
2601
+
2602
+ // The option does not exist, so we update it.
2603
+ update_option( $option_name, $new_value );
2604
+ }
2605
+
2606
+ $options = get_option (''.$option_name.''); ?>
2607
+
2608
+ <select name="googlelanguagetranslator_floating_widget" id="googlelanguagetranslator_floating_widget" style="width:170px">
2609
+ <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show widget</option>
2610
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide widget</option>
2611
+ </select>
2612
+ <?php }
2613
+
2614
+ public function googlelanguagetranslator_translatebox_cb() {
2615
+
2616
+ $option_name = 'googlelanguagetranslator_translatebox' ;
2617
+ $new_value = 'yes';
2618
+
2619
+ if ( get_option( $option_name ) === false ) {
2620
+
2621
+ // The option does not exist, so we update it.
2622
+ update_option( $option_name, $new_value );
2623
+ }
2624
+
2625
+ $options = get_option (''.$option_name.''); ?>
2626
+
2627
+ <select name="googlelanguagetranslator_translatebox" id="googlelanguagetranslator_translatebox" style="width:190px">
2628
+ <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show language box</option>
2629
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide language box</option>
2630
+ </select>
2631
+ <?php }
2632
+
2633
+ public function googlelanguagetranslator_display_cb() {
2634
+
2635
+ $option_name = 'googlelanguagetranslator_display' ;
2636
+ $new_value = 'Vertical';
2637
+
2638
+ if ( get_option( $option_name ) === false ) {
2639
+
2640
+ // The option does not exist, so we update it.
2641
+ update_option( $option_name, $new_value );
2642
+ }
2643
+
2644
+ $options = get_option (''.$option_name.''); ?>
2645
+
2646
+ <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:170px;">
2647
+ <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
2648
+ <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
2649
+ </select>
2650
+ <?php }
2651
+
2652
+ public function googlelanguagetranslator_toolbar_cb() {
2653
+
2654
+ $option_name = 'googlelanguagetranslator_toolbar' ;
2655
+ $new_value = 'Yes';
2656
+
2657
+ if ( get_option( $option_name ) === false ) {
2658
+
2659
+ // The option does not exist, so we update it.
2660
+ update_option( $option_name, $new_value );
2661
+ }
2662
+
2663
+ $options = get_option (''.$option_name.''); ?>
2664
+
2665
+ <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:170px;">
2666
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
2667
+ <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
2668
+ </select>
2669
+ <?php }
2670
+
2671
+ public function googlelanguagetranslator_showbranding_cb() {
2672
+
2673
+ $option_name = 'googlelanguagetranslator_showbranding' ;
2674
+ $new_value = 'Yes';
2675
+
2676
+ if ( get_option( $option_name ) === false ) {
2677
+
2678
+ // The option does not exist, so we update it.
2679
+ update_option( $option_name, $new_value );
2680
+ }
2681
+
2682
+ $options = get_option (''.$option_name.''); ?>
2683
+
2684
+ <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:170px;">
2685
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
2686
+ <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
2687
+ </select>
2688
+ <?php }
2689
+
2690
+ public function googlelanguagetranslator_flags_alignment_cb() {
2691
+
2692
+ $option_name = 'googlelanguagetranslator_flags_alignment' ;
2693
+ $new_value = 'flags_left';
2694
+
2695
+ if ( get_option( $option_name ) === false ) {
2696
+
2697
+ // The option does not exist, so we update it.
2698
+ update_option( $option_name, 'flags_left' );
2699
+ }
2700
+
2701
+ $options = get_option (''.$option_name.''); ?>
2702
+
2703
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="flags_left" value="flags_left" <?php if($options=='flags_left'){echo "checked";}?>/> Align Left<br/>
2704
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="flags_right" value="flags_right" <?php if($options=='flags_right'){echo "checked";}?>/> Align Right
2705
+ <?php }
2706
+
2707
+ public function googlelanguagetranslator_analytics_cb() {
2708
+
2709
+ $option_name = 'googlelanguagetranslator_analytics' ;
2710
+ $new_value = 0;
2711
+
2712
+ if ( get_option( $option_name ) === false ) {
2713
+
2714
+ // The option does not exist, so we update it.
2715
+ update_option( $option_name, $new_value );
2716
+ }
2717
+
2718
+ $options = get_option (''.$option_name.'');
2719
+
2720
+ $html = '<input type="checkbox" name="googlelanguagetranslator_analytics" id="googlelanguagetranslator_analytics" value="1" '.checked(1,$options,false).'/> &nbsp; Activate Google Analytics tracking?';
2721
+ echo $html;
2722
+ }
2723
+
2724
+ public function googlelanguagetranslator_analytics_id_cb() {
2725
+
2726
+ $option_name = 'googlelanguagetranslator_analytics_id' ;
2727
+ $new_value = '';
2728
+
2729
+ if ( get_option( $option_name ) === false ) {
2730
+
2731
+ // The option does not exist, so we update it.
2732
+ update_option( $option_name, $new_value );
2733
+ }
2734
+
2735
+ $options = get_option (''.$option_name.'');
2736
+
2737
+ $html = '<input type="text" name="googlelanguagetranslator_analytics_id" id="googlelanguagetranslator_analytics_id" value="'.$options.'" />';
2738
+ echo $html;
2739
+ }
2740
+
2741
+ public function googlelanguagetranslator_css_cb() {
2742
+
2743
+ $option_name = 'googlelanguagetranslator_css' ;
2744
+ $new_value = '';
2745
+
2746
+ if ( get_option( $option_name ) === false ) {
2747
+
2748
+ // The option does not exist, so we update it.
2749
+ update_option( $option_name, $new_value );
2750
+ }
2751
+
2752
+ $options = get_option (''.$option_name.'');
2753
+
2754
+ $html = '<textarea style="width:100%; height:200px" name="googlelanguagetranslator_css" id="googlelanguagetranslator_css">'.$options.'</textarea>';
2755
+ echo $html;
2756
+ }
2757
+
2758
+ public function googlelanguagetranslator_manage_translations_cb() {
2759
+ $option_name = 'googlelanguagetranslator_manage_translations' ;
2760
+ $new_value = 0;
2761
+
2762
+ if ( get_option( $option_name ) === false ) {
2763
+
2764
+ // The option does not exist, so we update it.
2765
+ update_option( $option_name, $new_value );
2766
+ }
2767
+
2768
+ $options = get_option (''.$option_name.'');
2769
+
2770
+ $html = '<input type="checkbox" name="googlelanguagetranslator_manage_translations" id="googlelanguagetranslator_manage_translations" value="1" '.checked(1,$options,false).'/> &nbsp; Turn on translation management?';
2771
+ echo $html;
2772
+ }
2773
+
2774
+ public function googlelanguagetranslator_multilanguage_cb() {
2775
+
2776
+ $option_name = 'googlelanguagetranslator_multilanguage' ;
2777
+ $new_value = 0;
2778
+
2779
+ if ( get_option( $option_name ) === false ) {
2780
+
2781
+ // The option does not exist, so we update it.
2782
+ update_option( $option_name, $new_value );
2783
+ }
2784
+
2785
+ $options = get_option (''.$option_name.'');
2786
+
2787
+ $html = '<input type="checkbox" name="googlelanguagetranslator_multilanguage" id="googlelanguagetranslator_multilanguage" value="1" '.checked(1,$options,false).'/> &nbsp; Turn on multilanguage mode?';
2788
+ echo $html;
2789
+ }
2790
+
2791
+ public function page_layout_cb() { ?>
2792
+ <div class="wrap">
2793
+ <div id="icon-options-general" class="icon32"></div>
2794
+ <h2><span class="notranslate">Google Language Translator</span></h2>
2795
+ <form action="<?php echo admin_url('options.php'); ?>" method="post">
2796
+ <div class="metabox-holder has-right-sidebar" style="float:left; width:65%">
2797
+ <div class="postbox" style="width: 100%">
2798
+ <h3 class="notranslate">Settings</h3>
2799
+
2800
+ <?php settings_fields('google_language_translator'); ?>
2801
+ <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
2802
+ <tr>
2803
+ <td style="width:60%" class="notranslate">Plugin Status:</td>
2804
+ <td class="notranslate"><?php $this->googlelanguagetranslator_active_cb(); ?></td>
2805
+ </tr>
2806
+
2807
+ <tr class="notranslate">
2808
+ <td>Choose the original language of your website</td>
2809
+ <td><?php $this->googlelanguagetranslator_language_cb(); ?></td>
2810
+ </tr>
2811
+
2812
+ <tr class="notranslate">
2813
+ <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>
2814
+ <td><?php $this->googlelanguagetranslator_language_option_cb(); ?></td>
2815
+ </tr>
2816
+
2817
+ <tr class="notranslate">
2818
+ <td colspan="2"><?php $this->language_display_settings_cb(); ?></td>
2819
+ </tr>
2820
+
2821
+ <tr class="notranslate">
2822
+ <td class="choose_flags_intro">Show flag images?<br/>(Display up to 81 flags above the translator)</td>
2823
+ <td class="choose_flags_intro"><?php $this->googlelanguagetranslator_flags_cb(); ?></td>
2824
+ </tr>
2825
+
2826
+ <tr class="notranslate">
2827
+ <td class="choose_flags">Choose the flags you want to display:</td>
2828
+ <td></td>
2829
+ </tr>
2830
+
2831
+ <tr class="notranslate">
2832
+ <td colspan="2" class="choose_flags"><?php $this->flag_display_settings_cb(); ?></td>
2833
+ </tr>
2834
+
2835
+ <tr class="notranslate">
2836
+ <td>Show floating translation widget? <strong style="color:red">(New!)</strong><br/>
2837
+ <span>("All Languages" option <strong><u>must</u></strong> be chosen to show widget.)</span>
2838
+ </td>
2839
+ <td><?php $this->googlelanguagetranslator_floating_widget_cb(); ?></td>
2840
+ </tr>
2841
+
2842
+ <tr class="notranslate">
2843
+ <td>Show translate box?</td>
2844
+ <td><?php $this->googlelanguagetranslator_translatebox_cb(); ?></td>
2845
+ </tr>
2846
+
2847
+ <tr class="notranslate">
2848
+ <td>Layout options:</td>
2849
+ <td><?php $this->googlelanguagetranslator_display_cb(); ?></td>
2850
+ </tr>
2851
+
2852
+ <tr class="notranslate">
2853
+ <td>Show Google Toolbar?</td>
2854
+ <td><?php $this->googlelanguagetranslator_toolbar_cb(); ?></td>
2855
+ </tr>
2856
+
2857
+ <tr class="notranslate">
2858
+ <td>Show Google Branding?<br/>
2859
+ <span>(<a href="https://developers.google.com/translate/v2/attribution" target="_blank">Learn more</a> about Google's Attribution Requirements.)</span>
2860
+ </td>
2861
+ <td><?php $this->googlelanguagetranslator_showbranding_cb(); ?></td>
2862
+ </tr>
2863
+
2864
+ <tr class="alignment notranslate">
2865
+ <td class="flagdisplay">Align the translator left or right?</td>
2866
+ <td class="flagdisplay"><?php $this->googlelanguagetranslator_flags_alignment_cb(); ?></td>
2867
+ </tr>
2868
+
2869
+ <tr class="manage_translations notranslate">
2870
+ <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>
2871
+ <td><?php $this->googlelanguagetranslator_manage_translations_cb(); ?></td>
2872
+ </tr>
2873
+
2874
+ <tr class="multilanguage notranslate">
2875
+ <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>
2876
+ <td><?php $this->googlelanguagetranslator_multilanguage_cb(); ?></td>
2877
+ </tr>
2878
+
2879
+ <tr class="notranslate">
2880
+ <td>Google Analytics:</td>
2881
+ <td><?php $this->googlelanguagetranslator_analytics_cb(); ?></td>
2882
+ </tr>
2883
+
2884
+ <tr class="analytics notranslate">
2885
+ <td>Google Analytics ID (Ex. 'UA-11117410-2')</td>
2886
+ <td><?php $this->googlelanguagetranslator_analytics_id_cb(); ?></td>
2887
+ </tr>
2888
+
2889
+ <tr class="notranslate">
2890
+ <td>Copy/Paste this shortcode if adding to pages/posts:</td>
2891
+ <td>[google-translator]</td>
2892
+ </tr>
2893
+ </table>
2894
+
2895
+ <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
2896
+ <tr class="notranslate">
2897
+ <td>Copy/Paste this code if adding to header/footer:</td>
2898
+ <td>&lt?php echo do_shortcode('[google-translator]'); ?&gt</td>
2899
+ </tr>
2900
+
2901
+ <tr class="notranslate">
2902
+ <td><?php submit_button(); ?></td>
2903
+ <td></td>
2904
+ </tr>
2905
+ </table>
2906
+
2907
+ </div> <!-- .postbox -->
2908
+ </div> <!-- .metbox-holder -->
2909
+
2910
+ <div class="metabox-holder" style="float:right; clear:right; width:33%">
2911
+ <div class="postbox">
2912
+ <h3 class="notranslate">Preview</h3>
2913
+ <table style="width:100%">
2914
+ <tr>
2915
+ <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>
2916
+ </tr>
2917
+ </table>
2918
+ </div> <!-- .postbox -->
2919
+ </div> <!-- .metabox-holder -->
2920
+
2921
+
2922
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
2923
+ <div class="postbox">
2924
+ <h3>Add CSS Styles</h3>
2925
+ <div class="inside">
2926
+ <p>You can apply any necessary CSS styles below:</p>
2927
+ <?php $this->googlelanguagetranslator_css_cb(); ?>
2928
+ </div>
2929
+ </div>
2930
+ </div>
2931
+ </form>
2932
+
2933
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
2934
+ <div class="postbox">
2935
+ <h3>GLT Premium is Here! $12</h3>
2936
+ <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 />
2937
+ <ul id="features">
2938
+ <li>Get more design and functionality options</li>
2939
+ <li>Loads directly with page content, not afterward</li>
2940
+ <li>jQuery-powered "Elegant" theme to engage your visitors</li>
2941
+ <li>Manage your website's translations</li>
2942
+ <li>Show or hide any features you want</li>
2943
+ <li>Full access to our support forum</li>
2944
+ <li>Full access to future updates, for life of the plugin</li>
2945
+ </ul>
2946
+ </div>
2947
+ </div>
2948
+ </div>
2949
+
2950
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
2951
+ <div class="postbox">
2952
+ <h3>Please Consider A Donation</h3>
2953
+ <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 />
2954
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
2955
+ <input type="hidden" name="cmd" value="_donations">
2956
+ <input type="hidden" name="business" value="robertmyrick@hotmail.com">
2957
+ <input type="hidden" name="lc" value="US">
2958
+ <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!">
2959
+ <input type="hidden" name="no_note" value="0">
2960
+ <input type="hidden" name="currency_code" value="USD">
2961
+ <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
2962
+ <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!">
2963
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
2964
+ </form>
2965
+ <br />
2966
+ <br />
2967
+ </div>
2968
+ </div>
2969
+ </div>
2970
+ </div> <!-- .wrap -->
2971
+ <?php
2972
+ }
2973
+ }
2974
+
2975
+ $google_language_translator = new google_language_translator();
 
 
 
 
 
 
 
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.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
 
@@ -22,10 +22,16 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
22
  5. Copy the shortcode and paste it into a page, post or widget.
23
  6. Do not use the shortcode twice on a single page - it will not work.
24
 
 
25
  == Frequently Asked Questions ==
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).
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.9
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
 
22
  5. Copy the shortcode and paste it into a page, post or widget.
23
  6. Do not use the shortcode twice on a single page - it will not work.
24
 
25
+
26
  == Frequently Asked Questions ==
27
 
28
  == Changelog ==
29
 
30
+ 3.0.9
31
+
32
+ - Added a title field to the Google Language Translator widget.
33
+ - Removed "unexpected text characters" error upon activation (due to error in activation hook).
34
+
35
  3.0.8
36
 
37
  - Added 9 new languages into the plugin (Hausa, Igbo, Maori, Mongolian, Nepali, Punjabi, Somali, Yoruba, Zulu).
widget.php CHANGED
@@ -1,53 +1,51 @@
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' );
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' ), )
10
+ );
11
+ }
12
+
13
+ public function widget( $args, $instance ) {
14
+ $title = apply_filters( 'widget_title', $instance['title'] );
15
+ echo $args['before_widget'];
16
+ if ( ! empty( $title ) )
17
+ echo $args['before_title'] . $title . $args['after_title'];
18
+ $google_language_translator_class = new google_language_translator();
19
+ $glt_shortcode = $google_language_translator_class->google_translator_shortcode();
20
+ echo $glt_shortcode;
21
+ echo $args['after_widget'];
22
+ }
23
+
24
+ public function form( $instance ) {
25
+ if ( isset( $instance[ 'title' ] ) ) {
26
+ $title = $instance[ 'title' ];
27
+ }
28
+ else {
29
+ $title = __( 'Translate:', 'text_domain' );
30
+ }
31
+ ?>
32
+ <p>
33
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
34
+ <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 ); ?>">
35
+ </p>
36
+ <?php
37
+ }
38
+
39
+ public function update( $new_instance, $old_instance ) {
40
+ $instance = array();
41
+ $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
42
+
43
+ return $instance;
44
+ }
45
+
46
+ } // class glt_widget
47
+
48
+ function register_foo_widget() {
49
+ register_widget( 'glt_widget' );
50
+ }
 
 
51
  add_action( 'widgets_init', 'register_foo_widget' );