Google Language Translator - Version 2.4

Version Description

Download this release

Release Info

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

Code changes from version 2.3 to 2.4

Files changed (2) hide show
  1. google-language-translator.php +2395 -2384
  2. readme.txt +7 -1
google-language-translator.php CHANGED
@@ -1,2385 +1,2396 @@
1
- <?php
2
- /*
3
- Plugin Name: Google Language Translator
4
- Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
- Version: 2.3
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
- //include_once ( plugins_url() . '/widget.php' );
11
- include( plugin_dir_path( __FILE__ ) . 'widget.php');
12
-
13
- function scripts($hook_suffix) {
14
- global $p;
15
- if ($p == $hook_suffix) {
16
- wp_enqueue_script( 'my-admin-script', plugins_url('/admin.js',__FILE__), array('jquery'));
17
- wp_enqueue_script( 'my-flag-script', plugins_url('/flags.js',__FILE__), array('jquery'));
18
- wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
19
- wp_enqueue_style( 'style.css' );
20
- }
21
- }
22
-
23
- function flags() {
24
- wp_enqueue_script( 'flags', plugins_url('/flags.js',__FILE__), array('jquery'));
25
- wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
26
- wp_enqueue_style( 'style.css' );
27
- }
28
- add_action('wp_enqueue_scripts', 'flags');
29
-
30
- function page (){
31
- global $p;
32
-
33
- add_action( 'admin_enqueue_scripts', 'scripts');
34
-
35
- $p = add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'google_language_translator', 'page_cb');
36
- }
37
- add_action('admin_menu', 'page');
38
-
39
- function google_translator_shortcode() {
40
- if (get_option('googlelanguagetranslator_display')=='Vertical'){
41
- return googlelanguagetranslator_vertical();
42
- }
43
-
44
- elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
45
- return googlelanguagetranslator_horizontal();
46
- }
47
- }
48
-
49
- if (get_option('googlelanguagetranslator_toolbar')=='Yes') {
50
- add_action ('wp_head','googlelanguagetranslator_toolbar_yes');
51
- add_action ('admin_head','googlelanguagetranslator_toolbar_yes');
52
- }
53
-
54
- elseif(get_option('googlelanguagetranslator_toolbar')=='No'){
55
- add_action ('wp_head','googlelanguagetranslator_toolbar_no');
56
- add_action ('admin_head','googlelanguagetranslator_toolbar_no');
57
- }
58
-
59
- if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
60
- add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
61
- add_action ('admin_head','googlelanguagetranslator_showbranding_yes');
62
- }
63
-
64
- elseif(get_option('googlelanguagetranslator_showbranding')=='No') {
65
- add_action ('wp_head','googlelanguagetranslator_showbranding_no');
66
- add_action ('admin_head','googlelanguagetranslator_showbranding_no');
67
- }
68
-
69
- if (get_option('googlelanguagetranslator_translatebox') == 'no') {
70
- add_action ('wp_head', 'googlelanguagetranslator_translatebox');
71
- add_action ('admin_head', 'googlelanguagetranslator_translatebox');
72
- }
73
-
74
- if (get_option('googlelanguagetranslator_flags') == 'hide_flags') {
75
- add_action ('wp_head','googlelanguagetranslator_flags');
76
- add_action ('admin_head','googlelanguagetranslator_flags');
77
- }
78
-
79
- if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
80
- add_action ('wp_head','googlelanguagetranslator_flags_display');
81
- add_action ('admin_head','googlelanguagetranslator_flags_display');
82
- }
83
- add_shortcode( 'google-translator', 'google_translator_shortcode');
84
-
85
- add_filter('widget_text', 'do_shortcode');
86
-
87
- function page_cb() { ?>
88
- <div class="wrap" style="width:89%">
89
- <div id="icon-options-general" class="icon32"></div>
90
- <h2><span class="notranslate">Google Language Translator</span></h2>
91
- <div class="metabox-holder has-right-sidebar" style="float:left; width:65%">
92
- <div class="postbox" style="width: 100%">
93
- <h3 class="notranslate">Settings</h3>
94
- <form action="<?php echo admin_url('options.php'); ?>" method="post">
95
- <?php settings_fields('google_language_translator'); ?>
96
- <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
97
- <tr>
98
- <td class="notranslate">Plugin Status:</td>
99
- <td class="notranslate"><?php googlelanguagetranslator_active_cb(); ?></td>
100
- </tr>
101
-
102
- <tr class="notranslate">
103
- <td>Choose the original language of your website</td>
104
- <td><?php googlelanguagetranslator_language_cb(); ?></td>
105
- </tr>
106
-
107
- <tr class="notranslate">
108
- <td>What translation languages will you display to website visitors?<br/>(Note: To show flags you must choose "All Languages")</td>
109
- <td><?php googlelanguagetranslator_language_option_cb(); ?></td>
110
- </tr>
111
-
112
- <tr class="notranslate">
113
- <td colspan="2"><?php language_display_settings_cb(); ?></td>
114
- </tr>
115
-
116
- <tr class="notranslate">
117
- <td class="choose_flags_intro">Show flag images?<br/>(Display up to 7 flags above the translator)</td>
118
- <td class="choose_flags_intro"><?php googlelanguagetranslator_flags_cb(); ?></td>
119
- </tr>
120
-
121
- <tr class="notranslate">
122
- <td class="choose_flags">Choose the flags you want to display:</td>
123
- <td></td>
124
- </tr>
125
-
126
- <tr class="notranslate">
127
- <td colspan="2" class="choose_flags"><?php flag_display_settings_cb(); ?></td>
128
- </tr>
129
-
130
- <tr class="notranslate">
131
- <td>Show translate box?</td>
132
- <td><?php googlelanguagetranslator_translatebox_cb(); ?></td>
133
- </tr>
134
-
135
- <tr class="notranslate">
136
- <td>Layout options:</td>
137
- <td><?php googlelanguagetranslator_display_cb(); ?></td>
138
- </tr>
139
-
140
- <tr class="notranslate">
141
- <td>Show Google Toolbar?</td>
142
- <td><?php googlelanguagetranslator_toolbar_cb(); ?></td>
143
- </tr>
144
-
145
- <tr class="notranslate">
146
- <td>Show Google Branding?<br/>
147
- <span>(<a href="https://developers.google.com/translate/v2/attribution" target="_blank">Learn more</a> about Google's Attribution Requirements.)</span>
148
- </td>
149
- <td><?php googlelanguagetranslator_showbranding_cb(); ?></td>
150
- </tr>
151
-
152
- <tr class="alignment notranslate">
153
- <td class="flagdisplay">Align the translator left or right?<br/>(This option is for vertical layout only)</td>
154
- <td class="flagdisplay"><?php googlelanguagetranslator_flags_alignment_cb(); ?></td>
155
- </tr>
156
-
157
- <tr class="notranslate">
158
- <td>Copy/Paste this shortcode if adding to pages/posts:</td>
159
- <td>[google-translator]</td>
160
- </tr>
161
-
162
- <tr class="notranslate">
163
- <td>Copy/Paste this code if adding to header/footer:</td>
164
- <td>&lt?php echo do_shortcode('[google-translator]'); ?&gt</td>
165
- </tr>
166
-
167
- <tr class="notranslate">
168
- <td><?php submit_button(); ?></td>
169
- <td></td>
170
- </tr>
171
- </table>
172
- </form>
173
- </div> <!-- .postbox -->
174
- </div> <!-- .metbox-holder -->
175
-
176
- <div class="metabox-holder" style="float:right; clear:right; width:33%; min-width:350px; ">
177
- <div class="postbox">
178
- <h3 class="notranslate">Preview</h3>
179
- <table style="width:100%">
180
- <tr>
181
- <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>
182
- </tr>
183
- </table>
184
- </div> <!-- .postbox -->
185
- </div> <!-- .metabox-holder -->
186
-
187
-
188
- <div class="metabox-holder notranslate" style="float: right; width: 33%;">
189
- <div class="postbox">
190
- <h3>Please Consider A Donation</h3>
191
- <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 />
192
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
193
- <input type="hidden" name="cmd" value="_donations">
194
- <input type="hidden" name="business" value="robertmyrick@hotmail.com">
195
- <input type="hidden" name="lc" value="US">
196
- <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!">
197
- <input type="hidden" name="no_note" value="0">
198
- <input type="hidden" name="currency_code" value="USD">
199
- <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
200
- <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!">
201
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
202
- </form>
203
-
204
- <br />
205
- <br />
206
- </div>
207
- </div>
208
- </div>
209
- </div> <!-- .wrap -->
210
- <?php
211
- }
212
-
213
-
214
- /* ------------------------------------------------------------------------ *
215
- * Setting Registration
216
- * ------------------------------------------------------------------------ */
217
-
218
-
219
- function initialize_settings() {
220
-
221
- // First, we register a section. This is necessary since all future options must belong to one.
222
- add_settings_section(
223
- 'glt_settings', // ID used to identify this section and with which to register options
224
- 'Settings', // Title to be displayed on the administration page
225
- '', // Callback used to render the description of the section
226
- 'google_language_translator' // Page on which to add this section of options
227
- );
228
-
229
-
230
-
231
-
232
-
233
- //Fieldset 1
234
- add_settings_field( 'googlelanguagetranslator_active','Plugin status:','googlelanguagetranslator_active_cb','google_language_translator','glt_settings');
235
- add_settings_field( 'googlelanguagetranslator_language','Choose the original language of your website','','googlelanguagetranslator_language_cb','glt_settings');
236
- add_settings_field( 'googlelanguagetranslator_language_option','What translation languages will you display to website visitors?','googlelanguagetranslator_language_option_cb','google_language_translator','glt_settings');
237
- add_settings_field( 'language_display_settings','Your language choices','language_display_settings_cb','google_language_translator','glt_settings');
238
- add_settings_field( 'googlelanguagetranslator_flags','Show Flag Images?','googlelanguagetranslator_flags_cb','google_language_translator','glt_settings');
239
- add_settings_field( 'flag_display_settings','Flag Options','flag_display_settings_cb','google_language_translator','glt_settings');
240
- add_settings_field( 'googlelanguagetranslator_translatebox','Show Translate Box?','googlelanguagetranslator_translatebox_cb','google_language_translator','glt_settings');
241
- add_settings_field( 'googlelanguagetranslator_display', 'Layout Options','googlelanguagetranslator_display_cb','google_language_translator','glt_settings');
242
- add_settings_field( 'googlelanguagetranslator_toolbar', 'Show Toolbar','googlelanguagetranslator_toolbar_cb','google_language_translator','glt_settings');
243
- add_settings_field( 'googlelanguagetranslator_showbranding', 'Show Google Branding','googlelanguagetranslator_showbranding_cb','google_language_translator','glt_settings');
244
- add_settings_field( 'googlelanguagetranslator_flags_alignment', 'Align Flags Right or Left', 'googlelanguagetranslator_flags_alignment_cb','google_language_translator','glt_settings');
245
-
246
-
247
-
248
- //Register Fieldset 1
249
- register_setting( 'google_language_translator','googlelanguagetranslator_active');
250
- register_setting( 'google_language_translator','googlelanguagetranslator_language');
251
- register_setting( 'google_language_translator','googlelanguagetranslator_language_option');
252
- register_setting( 'google_language_translator','language_display_settings');
253
- register_setting( 'google_language_translator','googlelanguagetranslator_flags');
254
- register_setting( 'google_language_translator','flag_display_settings');
255
- register_setting( 'google_language_translator','googlelanguagetranslator_translatebox');
256
- register_setting( 'google_language_translator','googlelanguagetranslator_display');
257
- register_setting( 'google_language_translator','googlelanguagetranslator_toolbar');
258
- register_setting( 'google_language_translator','googlelanguagetranslator_showbranding');
259
- register_setting( 'google_language_translator','googlelanguagetranslator_flags_alignment');
260
-
261
- function googlelanguagetranslator_active_cb() {
262
- $options = get_option( 'googlelanguagetranslator_active');
263
- $html = '<input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" '.checked(1,$options['googlelanguagetranslator_active'],false).'/> &nbsp; Activate Google Language Translator?';
264
- echo $html;
265
- }
266
-
267
- function googlelanguagetranslator_language_cb() {
268
- $options = get_option( 'googlelanguagetranslator_language' ); ?>
269
- <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language">
270
- <option value="af" <?php if($options=='af'){echo "selected";}?>>Afrikaans</option>
271
- <option value="sq" <?php if($options=='sq'){echo "selected";}?>>Albanian</option>
272
- <option value="ar" <?php if($options=='ar'){echo "selected";}?>>Arabic</option>
273
- <option value="hy" <?php if($options=='hy'){echo "selected";}?>>Armenian</option>
274
- <option value="az" <?php if($options=='az'){echo "selected";}?>>Azerbaijani</option>
275
- <option value="eu" <?php if($options=='eu'){echo "selected";}?>>Basque</option>
276
- <option value="be" <?php if($options=='be'){echo "selected";}?>>Belarusian</option>
277
- <option value="bn" <?php if($options=='bn'){echo "selected";}?>>Bengali</option>
278
- <option value="bs" <?php if($options=='bs'){echo "selected";}?>>Bosnian</option>
279
- <option value="bg" <?php if($options=='bg'){echo "selected";}?>>Bulgarian</option>
280
- <option value="ca" <?php if($options=='ca'){echo "selected";}?>>Catalan</option>
281
- <option value="ceb" <?php if($options=='ceb'){echo "selected";}?>>Cebuano</option>
282
- <option value="zh-CN" <?php if($options=='zh-CN'){echo "selected";}?>>Chinese</option>
283
- <option value="zh-TW" <?php if($options=='zh-TW'){echo "selected";}?>>Chinese (Han)</option>
284
- <option value="hr" <?php if($options=='hr'){echo "selected";}?>>Croatian</option>
285
- <option value="cs" <?php if($options=='cs'){echo "selected";}?>>Czech</option>
286
- <option value="da" <?php if($options=='da'){echo "selected";}?>>Danish</option>
287
- <option value="nl" <?php if($options=='nl'){echo "selected";}?>>Dutch</option>
288
- <option value="en" <?php if($options=='en'){echo "selected";}?>>English</option>
289
- <option value="eo" <?php if($options=='eo'){echo "selected";}?>>Esperanto</option>
290
- <option value="et" <?php if($options=='et'){echo "selected";}?>>Estonian</option>
291
- <option value="tl" <?php if($options=='tl'){echo "selected";}?>>Filipino</option>
292
- <option value="fi" <?php if($options=='fi'){echo "selected";}?>>Finnish</option>
293
- <option value="fr" <?php if($options=='fr'){echo "selected";}?>>French</option>
294
- <option value="gl" <?php if($options=='gl'){echo "selected";}?>>Galician</option>
295
- <option value="ka" <?php if($options=='ka'){echo "selected";}?>>Georgian</option>
296
- <option value="de" <?php if($options=='de'){echo "selected";}?>>German</option>
297
- <option value="el" <?php if($options=='el'){echo "selected";}?>>Greek</option>
298
- <option value="gu" <?php if($options=='gu'){echo "selected";}?>>Gujarati</option>
299
- <option value="ht" <?php if($options=='ht'){echo "selected";}?>>Haitian</option>
300
- <option value="iw" <?php if($options=='iw'){echo "selected";}?>>Hebrew</option>
301
- <option value="hi" <?php if($options=='hi'){echo "selected";}?>>Hindi</option>
302
- <option value="hmn" <?php if($options=='hmn'){echo "selected";}?>>Hmong</option>
303
- <option value="hu" <?php if($options=='hu'){echo "selected";}?>>Hungarian</option>
304
- <option value="is" <?php if($options=='is'){echo "selected";}?>>Icelandic</option>
305
- <option value="id" <?php if($options=='id'){echo "selected";}?>>Indonesian</option>
306
- <option value="ga" <?php if($options=='ga'){echo "selected";}?>>Irish</option>
307
- <option value="it" <?php if($options=='it'){echo "selected";}?>>Italian</option>
308
- <option value="ja" <?php if($options=='ja'){echo "selected";}?>>Japanese</option>
309
- <option value="jw" <?php if($options=='jw'){echo "selected";}?>>Javanese</option>
310
- <option value="kn" <?php if($options=='kn'){echo "selected";}?>>Kannada</option>
311
- <option value="km" <?php if($options=='km'){echo "selected";}?>>Khmer</option>
312
- <option value="ko" <?php if($options=='ko'){echo "selected";}?>>Korean</option>
313
- <option value="lo" <?php if($options=='lo'){echo "selected";}?>>Lao</option>
314
- <option value="la" <?php if($options=='la'){echo "selected";}?>>Latin</option>
315
- <option value="lv" <?php if($options=='lv'){echo "selected";}?>>Latvian</option>
316
- <option value="lt" <?php if($options=='lt'){echo "selected";}?>>Lithuanian</option>
317
- <option value="mk" <?php if($options=='mk'){echo "selected";}?>>Macedonian</option>
318
- <option value="ms" <?php if($options=='ms'){echo "selected";}?>>Malay</option>
319
- <option value="mt" <?php if($options=='mt'){echo "selected";}?>>Maltese</option>
320
- <option value="mr" <?php if($options=='mr'){echo "selected";}?>>Marathi</option>
321
- <option value="no" <?php if($options=='no'){echo "selected";}?>>Norwegian</option>
322
- <option value="fa" <?php if($options=='fa'){echo "selected";}?>>Persian</option>
323
- <option value="pl" <?php if($options=='pl'){echo "selected";}?>>Polish</option>
324
- <option value="pt" <?php if($options=='pt'){echo "selected";}?>>Portuguese</option>
325
- <option value="ro" <?php if($options=='ro'){echo "selected";}?>>Romanian</option>
326
- <option value="ru" <?php if($options=='ru'){echo "selected";}?>>Russian</option>
327
- <option value="sr" <?php if($options=='sr'){echo "selected";}?>>Serbian</option>
328
- <option value="sk" <?php if($options=='sk'){echo "selected";}?>>Slovak</option>
329
- <option value="sl" <?php if($options=='sl'){echo "selected";}?>>Slovenian</option>
330
- <option value="es" <?php if($options=='es'){echo "selected";}?>>Spanish</option>
331
- <option value="sw" <?php if($options=='sw'){echo "selected";}?>>Swahili</option>
332
- <option value="sv" <?php if($options=='sv'){echo "selected";}?>>Swedish</option>
333
- <option value="ta" <?php if($options=='ta'){echo "selected";}?>>Tamil</option>
334
- <option value="te" <?php if($options=='te'){echo "selected";}?>>Telugu</option>
335
- <option value="th" <?php if($options=='th'){echo "selected";}?>>Thai</option>
336
- <option value="tr" <?php if($options=='tr'){echo "selected";}?>>Turkish</option>
337
- <option value="uk" <?php if($options=='uk'){echo "selected";}?>>Ukranian</option>
338
- <option value="ur" <?php if($options=='ur'){echo "selected";}?>>Urdu</option>
339
- <option value="vi" <?php if($options=='vi'){echo "selected";}?>>Vietnamese</option>
340
- <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Welsh</option>
341
- <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Yiddish</option>
342
- </select>
343
- <?php
344
- }
345
-
346
- function googlelanguagetranslator_language_option_cb() {
347
- $options = get_option('googlelanguagetranslator_language_option','all'); ?>
348
- <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="all" <?php if($options=='all'){echo "checked";}?>/> All Languages<br/>
349
- <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="specific" <?php if($options=='specific'){echo "checked";}?>/> Specific Languages
350
- <?php }
351
-
352
-
353
-
354
- function language_display_settings_cb() {
355
- $get_language_choices = get_option ('language_display_settings'); ?>
356
- <div class="languages" style="width:25%; float:left">
357
- <div><input type="checkbox" name="language_display_settings[af]" value="1"<?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?> /> Afrikaans</div>
358
- <div><input type="checkbox" name="language_display_settings[sq]" value="1"<?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?> /> Albanian</div>
359
- <div><input type="checkbox" name="language_display_settings[ar]" value="1"<?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?> /> Arabic</div>
360
- <div><input type="checkbox" name="language_display_settings[hy]" value="1"<?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?> /> Armenian</div>
361
- <div><input type="checkbox" name="language_display_settings[az]" value="1"<?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?> /> Azerbaijani</div>
362
- <div><input type="checkbox" name="language_display_settings[eu]" value="1"<?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?> /> Basque</div>
363
- <div><input type="checkbox" name="language_display_settings[be]" value="1"<?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?> /> Belarusian</div>
364
- <div><input type="checkbox" name="language_display_settings[bn]" value="1"<?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?> /> Bengali</div>
365
- <div><input type="checkbox" name="language_display_settings[bs]" value="1"<?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?> /> Bosnian</div>
366
- <div><input type="checkbox" name="language_display_settings[bg]" value="1"<?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?> /> Bulgarian</div>
367
- <div><input type="checkbox" name="language_display_settings[ca]" value="1"<?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?> /> Catalan</div>
368
- <div><input type="checkbox" name="language_display_settings[ceb]" value="1"<?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?> /> Cebuano</div>
369
- <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>
370
- <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>
371
- <div><input type="checkbox" name="language_display_settings[hr]" value="1"<?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?> /> Croatian</div>
372
- <div><input type="checkbox" name="language_display_settings[cs]" value="1"<?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?> /> Czech</div>
373
- <div><input type="checkbox" name="language_display_settings[da]" value="1"<?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?> /> Danish</div>
374
- <div><input type="checkbox" name="language_display_settings[nl]" value="1"<?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?> /> Dutch</div>
375
- <div><input type="checkbox" name="language_display_settings[en]" value="1"<?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?> /> English</div>
376
- </div>
377
-
378
- <div class="languages" style="width:25%; float:left">
379
- <div><input type="checkbox" name="language_display_settings[eo]" value="1"<?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?> /> Esperanto</div>
380
- <div><input type="checkbox" name="language_display_settings[et]" value="1"<?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?> /> Estonian</div>
381
- <div><input type="checkbox" name="language_display_settings[tl]" value="1"<?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?> /> Filipino</div>
382
- <div><input type="checkbox" name="language_display_settings[fi]" value="1"<?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?> /> Finnish</div>
383
- <div><input type="checkbox" name="language_display_settings[fr]" value="1"<?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?> /> French</div>
384
- <div><input type="checkbox" name="language_display_settings[gl]" value="1"<?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?> /> Galician</div>
385
- <div><input type="checkbox" name="language_display_settings[ka]" value="1"<?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?> /> Georgian</div>
386
- <div><input type="checkbox" name="language_display_settings[de]" value="1"<?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?> /> German</div>
387
- <div><input type="checkbox" name="language_display_settings[el]" value="1"<?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?> /> Greek</div>
388
- <div><input type="checkbox" name="language_display_settings[gu]" value="1"<?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?> /> Gujarati</div>
389
- <div><input type="checkbox" name="language_display_settings[ht]" value="1"<?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?> /> Haitian</div>
390
- <div><input type="checkbox" name="language_display_settings[iw]" value="1"<?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?> /> Hebrew</div>
391
- <div><input type="checkbox" name="language_display_settings[hi]" value="1"<?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?> /> Hindi</div>
392
- <div><input type="checkbox" name="language_display_settings[hmn]" value="1"<?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?> /> Hmong</div>
393
- <div><input type="checkbox" name="language_display_settings[hu]" value="1"<?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?> /> Hungarian</div>
394
- <div><input type="checkbox" name="language_display_settings[is]" value="1"<?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?> /> Icelandic</div>
395
- <div><input type="checkbox" name="language_display_settings[id]" value="1"<?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?> /> Indonesian</div>
396
- <div><input type="checkbox" name="language_display_settings[ga]" value="1"<?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?> /> Irish</div>
397
- <div><input type="checkbox" name="language_display_settings[it]" value="1"<?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?> /> Italian</div>
398
- </div>
399
-
400
- <div class="languages" style="width:25%; float:left">
401
- <div><input type="checkbox" name="language_display_settings[ja]" value="1"<?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?> /> Japanese</div>
402
- <div><input type="checkbox" name="language_display_settings[jw]" value="1"<?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?> /> Javanese</div>
403
- <div><input type="checkbox" name="language_display_settings[kn]" value="1"<?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?> /> Kannada</div>
404
- <div><input type="checkbox" name="language_display_settings[km]" value="1"<?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?> /> Khmer</div>
405
- <div><input type="checkbox" name="language_display_settings[ko]" value="1"<?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?> /> Korean</div>
406
- <div><input type="checkbox" name="language_display_settings[lo]" value="1"<?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?> /> Lao</div>
407
- <div><input type="checkbox" name="language_display_settings[la]" value="1"<?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?> /> Latin</div>
408
- <div><input type="checkbox" name="language_display_settings[lv]" value="1"<?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?> /> Latvian</div>
409
- <div><input type="checkbox" name="language_display_settings[lt]" value="1"<?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?> /> Lithuanian</div>
410
- <div><input type="checkbox" name="language_display_settings[mk]" value="1"<?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?> /> Macedonian</div>
411
- <div><input type="checkbox" name="language_display_settings[ms]" value="1"<?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?> /> Malay</div>
412
- <div><input type="checkbox" name="language_display_settings[mt]" value="1"<?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?> /> Maltese</div>
413
- <div><input type="checkbox" name="language_display_settings[mr]" value="1"<?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?> /> Marathi</div>
414
- <div><input type="checkbox" name="language_display_settings[no]" value="1"<?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?> /> Norwegian</div>
415
- <div><input type="checkbox" name="language_display_settings[fa]" value="1"<?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?> /> Persian</div>
416
- <div><input type="checkbox" name="language_display_settings[pl]" value="1"<?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?> /> Polish</div>
417
- <div><input type="checkbox" name="language_display_settings[pt]" value="1"<?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?> /> Portuguese</div>
418
- <div><input type="checkbox" name="language_display_settings[ro]" value="1"<?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?> /> Romanian</div>
419
- <div><input type="checkbox" name="language_display_settings[ru]" value="1"<?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?> /> Russian</div>
420
- </div>
421
-
422
- <div class="languages" style="width:25%; float:left">
423
- <div><input type="checkbox" name="language_display_settings[sr]" value="1"<?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?> /> Serbian</div>
424
- <div><input type="checkbox" name="language_display_settings[sk]" value="1"<?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?> /> Slovak</div>
425
- <div><input type="checkbox" name="language_display_settings[sl]" value="1"<?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?> /> Slovenian</div>
426
- <div><input type="checkbox" name="language_display_settings[es]" value="1"<?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?> /> Spanish</div>
427
- <div><input type="checkbox" name="language_display_settings[sw]" value="1"<?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?> /> Swahili</div>
428
- <div><input type="checkbox" name="language_display_settings[sv]" value="1"<?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?> /> Swedish</div>
429
- <div><input type="checkbox" name="language_display_settings[ta]" value="1"<?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?> /> Tamil</div>
430
- <div><input type="checkbox" name="language_display_settings[te]" value="1"<?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?> /> Telugu</div>
431
- <div><input type="checkbox" name="language_display_settings[th]" value="1"<?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?> /> Thai</div>
432
- <div><input type="checkbox" name="language_display_settings[tr]" value="1"<?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?> /> Turkish</div>
433
- <div><input type="checkbox" name="language_display_settings[uk]" value="1"<?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?> /> Ukranian</div>
434
- <div><input type="checkbox" name="language_display_settings[ur]" value="1"<?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?> /> Urdu</div>
435
- <div><input type="checkbox" name="language_display_settings[vi]" value="1"<?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?> /> Vietnamese</div>
436
- <div><input type="checkbox" name="language_display_settings[cy]" value="1"<?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?> /> Welsh</div>
437
- <div><input type="checkbox" name="language_display_settings[yi]" value="1"<?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?> /> Yiddish</div>
438
- </div>
439
-
440
- <div style="clear:both"></div>
441
- <?php }
442
-
443
- function googlelanguagetranslator_flags_cb() {
444
- $options = get_option('googlelanguagetranslator_flags','hide_flags'); ?>
445
- <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="show_flags" <?php if($options=='show_flags'){echo "checked";}?>/> Yes, show flag images<br/>
446
- <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="hide_flags" <?php if($options=='hide_flags'){echo "checked";}?>/> No, hide flag images
447
- <?php }
448
-
449
-
450
- function flag_display_settings_cb() {
451
- $flag_defaults = array (
452
- 'flag-en' => 1
453
- );
454
-
455
- $get_flag_choices = get_option ('flag_display_settings');
456
-
457
- if (!isset ( $get_flag_choices ['flag-af'] ) ) {
458
- $get_flag_choices['flag-af'] = 0;
459
- }
460
-
461
- if (!isset ( $get_flag_choices ['flag-sq'] ) ) {
462
- $get_flag_choices['flag-sq'] = 0;
463
- }
464
-
465
- if (!isset ( $get_flag_choices ['flag-ar'] ) ) {
466
- $get_flag_choices['flag-ar'] = 0;
467
- }
468
-
469
- if (!isset ( $get_flag_choices ['flag-hy'] ) ) {
470
- $get_flag_choices['flag-hy'] = 0;
471
- }
472
-
473
- if (!isset ( $get_flag_choices ['flag-az'] ) ) {
474
- $get_flag_choices['flag-az'] = 0;
475
- }
476
-
477
- if (!isset ( $get_flag_choices ['flag-eu'] ) ) {
478
- $get_flag_choices['flag-eu'] = 0;
479
- }
480
-
481
- if (!isset ( $get_flag_choices ['flag-be'] ) ) {
482
- $get_flag_choices['flag-be'] = 0;
483
- }
484
-
485
- if (!isset ( $get_flag_choices ['flag-bn'] ) ) {
486
- $get_flag_choices['flag-bn'] = 0;
487
- }
488
-
489
- if (!isset ( $get_flag_choices ['flag-bs'] ) ) {
490
- $get_flag_choices['flag-bs'] = 0;
491
- }
492
-
493
- if (!isset ( $get_flag_choices ['flag-bg'] ) ) {
494
- $get_flag_choices['flag-bg'] = 0;
495
- }
496
-
497
- if (!isset ( $get_flag_choices ['flag-ca'] ) ) {
498
- $get_flag_choices['flag-ca'] = 0;
499
- }
500
-
501
- if (!isset ( $get_flag_choices ['flag-ceb'] ) ) {
502
- $get_flag_choices['flag-ceb'] = 0;
503
- }
504
-
505
- if (!isset ( $get_flag_choices ['flag-zh-CN'] ) ) {
506
- $get_flag_choices['flag-zh-CN'] = 0;
507
- }
508
-
509
- if (!isset ( $get_flag_choices ['flag-zh-TW'] ) ) {
510
- $get_flag_choices['flag-zh-TW'] = 0;
511
- }
512
-
513
- if (!isset ( $get_flag_choices ['flag-hr'] ) ) {
514
- $get_flag_choices['flag-hr'] = 0;
515
- }
516
-
517
- if (!isset ( $get_flag_choices ['flag-cs'] ) ) {
518
- $get_flag_choices['flag-cs'] = 0;
519
- }
520
-
521
- if (!isset ( $get_flag_choices ['flag-da'] ) ) {
522
- $get_flag_choices['flag-da'] = 0;
523
- }
524
-
525
- if (!isset ( $get_flag_choices ['flag-nl'] ) ) {
526
- $get_flag_choices['flag-nl'] = 0;
527
- }
528
-
529
- if (!isset ( $get_flag_choices ['flag-en'] ) ) {
530
- $get_flag_choices['flag-en'] = 0;
531
- update_option ('flag_display_settings',$flag_defaults);
532
- }
533
-
534
- if (!isset ( $get_flag_choices ['flag-eo'] ) ) {
535
- $get_flag_choices['flag-eo'] = 0;
536
- }
537
-
538
- if (!isset ( $get_flag_choices ['flag-et'] ) ) {
539
- $get_flag_choices['flag-et'] = 0;
540
- }
541
-
542
- if (!isset ( $get_flag_choices ['flag-tl'] ) ) {
543
- $get_flag_choices['flag-tl'] = 0;
544
- }
545
-
546
- if (!isset ( $get_flag_choices ['flag-fi'] ) ) {
547
- $get_flag_choices['flag-fi'] = 0;
548
- }
549
-
550
- if (!isset ( $get_flag_choices ['flag-fr'] ) ) {
551
- $get_flag_choices['flag-fr'] = 0;
552
- }
553
-
554
- if (!isset ( $get_flag_choices ['flag-gl'] ) ) {
555
- $get_flag_choices['flag-gl'] = 0;
556
- }
557
-
558
- if (!isset ( $get_flag_choices ['flag-ka'] ) ) {
559
- $get_flag_choices['flag-ka'] = 0;
560
- }
561
-
562
- if (!isset ( $get_flag_choices ['flag-de'] ) ) {
563
- $get_flag_choices['flag-de'] = 0;
564
- }
565
-
566
- if (!isset ( $get_flag_choices ['flag-el'] ) ) {
567
- $get_flag_choices['flag-el'] = 0;
568
- }
569
-
570
- if (!isset ( $get_flag_choices ['flag-gu'] ) ) {
571
- $get_flag_choices['flag-gu'] = 0;
572
- }
573
-
574
- if (!isset ( $get_flag_choices ['flag-ht'] ) ) {
575
- $get_flag_choices['flag-ht'] = 0;
576
- }
577
-
578
- if (!isset ( $get_flag_choices ['flag-iw'] ) ) {
579
- $get_flag_choices['flag-iw'] = 0;
580
- }
581
-
582
- if (!isset ( $get_flag_choices ['flag-hi'] ) ) {
583
- $get_flag_choices['flag-hi'] = 0;
584
- }
585
-
586
- if (!isset ( $get_flag_choices ['flag-hmn'] ) ) {
587
- $get_flag_choices['flag-hmn'] = 0;
588
- }
589
-
590
- if (!isset ( $get_flag_choices ['flag-hu'] ) ) {
591
- $get_flag_choices['flag-hu'] = 0;
592
- }
593
-
594
- if (!isset ( $get_flag_choices ['flag-is'] ) ) {
595
- $get_flag_choices['flag-is'] = 0;
596
- }
597
-
598
- if (!isset ( $get_flag_choices ['flag-id'] ) ) {
599
- $get_flag_choices['flag-id'] = 0;
600
- }
601
-
602
- if (!isset ( $get_flag_choices ['flag-ga'] ) ) {
603
- $get_flag_choices['flag-ga'] = 0;
604
- }
605
-
606
- if (!isset ( $get_flag_choices ['flag-it'] ) ) {
607
- $get_flag_choices['flag-it'] = 0;
608
- }
609
-
610
- if (!isset ( $get_flag_choices ['flag-ja'] ) ) {
611
- $get_flag_choices['flag-ja'] = 0;
612
- }
613
-
614
- if (!isset ( $get_flag_choices ['flag-jw'] ) ) {
615
- $get_flag_choices['flag-jw'] = 0;
616
- }
617
-
618
- if (!isset ( $get_flag_choices ['flag-kn'] ) ) {
619
- $get_flag_choices['flag-kn'] = 0;
620
- }
621
-
622
- if (!isset ( $get_flag_choices ['flag-km'] ) ) {
623
- $get_flag_choices['flag-km'] = 0;
624
- }
625
-
626
- if (!isset ( $get_flag_choices ['flag-ko'] ) ) {
627
- $get_flag_choices['flag-ko'] = 0;
628
- }
629
-
630
- if (!isset ( $get_flag_choices ['flag-lo'] ) ) {
631
- $get_flag_choices['flag-lo'] = 0;
632
- }
633
-
634
- if (!isset ( $get_flag_choices ['flag-la'] ) ) {
635
- $get_flag_choices['flag-la'] = 0;
636
- }
637
-
638
- if (!isset ( $get_flag_choices ['flag-lv'] ) ) {
639
- $get_flag_choices['flag-lv'] = 0;
640
- }
641
-
642
- if (!isset ( $get_flag_choices ['flag-lt'] ) ) {
643
- $get_flag_choices['flag-lt'] = 0;
644
- }
645
-
646
- if (!isset ( $get_flag_choices ['flag-mk'] ) ) {
647
- $get_flag_choices['flag-mk'] = 0;
648
- }
649
-
650
- if (!isset ( $get_flag_choices ['flag-ms'] ) ) {
651
- $get_flag_choices['flag-ms'] = 0;
652
- }
653
-
654
- if (!isset ( $get_flag_choices ['flag-mt'] ) ) {
655
- $get_flag_choices['flag-mt'] = 0;
656
- }
657
-
658
- if (!isset ( $get_flag_choices ['flag-mr'] ) ) {
659
- $get_flag_choices['flag-mr'] = 0;
660
- }
661
-
662
- if (!isset ( $get_flag_choices ['flag-no'] ) ) {
663
- $get_flag_choices['flag-no'] = 0;
664
- }
665
-
666
- if (!isset ( $get_flag_choices ['flag-fa'] ) ) {
667
- $get_flag_choices['flag-fa'] = 0;
668
- }
669
-
670
- if (!isset ( $get_flag_choices ['flag-pl'] ) ) {
671
- $get_flag_choices['flag-pl'] = 0;
672
- }
673
-
674
- if (!isset ( $get_flag_choices ['flag-pt'] ) ) {
675
- $get_flag_choices['flag-pt'] = 0;
676
- }
677
-
678
- if (!isset ( $get_flag_choices ['flag-ro'] ) ) {
679
- $get_flag_choices['flag-ro'] = 0;
680
- }
681
-
682
- if (!isset ( $get_flag_choices ['flag-ru'] ) ) {
683
- $get_flag_choices['flag-ru'] = 0;
684
- }
685
-
686
- if (!isset ( $get_flag_choices ['flag-sr'] ) ) {
687
- $get_flag_choices['flag-sr'] = 0;
688
- }
689
-
690
- if (!isset ( $get_flag_choices ['flag-sk'] ) ) {
691
- $get_flag_choices['flag-sk'] = 0;
692
- }
693
-
694
- if (!isset ( $get_flag_choices ['flag-sl'] ) ) {
695
- $get_flag_choices['flag-sl'] = 0;
696
- }
697
-
698
- if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
699
- $get_flag_choices['flag-es'] = 0;
700
- }
701
-
702
- if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
703
- $get_flag_choices['flag-sw'] = 0;
704
- }
705
-
706
- if (!isset ( $get_flag_choices ['flag-sv'] ) ) {
707
- $get_flag_choices['flag-sv'] = 0;
708
- }
709
-
710
- if (!isset ( $get_flag_choices ['flag-ta'] ) ) {
711
- $get_flag_choices['flag-ta'] = 0;
712
- }
713
-
714
- if (!isset ( $get_flag_choices ['flag-te'] ) ) {
715
- $get_flag_choices['flag-te'] = 0;
716
- }
717
-
718
- if (!isset ( $get_flag_choices ['flag-th'] ) ) {
719
- $get_flag_choices['flag-th'] = 0;
720
- }
721
-
722
- if (!isset ( $get_flag_choices ['flag-tr'] ) ) {
723
- $get_flag_choices['flag-tr'] = 0;
724
- }
725
-
726
- if (!isset ( $get_flag_choices ['flag-uk'] ) ) {
727
- $get_flag_choices['flag-uk'] = 0;
728
- }
729
-
730
- if (!isset ( $get_flag_choices ['flag-ur'] ) ) {
731
- $get_flag_choices['flag-ur'] = 0;
732
- }
733
-
734
- if (!isset ( $get_flag_choices ['flag-vi'] ) ) {
735
- $get_flag_choices['flag-vi'] = 0;
736
- }
737
-
738
- if (!isset ( $get_flag_choices ['flag-cy'] ) ) {
739
- $get_flag_choices['flag-cy'] = 0;
740
- }
741
-
742
- if (!isset ( $get_flag_choices ['flag-yi'] ) ) {
743
- $get_flag_choices['flag-yi'] = 0;
744
- }
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
- ?>
754
- <div class="flagdisplay" style="width:25%; float:left">
755
-
756
- <div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?> /> Afrikaans</div>
757
-
758
-
759
- <div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?> /> Albanian</div>
760
- <div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?> /> Arabic</div>
761
- <div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?> /> Armenian</div>
762
- <div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?> /> Azerbaijani</div>
763
- <div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?> /> Basque</div>
764
- <div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?> /> Belarusian</div>
765
- <div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?> /> Bengali</div>
766
- <div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?> /> Bosnian</div>
767
- <div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?> /> Bulgarian</div>
768
- <div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?> /> Catalan</div>
769
- <div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?> /> Cebuano</div>
770
- <div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?> /> Chinese</div>
771
- <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>
772
- <div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?> /> Croatian</div>
773
- <div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?> /> Czech</div>
774
- <div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?> /> Danish</div>
775
- <div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?> /> Dutch</div>
776
- <div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?> /> English</div>
777
- </div>
778
-
779
- <div class="flagdisplay" style="width:25%; float:left">
780
- <div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1"<?php checked( 1,$get_flag_choices['flag-eo']); ?> /> Esperanto</div>
781
- <div><input type="checkbox" name="flag_display_settings[flag-et]" value="1"<?php checked( 1,$get_flag_choices['flag-et']); ?> /> Estonian</div>
782
- <div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1"<?php checked( 1,$get_flag_choices['flag-tl']); ?> /> Filipino</div>
783
- <div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1"<?php checked( 1,$get_flag_choices['flag-fi']); ?> /> Finnish</div>
784
- <div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1"<?php checked( 1,$get_flag_choices['flag-fr']); ?> /> French</div>
785
- <div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1"<?php checked( 1,$get_flag_choices['flag-gl']); ?> /> Galician</div>
786
- <div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1"<?php checked( 1,$get_flag_choices['flag-ka']); ?> /> Georgian</div>
787
- <div><input type="checkbox" name="flag_display_settings[flag-de]" value="1"<?php checked( 1,$get_flag_choices['flag-de']); ?> /> German</div>
788
- <div><input type="checkbox" name="flag_display_settings[flag-el]" value="1"<?php checked( 1,$get_flag_choices['flag-el']); ?> /> Greek</div>
789
- <div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1"<?php checked( 1,$get_flag_choices['flag-gu']); ?> /> Gujarati</div>
790
- <div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1"<?php checked( 1,$get_flag_choices['flag-ht']); ?> /> Haitian</div>
791
- <div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1"<?php checked( 1,$get_flag_choices['flag-iw']); ?> /> Hebrew</div>
792
- <div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1"<?php checked( 1,$get_flag_choices['flag-hi']); ?> /> Hindi</div>
793
- <div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1"<?php checked( 1,$get_flag_choices['flag-hmn']); ?> /> Hmong</div>
794
- <div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1"<?php checked( 1,$get_flag_choices['flag-hu']); ?> /> Hungarian</div>
795
- <div><input type="checkbox" name="flag_display_settings[flag-is]" value="1"<?php checked( 1,$get_flag_choices['flag-is']); ?> /> Icelandic</div>
796
- <div><input type="checkbox" name="flag_display_settings[flag-id]" value="1"<?php checked( 1,$get_flag_choices['flag-id']); ?> /> Indonesian</div>
797
- <div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1"<?php checked( 1,$get_flag_choices['flag-ga']); ?> /> Irish</div>
798
- <div><input type="checkbox" name="flag_display_settings[flag-it]" value="1"<?php checked( 1,$get_flag_choices['flag-it']); ?> /> Italian</div>
799
- </div>
800
-
801
- <div class="flagdisplay" style="width:25%; float:left">
802
- <div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1"<?php checked( 1,$get_flag_choices['flag-ja']); ?> /> Japanese</div>
803
- <div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1"<?php checked( 1,$get_flag_choices['flag-jw']); ?> /> Javanese</div>
804
- <div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1"<?php checked( 1,$get_flag_choices['flag-kn']); ?> /> Kannada</div>
805
- <div><input type="checkbox" name="flag_display_settings[flag-km]" value="1"<?php checked( 1,$get_flag_choices['flag-km']); ?> /> Khmer</div>
806
- <div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1"<?php checked( 1,$get_flag_choices['flag-ko']); ?> /> Korean</div>
807
- <div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1"<?php checked( 1,$get_flag_choices['flag-lo']); ?> /> Lao</div>
808
- <div><input type="checkbox" name="flag_display_settings[flag-la]" value="1"<?php checked( 1,$get_flag_choices['flag-la']); ?> /> Latin</div>
809
- <div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1"<?php checked( 1,$get_flag_choices['flag-lv']); ?> /> Latvian</div>
810
- <div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1"<?php checked( 1,$get_flag_choices['flag-lt']); ?> /> Lithuanian</div>
811
- <div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1"<?php checked( 1,$get_flag_choices['flag-mk']); ?> /> Macedonian</div>
812
- <div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1"<?php checked( 1,$get_flag_choices['flag-ms']); ?> /> Malay</div>
813
- <div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1"<?php checked( 1,$get_flag_choices['flag-mt']); ?> /> Maltese</div>
814
- <div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1"<?php checked( 1,$get_flag_choices['flag-mr']); ?> /> Marathi</div>
815
- <div><input type="checkbox" name="flag_display_settings[flag-no]" value="1"<?php checked( 1,$get_flag_choices['flag-no']); ?> /> Norwegian</div>
816
- <div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1"<?php checked( 1,$get_flag_choices['flag-fa']); ?> /> Persian</div>
817
- <div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1"<?php checked( 1,$get_flag_choices['flag-pl']); ?> /> Polish</div>
818
- <div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1"<?php checked( 1,$get_flag_choices['flag-pt']); ?> /> Portuguese</div>
819
- <div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1"<?php checked( 1,$get_flag_choices['flag-ro']); ?> /> Romanian</div>
820
- <div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1"<?php checked( 1,$get_flag_choices['flag-ru']); ?> /> Russian</div>
821
- </div>
822
-
823
- <div class="flagdisplay" style="width:25%; float:left">
824
- <div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1"<?php checked( 1,$get_flag_choices['flag-sr']); ?> /> Serbian</div>
825
- <div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1"<?php checked( 1,$get_flag_choices['flag-sk']); ?> /> Slovak</div>
826
- <div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1"<?php checked( 1,$get_flag_choices['flag-sl']); ?> /> Slovenian</div>
827
- <div><input type="checkbox" name="flag_display_settings[flag-es]" value="1"<?php checked( 1,$get_flag_choices['flag-es']); ?> /> Spanish</div>
828
- <div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1"<?php checked( 1,$get_flag_choices['flag-sw']); ?> /> Swahili</div>
829
- <div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1"<?php checked( 1,$get_flag_choices['flag-sv']); ?> /> Swedish</div>
830
- <div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1"<?php checked( 1,$get_flag_choices['flag-ta']); ?> /> Tamil</div>
831
- <div><input type="checkbox" name="flag_display_settings[flag-te]" value="1"<?php checked( 1,$get_flag_choices['flag-te']); ?> /> Telugu</div>
832
- <div><input type="checkbox" name="flag_display_settings[flag-th]" value="1"<?php checked( 1,$get_flag_choices['flag-th']); ?> /> Thai</div>
833
- <div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1"<?php checked( 1,$get_flag_choices['flag-tr']); ?> /> Turkish</div>
834
- <div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1"<?php checked( 1,$get_flag_choices['flag-uk']); ?> /> Ukranian</div>
835
- <div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1"<?php checked( 1,$get_flag_choices['flag-ur']); ?> /> Urdu</div>
836
- <div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1"<?php checked( 1,$get_flag_choices['flag-vi']); ?> /> Vietnamese</div>
837
- <div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1"<?php checked( 1,$get_flag_choices['flag-cy']); ?> /> Welsh</div>
838
- <div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1"<?php checked( 1,$get_flag_choices['flag-yi']); ?> /> Yiddish</div>
839
-
840
-
841
- </div>
842
- <div style="clear:both"></div>
843
- <?php }
844
-
845
- function googlelanguagetranslator_translatebox_cb() {
846
- $options = get_option('googlelanguagetranslator_translatebox'); ?>
847
-
848
- <select name="googlelanguagetranslator_translatebox" id="googlelanguagetranslator_translatebox" style="width:170px">
849
- <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show language box</option>
850
- <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide language box</option>
851
- </select>
852
- <?php }
853
-
854
- function googlelanguagetranslator_display_cb() {
855
- $options = get_option('googlelanguagetranslator_display'); ?>
856
- <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:170px;">
857
- <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
858
- <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
859
- </select>
860
- <?php }
861
-
862
- function googlelanguagetranslator_toolbar_cb() {
863
- $options = get_option('googlelanguagetranslator_toolbar'); ?>
864
- <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:170px;">
865
- <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
866
- <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
867
- </select>
868
- <?php }
869
-
870
- function googlelanguagetranslator_showbranding_cb() {
871
- $options = get_option('googlelanguagetranslator_showbranding'); ?>
872
- <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:170px;">
873
- <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
874
- <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
875
- </select>
876
- <?php }
877
-
878
- function googlelanguagetranslator_flags_alignment_cb() {
879
- $options = get_option('googlelanguagetranslator_flags_alignment'); ?>
880
- <input type="radio" name="googlelanguagetranslator_flags_alignment" id="googlelanguagetranslator_flags_alignment" value="flags_left" <?php if(get_option('googlelanguagetranslator_flags_alignment')=='flags_left'){echo "checked";}?>/> Align Left<br/>
881
- <input type="radio" name="googlelanguagetranslator_flags_alignment" id="googlelanguagetranslator_flags_alignment" value="flags_right" <?php if(get_option('googlelanguagetranslator_flags_alignment')=='flags_right'){echo "checked";}?>/> Align Right
882
- <?php }
883
-
884
-
885
-
886
-
887
- } //End initialize_settings()
888
- add_action('admin_init', 'initialize_settings');
889
-
890
-
891
- // Functions for frontend display
892
-
893
- function googlelanguagetranslator_included_languages() {
894
- if ( get_option('googlelanguagetranslator_language_option')=='specific') {
895
- $get_language_choices = get_option ('language_display_settings');
896
- //print_r($get_language_choices);
897
-
898
- foreach ($get_language_choices as $key=>$value) {
899
- if($value == 1) {
900
- $items[] = $key;
901
- }
902
- }
903
- $comma_separated = implode(",",array_values($items));
904
-
905
- if ( get_option('googlelanguagetranslator_display') == 'Vertical') {
906
- $lang .= 'includedLanguages:\''.$comma_separated.'\',';
907
- return $lang;
908
- } elseif ( get_option('googlelanguagetranslator_display') == 'Horizontal') {
909
- $lang .= 'includedLanguages:\''.$comma_separated.'\',';
910
- return $lang;
911
- }
912
- }
913
- }
914
-
915
- function googlelanguagetranslator_vertical(){
916
- $language_choices = googlelanguagetranslator_included_languages();
917
- if(get_option('googlelanguagetranslator_active')==1){
918
- $get_flag_choices = get_option ('flag_display_settings');
919
-
920
- $str='<div id="flags">';
921
-
922
- foreach ($get_flag_choices as $key) {
923
- //print_r($key);
924
- }
925
- if ($key == '1') {
926
- if ( isset ( $get_flag_choices['flag-af'] ) ) {
927
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="flag af"></a>';
928
- }
929
-
930
-
931
- if ( isset ( $get_flag_choices['flag-sq'] ) ) {
932
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="flag sq"></a>';
933
- }
934
-
935
- if ( isset ( $get_flag_choices['flag-ar'] ) ) {
936
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="flag ar"></a>';
937
- }
938
-
939
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
940
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
941
- }
942
-
943
- if ( isset ( $get_flag_choices['flag-az'] ) ) {
944
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="flag az"></a>';
945
- }
946
-
947
- if ( isset ( $get_flag_choices['flag-eu'] ) ) {
948
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="flag eu"></a>';
949
- }
950
-
951
- if ( isset ( $get_flag_choices['flag-be'] ) ) {
952
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="flag be"></a>';
953
- }
954
-
955
- if ( isset ( $get_flag_choices['flag-bn'] ) ) {
956
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="flag bn"></a>';
957
- }
958
-
959
- if ( isset ( $get_flag_choices['flag-bs'] ) ) {
960
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="flag bs"></a>';
961
- }
962
-
963
- if ( isset ( $get_flag_choices['flag-bg'] ) ) {
964
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="flag bg"></a>';
965
- }
966
-
967
- if ( isset ( $get_flag_choices['flag-ca'] ) ) {
968
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="flag ca"></a>';
969
- }
970
-
971
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
972
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="flag ceb"></a>';
973
- }
974
-
975
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
976
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="flag zh-CN"></a>';
977
- }
978
-
979
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
980
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="flag zh-TW"></a>';
981
- }
982
-
983
- if ( isset ( $get_flag_choices['flag-cs'] ) ) {
984
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech Republic" class="flag cs"></a>';
985
- }
986
-
987
- if ( isset ( $get_flag_choices['flag-hr'] ) ) {
988
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="flag hr"></a>';
989
- }
990
-
991
- if ( isset ( $get_flag_choices['flag-da'] ) ) {
992
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="flag da"></a>';
993
- }
994
-
995
- if ( isset ( $get_flag_choices['flag-nl'] ) ) {
996
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Netherlands" class="flag nl"></a>';
997
- }
998
-
999
- if ( isset ( $get_flag_choices['flag-en'] ) ) {
1000
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="flag en"></a>';
1001
- }
1002
-
1003
- if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1004
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="flag eo"></a>';
1005
- }
1006
-
1007
- if ( isset ( $get_flag_choices['flag-et'] ) ) {
1008
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="flag et"></a>';
1009
- }
1010
-
1011
- if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1012
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="flag tl"></a>';
1013
- }
1014
-
1015
- if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1016
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="flag fi"></a>';
1017
- }
1018
-
1019
- if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1020
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="flag fr"></a>';
1021
- }
1022
-
1023
- if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1024
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="flag gl"></a>';
1025
- }
1026
-
1027
- if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1028
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="flag ka"></a>';
1029
- }
1030
-
1031
- if ( isset ( $get_flag_choices['flag-de'] ) ) {
1032
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="flag de"></a>';
1033
- }
1034
-
1035
- if ( isset ( $get_flag_choices['flag-el'] ) ) {
1036
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="flag el"></a>';
1037
- }
1038
-
1039
- if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1040
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="flag gu"></a>';
1041
- }
1042
-
1043
- if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1044
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="flag ht"></a>';
1045
- }
1046
-
1047
- if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1048
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="flag iw"></a>';
1049
- }
1050
-
1051
- if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1052
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="flag hi"></a>';
1053
- }
1054
-
1055
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1056
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="flag hmn"></a>';
1057
- }
1058
-
1059
- if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1060
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="flag hu"></a>';
1061
- }
1062
-
1063
- if ( isset ( $get_flag_choices['flag-is'] ) ) {
1064
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Iceland" class="flag is"></a>';
1065
- }
1066
-
1067
- if ( isset ( $get_flag_choices['flag-id'] ) ) {
1068
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="flag id"></a>';
1069
- }
1070
-
1071
- if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1072
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="flag ga"></a>';
1073
- }
1074
-
1075
- if ( isset ( $get_flag_choices['flag-it'] ) ) {
1076
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="flag it"></a>';
1077
- }
1078
-
1079
- if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1080
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="flag ja"></a>';
1081
- }
1082
-
1083
- if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1084
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="flag jw"></a>';
1085
- }
1086
-
1087
- if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1088
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="flag kn"></a>';
1089
- }
1090
-
1091
- if ( isset ( $get_flag_choices['flag-km'] ) ) {
1092
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="flag km"></a>';
1093
- }
1094
-
1095
- if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1096
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="flag ko"></a>';
1097
- }
1098
-
1099
- if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1100
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="flag lo"></a>';
1101
- }
1102
-
1103
- if ( isset ( $get_flag_choices['flag-la'] ) ) {
1104
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="flag la"></a>';
1105
- }
1106
-
1107
- if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1108
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="flag lv"></a>';
1109
- }
1110
-
1111
- if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1112
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="flag lt"></a>';
1113
- }
1114
-
1115
- if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1116
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="flag mk"></a>';
1117
- }
1118
-
1119
- if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1120
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="flag ms"></a>';
1121
- }
1122
-
1123
- if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1124
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="flag mt"></a>';
1125
- }
1126
-
1127
- if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1128
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="flag mr"></a>';
1129
- }
1130
-
1131
- if ( isset ( $get_flag_choices['flag-no'] ) ) {
1132
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="flag no"></a>';
1133
- }
1134
-
1135
- if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1136
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="flag fa"></a>';
1137
- }
1138
-
1139
- if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1140
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="flag pl"></a>';
1141
- }
1142
-
1143
- if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1144
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="flag pt"></a>';
1145
- }
1146
-
1147
- if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1148
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="flag ro"></a>';
1149
- }
1150
-
1151
- if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1152
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="flag ru"></a>';
1153
- }
1154
-
1155
- if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1156
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="flag sr"></a>';
1157
- }
1158
-
1159
- if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1160
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="flag sk"></a>';
1161
- }
1162
-
1163
- if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1164
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="flag sl"></a>';
1165
- }
1166
-
1167
- if ( isset ( $get_flag_choices['flag-es'] ) ) {
1168
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="flag es"></a>';
1169
- }
1170
-
1171
- if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1172
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="flag sw"></a>';
1173
- }
1174
-
1175
- if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1176
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="flag sv"></a>';
1177
- }
1178
-
1179
- if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1180
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="flag ta"></a>';
1181
- }
1182
-
1183
- if ( isset ( $get_flag_choices['flag-te'] ) ) {
1184
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="flag te"></a>';
1185
- }
1186
-
1187
- if ( isset ( $get_flag_choices['flag-th'] ) ) {
1188
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="haiT" class="flag th"></a>';
1189
- }
1190
-
1191
- if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1192
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="flag tr"></a>';
1193
- }
1194
-
1195
- if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1196
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="flag uk"></a>';
1197
- }
1198
-
1199
- if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1200
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="flag ur"></a>';
1201
- }
1202
-
1203
- if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1204
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="flag vi"></a>';
1205
- }
1206
-
1207
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1208
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1209
- }
1210
-
1211
- if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1212
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="flag cy"></a>';
1213
- }
1214
-
1215
- if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1216
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="flag yi"></a>';
1217
- }
1218
-
1219
-
1220
- // }
1221
-
1222
- $str.='<div class="glt-clear"></div>';
1223
- $str.='</div>';
1224
- $str.='<script type="text/javascript">
1225
- function GoogleLanguageTranslatorInit() {
1226
- new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.'autoDisplay: false }, \'google_language_translator\');}
1227
- </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1228
- <div id="google_language_translator"></div>';
1229
- return $str;
1230
- }
1231
- }
1232
- }
1233
-
1234
- function googlelanguagetranslator_horizontal(){
1235
- $language_choices = googlelanguagetranslator_included_languages();
1236
- if(get_option('googlelanguagetranslator_active')==1){
1237
- $get_flag_choices = get_option ('flag_display_settings');
1238
-
1239
- $str = '<div id="flags">';
1240
-
1241
- foreach ($get_flag_choices as $key) {
1242
- //print_r($key);
1243
- }
1244
- if ($key == '1') {
1245
- if ( isset ( $get_flag_choices['flag-af'] ) ) {
1246
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="flag af"></a>';
1247
- }
1248
-
1249
-
1250
- if ( isset ( $get_flag_choices['flag-sq'] ) ) {
1251
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="flag sq"></a>';
1252
- }
1253
-
1254
- if ( isset ( $get_flag_choices['flag-ar'] ) ) {
1255
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="flag ar"></a>';
1256
- }
1257
-
1258
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1259
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1260
- }
1261
-
1262
- if ( isset ( $get_flag_choices['flag-az'] ) ) {
1263
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="flag az"></a>';
1264
- }
1265
-
1266
- if ( isset ( $get_flag_choices['flag-eu'] ) ) {
1267
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="flag eu"></a>';
1268
- }
1269
-
1270
- if ( isset ( $get_flag_choices['flag-be'] ) ) {
1271
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="flag be"></a>';
1272
- }
1273
-
1274
- if ( isset ( $get_flag_choices['flag-bn'] ) ) {
1275
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="flag bn"></a>';
1276
- }
1277
-
1278
- if ( isset ( $get_flag_choices['flag-bs'] ) ) {
1279
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="flag bs"></a>';
1280
- }
1281
-
1282
- if ( isset ( $get_flag_choices['flag-bg'] ) ) {
1283
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="flag bg"></a>';
1284
- }
1285
-
1286
- if ( isset ( $get_flag_choices['flag-ca'] ) ) {
1287
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="flag ca"></a>';
1288
- }
1289
-
1290
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
1291
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="flag ceb"></a>';
1292
- }
1293
-
1294
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
1295
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="flag zh-CN"></a>';
1296
- }
1297
-
1298
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
1299
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="flag zh-TW"></a>';
1300
- }
1301
-
1302
- if ( isset ( $get_flag_choices['flag-cs'] ) ) {
1303
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech Republic" class="flag cs"></a>';
1304
- }
1305
-
1306
- if ( isset ( $get_flag_choices['flag-hr'] ) ) {
1307
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="flag hr"></a>';
1308
- }
1309
-
1310
- if ( isset ( $get_flag_choices['flag-da'] ) ) {
1311
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="flag da"></a>';
1312
- }
1313
-
1314
- if ( isset ( $get_flag_choices['flag-nl'] ) ) {
1315
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Netherlands" class="flag nl"></a>';
1316
- }
1317
-
1318
- if ( isset ( $get_flag_choices['flag-en'] ) ) {
1319
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="flag en"></a>';
1320
- }
1321
-
1322
- if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1323
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="flag eo"></a>';
1324
- }
1325
-
1326
- if ( isset ( $get_flag_choices['flag-et'] ) ) {
1327
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="flag et"></a>';
1328
- }
1329
-
1330
- if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1331
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="flag tl"></a>';
1332
- }
1333
-
1334
- if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1335
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="flag fi"></a>';
1336
- }
1337
-
1338
- if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1339
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="flag fr"></a>';
1340
- }
1341
-
1342
- if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1343
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="flag gl"></a>';
1344
- }
1345
-
1346
- if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1347
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="flag ka"></a>';
1348
- }
1349
-
1350
- if ( isset ( $get_flag_choices['flag-de'] ) ) {
1351
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="flag de"></a>';
1352
- }
1353
-
1354
- if ( isset ( $get_flag_choices['flag-el'] ) ) {
1355
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="flag el"></a>';
1356
- }
1357
-
1358
- if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1359
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="flag gu"></a>';
1360
- }
1361
-
1362
- if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1363
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="flag ht"></a>';
1364
- }
1365
-
1366
- if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1367
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="flag iw"></a>';
1368
- }
1369
-
1370
- if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1371
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="flag hi"></a>';
1372
- }
1373
-
1374
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1375
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="flag hmn"></a>';
1376
- }
1377
-
1378
- if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1379
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="flag hu"></a>';
1380
- }
1381
-
1382
- if ( isset ( $get_flag_choices['flag-is'] ) ) {
1383
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Iceland" class="flag is"></a>';
1384
- }
1385
-
1386
- if ( isset ( $get_flag_choices['flag-id'] ) ) {
1387
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="flag id"></a>';
1388
- }
1389
-
1390
- if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1391
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="flag ga"></a>';
1392
- }
1393
-
1394
- if ( isset ( $get_flag_choices['flag-it'] ) ) {
1395
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="flag it"></a>';
1396
- }
1397
-
1398
- if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1399
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="flag ja"></a>';
1400
- }
1401
-
1402
- if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1403
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="flag jw"></a>';
1404
- }
1405
-
1406
- if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1407
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="flag kn"></a>';
1408
- }
1409
-
1410
- if ( isset ( $get_flag_choices['flag-km'] ) ) {
1411
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="flag km"></a>';
1412
- }
1413
-
1414
- if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1415
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="flag ko"></a>';
1416
- }
1417
-
1418
- if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1419
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="flag lo"></a>';
1420
- }
1421
-
1422
- if ( isset ( $get_flag_choices['flag-la'] ) ) {
1423
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="flag la"></a>';
1424
- }
1425
-
1426
- if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1427
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="flag lv"></a>';
1428
- }
1429
-
1430
- if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1431
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="flag lt"></a>';
1432
- }
1433
-
1434
- if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1435
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="flag mk"></a>';
1436
- }
1437
-
1438
- if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1439
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="flag ms"></a>';
1440
- }
1441
-
1442
- if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1443
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="flag mt"></a>';
1444
- }
1445
-
1446
- if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1447
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="flag mr"></a>';
1448
- }
1449
-
1450
- if ( isset ( $get_flag_choices['flag-no'] ) ) {
1451
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="flag no"></a>';
1452
- }
1453
-
1454
- if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1455
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="flag fa"></a>';
1456
- }
1457
-
1458
- if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1459
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="flag pl"></a>';
1460
- }
1461
-
1462
- if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1463
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="flag pt"></a>';
1464
- }
1465
-
1466
- if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1467
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="flag ro"></a>';
1468
- }
1469
-
1470
- if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1471
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="flag ru"></a>';
1472
- }
1473
-
1474
- if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1475
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="flag sr"></a>';
1476
- }
1477
-
1478
- if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1479
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="flag sk"></a>';
1480
- }
1481
-
1482
- if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1483
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="flag sl"></a>';
1484
- }
1485
-
1486
- if ( isset ( $get_flag_choices['flag-es'] ) ) {
1487
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="flag es"></a>';
1488
- }
1489
-
1490
- if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1491
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="flag sw"></a>';
1492
- }
1493
-
1494
- if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1495
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="flag sv"></a>';
1496
- }
1497
-
1498
- if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1499
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="flag ta"></a>';
1500
- }
1501
-
1502
- if ( isset ( $get_flag_choices['flag-te'] ) ) {
1503
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="flag te"></a>';
1504
- }
1505
-
1506
- if ( isset ( $get_flag_choices['flag-th'] ) ) {
1507
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="haiT" class="flag th"></a>';
1508
- }
1509
-
1510
- if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1511
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="flag tr"></a>';
1512
- }
1513
-
1514
- if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1515
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="flag uk"></a>';
1516
- }
1517
-
1518
- if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1519
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="flag ur"></a>';
1520
- }
1521
-
1522
- if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1523
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="flag vi"></a>';
1524
- }
1525
-
1526
- if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1527
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1528
- }
1529
-
1530
- if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1531
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="flag cy"></a>';
1532
- }
1533
-
1534
- if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1535
- $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="flag yi"></a>';
1536
- }
1537
-
1538
-
1539
-
1540
-
1541
-
1542
- $str.='</div>';
1543
- $str.='<script type="text/javascript">
1544
- function GoogleLanguageTranslatorInit() {
1545
- new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.' layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,autoDisplay: false }, \'google_language_translator\'); }
1546
- </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1547
- <div id="google_language_translator"></div>';
1548
- return $str;
1549
- }
1550
- }
1551
- }
1552
-
1553
-
1554
- function googlelanguagetranslator_toolbar_yes(){
1555
- if(get_option('googlelanguagetranslator_active')==1) {
1556
- $str='<style type="text/css">';
1557
- $str.='#google_language_translator {color: transparent;}';
1558
- $str.='.goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}';
1559
- $str.='.goog-tooltip {display: none !important;}';
1560
- $str.='.goog-tooltip:hover {display: none !important;}';
1561
- $str.='.goog-text-highlight {background-color: transparent !important; border: none !important;box-shadow: none !important;}';
1562
- $str.='</style>';
1563
- return $str;
1564
- }
1565
- }
1566
-
1567
- function googlelanguagetranslator_toolbar_no(){
1568
- if(get_option('googlelanguagetranslator_active')==1) { ?>
1569
- <style type="text/css">
1570
- .goog-te-banner-frame{visibility:hidden !important;}
1571
- body {top:0px !important;}
1572
- </style>
1573
- <?php
1574
- }
1575
- }
1576
-
1577
-
1578
- function googlelanguagetranslator_showbranding_yes() {
1579
- if(get_option('googlelanguagetranslator_active')==1) { ?>
1580
- <style type="text/css">
1581
- #google_language_translator { width:auto !important; }
1582
- .goog-te-gadget .goog-te-combo {margin: 4px 0px !important;}
1583
- .goog-tooltip {display: none !important;}
1584
- .goog-tooltip:hover {display: none !important;}
1585
- .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
1586
- </style>
1587
- <?php
1588
- }
1589
- }
1590
-
1591
- function googlelanguagetranslator_flags() {
1592
- if(get_option('googlelanguagetranslator_active') ==1) { ?>
1593
- <style type="text/css">
1594
- #flags { display:none; }
1595
- </style>
1596
- <?php
1597
- }
1598
- }
1599
-
1600
- function googlelanguagetranslator_translatebox() {
1601
- if(get_option('googlelanguagetranslator_active') ==1) { ?>
1602
- <style type="text/css">
1603
- #google_language_translator { display:none; }
1604
- </style>
1605
- <?php
1606
- }
1607
- }
1608
-
1609
- function googlelanguagetranslator_showbranding_no() {
1610
- if(get_option('googlelanguagetranslator_active')==1) { ?>
1611
- <style type="text/css">
1612
- #google_language_translator a {display: none !important; }
1613
- .goog-te-gadget {color:transparent !important;}
1614
- .goog-te-gadget { font-size:0px !important; }
1615
- .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
1616
- .goog-tooltip {display: none !important;}
1617
- .goog-tooltip:hover {display: none !important;}
1618
- .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
1619
-
1620
- </style>
1621
- <?php
1622
- }
1623
- }
1624
-
1625
- function googlelanguagetranslator_flags_display() { ?>
1626
- <style type="text/css">
1627
- <?php if(get_option('googlelanguagetranslator_display')=='Vertical') { ?>
1628
- p.hello { font-size:12px; color:darkgray; }
1629
- <?php } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') { ?>
1630
- <?php if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') { ?>
1631
- #google_language_translator { text-align:left !important; }
1632
- select.goog-te-combo { float:right; }
1633
- .goog-te-gadget { padding-top:13px; }
1634
- .goog-te-gadget .goog-te-combo { margin-top:-7px !important; }
1635
- <?php } ?>
1636
- .goog-te-gadget { margin-top:2px !important; }
1637
- p.hello { font-size:12px; color:#666; }
1638
- <?php } ?>
1639
- <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
1640
- #google_language_translator { clear:both; width:auto !important; text-align:right; }
1641
- #flags { text-align:right; width:150px; float:right; clear:right; }
1642
- p.hello { text-align:right; float:right; clear:both; color:#666; }
1643
- .glt-clear { height:0px; clear:both; margin:0px; padding:0px; }
1644
- <?php } ?>
1645
- <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') { ?>
1646
- #google_language_translator { clear:both; }
1647
- #flags { width:150px; }
1648
- #flags a { display:inline-block; width:16px; height:12px; margin-right:2px; }
1649
- p.hello { font-size:12px; color:#666; }
1650
- <?php } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
1651
- #flags { width:150px; }
1652
- #flags a { display:inline-block; width:16px; height:12px; margin-left:2px; } ?>
1653
- <?php } ?>
1654
- </style>
1655
- <?php
1656
- $get_flag_choices = get_option ('flag_display_settings');
1657
-
1658
- if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) { ?>
1659
- <style type="text/css">
1660
- #flags a.zh-CN { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/china.png") 0px 0px no-repeat; }
1661
- </style>
1662
- <?php } else { ?>
1663
- <style type="text/css">
1664
- #flags a.zh-CN { display:none; }
1665
- </style>
1666
- <?php }
1667
-
1668
- if ( isset ( $get_flag_choices['flag-de'] ) ) { ?>
1669
- <style type="text/css">
1670
- #flags a.de { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/germany.png") 0px 0px no-repeat; }
1671
- </style>
1672
- <?php } else { ?>
1673
- <style type="text/css">
1674
- #flags a.de { display:none; }
1675
- </style>
1676
- <?php }
1677
-
1678
- if ( isset ( $get_flag_choices['flag-da'] ) ) { ?>
1679
- <style type="text/css">
1680
- #flags a.da { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/denmark.png") 0px 0px no-repeat; }
1681
- </style>
1682
- <?php } else { ?>
1683
- <style type="text/css">
1684
- #flags a.da { display:none; }
1685
- </style>
1686
- <?php }
1687
-
1688
- if ( isset ( $get_flag_choices['flag-fr'] ) ) { ?>
1689
- <style type="text/css">
1690
- #flags a.fr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/france.png") 0px 0px no-repeat; }
1691
- </style>
1692
- <?php } else { ?>
1693
- <style type="text/css">
1694
- #flags a.fr { display:none; }
1695
- </style>
1696
- <?php }
1697
-
1698
- if ( isset ( $get_flag_choices['flag-en'] ) ) { ?>
1699
- <style type="text/css">
1700
- #flags a.en { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/united-kingdom.png") 0px 0px no-repeat; }
1701
- </style>
1702
- <?php } else { ?>
1703
- <style type="text/css">
1704
- #flags a.en { display:none; }
1705
- </style>
1706
- <?php }
1707
-
1708
- if ( isset ( $get_flag_choices['flag-it'] ) ) { ?>
1709
- <style type="text/css">
1710
- #flags a.it { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/italy.png") 0px 0px no-repeat; }
1711
- </style>
1712
- <?php } else { ?>
1713
- <style type="text/css">
1714
- #flags a.it { display:none; }
1715
- </style>
1716
- <?php }
1717
-
1718
- if ( isset ( $get_flag_choices['flag-es'] ) ) { ?>
1719
- <style type="text/css">
1720
- #flags a.es { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/spain.png") 0px 0px no-repeat; }
1721
- </style>
1722
- <?php } else { ?>
1723
- <style type="text/css">
1724
- #flags a.es { display:none; }
1725
- </style>
1726
- <?php }
1727
-
1728
-
1729
-
1730
- if ( isset ( $get_flag_choices['flag-af'] ) ) { ?>
1731
- <style type="text/css">
1732
- #flags a.af { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/southafrica.png") 0px 0px no-repeat; }
1733
- </style>
1734
- <?php } else { ?>
1735
- <style type="text/css">
1736
- #flags a.af { display:none; }
1737
- </style>
1738
- <?php }
1739
-
1740
- if ( isset ( $get_flag_choices['flag-sq'] ) ) { ?>
1741
- <style type="text/css">
1742
- #flags a.sq { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/albania.png") 0px 0px no-repeat; }
1743
- </style>
1744
- <?php } else { ?>
1745
- <style type="text/css">
1746
- #flags a.sq { display:none; }
1747
- </style>
1748
- <?php }
1749
-
1750
- if ( isset ( $get_flag_choices['flag-ar'] ) ) { ?>
1751
- <style type="text/css">
1752
- #flags a.ar { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/saudiarabia.png") 0px 0px no-repeat; }
1753
- </style>
1754
- <?php } else { ?>
1755
- <style type="text/css">
1756
- #flags a.ar { display:none; }
1757
- </style>
1758
- <?php }
1759
-
1760
- if ( isset ( $get_flag_choices['flag-hy'] ) ) { ?>
1761
- <style type="text/css">
1762
- #flags a.hy { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/armenia.png") 0px 0px no-repeat; }
1763
- </style>
1764
- <?php } else { ?>
1765
- <style type="text/css">
1766
- #flags a.hy { display:none; }
1767
- </style>
1768
- <?php }
1769
-
1770
- if ( isset ( $get_flag_choices['flag-az'] ) ) { ?>
1771
- <style type="text/css">
1772
- #flags a.az { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/azerbaijan.png") 0px 0px no-repeat; }
1773
- </style>
1774
- <?php } else { ?>
1775
- <style type="text/css">
1776
- #flags a.az { display:none; }
1777
- </style>
1778
- <?php }
1779
-
1780
- if ( isset ( $get_flag_choices['flag-eu'] ) ) { ?>
1781
- <style type="text/css">
1782
- #flags a.eu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/basque.png") 0px 0px no-repeat; }
1783
- </style>
1784
- <?php } else { ?>
1785
- <style type="text/css">
1786
- #flags a.eu { display:none; }
1787
- </style>
1788
- <?php }
1789
-
1790
- if ( isset ( $get_flag_choices['flag-be'] ) ) { ?>
1791
- <style type="text/css">
1792
- #flags a.be { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/belarus.png") 0px 0px no-repeat; }
1793
- </style>
1794
- <?php } else { ?>
1795
- <style type="text/css">
1796
- #flags a.be { display:none; }
1797
- </style>
1798
- <?php }
1799
-
1800
- if ( isset ( $get_flag_choices['flag-bn'] ) ) { ?>
1801
- <style type="text/css">
1802
- #flags a.bn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bangladesh.png") 0px 0px no-repeat; }
1803
- </style>
1804
- <?php } else { ?>
1805
- <style type="text/css">
1806
- #flags a.bn { display:none; }
1807
- </style>
1808
- <?php }
1809
-
1810
- if ( isset ( $get_flag_choices['flag-bs'] ) ) { ?>
1811
- <style type="text/css">
1812
- #flags a.bs { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bosnia.png") 0px 0px no-repeat; }
1813
- </style>
1814
- <?php } else { ?>
1815
- <style type="text/css">
1816
- #flags a.bs { display:none; }
1817
- </style>
1818
- <?php }
1819
-
1820
- if ( isset ( $get_flag_choices['flag-bg'] ) ) { ?>
1821
- <style type="text/css">
1822
- #flags a.bg { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bulgaria.png") 0px 0px no-repeat; }
1823
- </style>
1824
- <?php } else { ?>
1825
- <style type="text/css">
1826
- #flags a.bg { display:none; }
1827
- </style>
1828
- <?php }
1829
-
1830
- if ( isset ( $get_flag_choices['flag-ca'] ) ) { ?>
1831
- <style type="text/css">
1832
- #flags a.ca { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/spain.png") 0px 0px no-repeat; }
1833
- </style>
1834
- <?php } else { ?>
1835
- <style type="text/css">
1836
- #flags a.ca { display:none; }
1837
- </style>
1838
- <?php }
1839
-
1840
- if ( isset ( $get_flag_choices['flag-ceb'] ) ) { ?>
1841
- <style type="text/css">
1842
- #flags a.ceb { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/philippines.png") 0px 0px no-repeat; }
1843
- </style>
1844
- <?php } else { ?>
1845
- <style type="text/css">
1846
- #flags a.ceb { display:none; }
1847
- </style>
1848
- <?php }
1849
-
1850
-
1851
-
1852
- if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) { ?>
1853
- <style type="text/css">
1854
- #flags a.zh-TW { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/china.png") 0px 0px no-repeat; }
1855
- </style>
1856
- <?php } else { ?>
1857
- <style type="text/css">
1858
- #flags a.zh-TW { display:none; }
1859
- </style>
1860
- <?php }
1861
-
1862
- if ( isset ( $get_flag_choices['flag-cs'] ) ) { ?>
1863
- <style type="text/css">
1864
- #flags a.cs { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/croatia.png") 0px 0px no-repeat; }
1865
- </style>
1866
- <?php } else { ?>
1867
- <style type="text/css">
1868
- #flags a.cs { display:none; }
1869
- </style>
1870
- <?php }
1871
-
1872
- if ( isset ( $get_flag_choices['flag-hr'] ) ) { ?>
1873
- <style type="text/css">
1874
- #flags a.hr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/czechrepublic.png") 0px 0px no-repeat; }
1875
- </style>
1876
- <?php } else { ?>
1877
- <style type="text/css">
1878
- #flags a.hr { display:none; }
1879
- </style>
1880
- <?php }
1881
-
1882
- if ( isset ( $get_flag_choices['flag-nl'] ) ) { ?>
1883
- <style type="text/css">
1884
- #flags a.nl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/netherlands.png") 0px 0px no-repeat; }
1885
- </style>
1886
- <?php } else { ?>
1887
- <style type="text/css">
1888
- #flags a.nl { display:none; }
1889
- </style>
1890
- <?php }
1891
-
1892
- if ( isset ( $get_flag_choices['flag-eo'] ) ) { ?>
1893
- <style type="text/css">
1894
- #flags a.eo { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/esperanto.png") 0px 0px no-repeat; }
1895
- </style>
1896
- <?php } else { ?>
1897
- <style type="text/css">
1898
- #flags a.eo { display:none; }
1899
- </style>
1900
- <?php }
1901
-
1902
- if ( isset ( $get_flag_choices['flag-et'] ) ) { ?>
1903
- <style type="text/css">
1904
- #flags a.et { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/estonia.png") 0px 0px no-repeat; }
1905
- </style>
1906
- <?php } else { ?>
1907
- <style type="text/css">
1908
- #flags a.et { display:none; }
1909
- </style>
1910
- <?php }
1911
-
1912
- if ( isset ( $get_flag_choices['flag-tl'] ) ) { ?>
1913
- <style type="text/css">
1914
- #flags a.tl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/philippines.png") 0px 0px no-repeat; }
1915
- </style>
1916
- <?php } else { ?>
1917
- <style type="text/css">
1918
- #flags a.tl { display:none; }
1919
- </style>
1920
- <?php }
1921
-
1922
- if ( isset ( $get_flag_choices['flag-fi'] ) ) { ?>
1923
- <style type="text/css">
1924
- #flags a.fi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/finland.png") 0px 0px no-repeat; }
1925
- </style>
1926
- <?php } else { ?>
1927
- <style type="text/css">
1928
- #flags a.fi { display:none; }
1929
- </style>
1930
- <?php }
1931
-
1932
- if ( isset ( $get_flag_choices['flag-gl'] ) ) { ?>
1933
- <style type="text/css">
1934
- #flags a.gl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/galicia.png") 0px 0px no-repeat; }
1935
- </style>
1936
- <?php } else { ?>
1937
- <style type="text/css">
1938
- #flags a.gl { display:none; }
1939
- </style>
1940
- <?php }
1941
-
1942
- if ( isset ( $get_flag_choices['flag-ka'] ) ) { ?>
1943
- <style type="text/css">
1944
- #flags a.ka { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/georgia.png") 0px 0px no-repeat; }
1945
- </style>
1946
- <?php } else { ?>
1947
- <style type="text/css">
1948
- #flags a.ka { display:none; }
1949
- </style>
1950
- <?php }
1951
-
1952
- if ( isset ( $get_flag_choices['flag-el'] ) ) { ?>
1953
- <style type="text/css">
1954
- #flags a.el { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/greece.png") 0px 0px no-repeat; }
1955
- </style>
1956
- <?php } else { ?>
1957
- <style type="text/css">
1958
- #flags a.el { display:none; }
1959
- </style>
1960
- <?php }
1961
-
1962
- if ( isset ( $get_flag_choices['flag-gu'] ) ) { ?>
1963
- <style type="text/css">
1964
- #flags a.gu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/india.png") 0px 0px no-repeat; }
1965
- </style>
1966
- <?php } else { ?>
1967
- <style type="text/css">
1968
- #flags a.gu { display:none; }
1969
- </style>
1970
- <?php }
1971
-
1972
- if ( isset ( $get_flag_choices['flag-ht'] ) ) { ?>
1973
- <style type="text/css">
1974
- #flags a.ht { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/haiti.png") 0px 0px no-repeat; }
1975
- </style>
1976
- <?php } else { ?>
1977
- <style type="text/css">
1978
- #flags a.ht { display:none; }
1979
- </style>
1980
- <?php }
1981
-
1982
- if ( isset ( $get_flag_choices['flag-iw'] ) ) { ?>
1983
- <style type="text/css">
1984
- #flags a.iw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/israel.png") 0px 0px no-repeat; }
1985
- </style>
1986
- <?php } else { ?>
1987
- <style type="text/css">
1988
- #flags a.iw { display:none; }
1989
- </style>
1990
- <?php }
1991
-
1992
- if ( isset ( $get_flag_choices['flag-hi'] ) ) { ?>
1993
- <style type="text/css">
1994
- #flags a.hi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/india.png") 0px 0px no-repeat; }
1995
- </style>
1996
- <?php } else { ?>
1997
- <style type="text/css">
1998
- #flags a.hi { display:none; }
1999
- </style>
2000
- <?php }
2001
-
2002
- if ( isset ( $get_flag_choices['flag-hmn'] ) ) { ?>
2003
- <style type="text/css">
2004
- #flags a.hmn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/hmong.png") 0px 0px no-repeat; }
2005
- </style>
2006
- <?php } else { ?>
2007
- <style type="text/css">
2008
- #flags a.hmn { display:none; }
2009
- </style>
2010
- <?php }
2011
-
2012
- if ( isset ( $get_flag_choices['flag-hu'] ) ) { ?>
2013
- <style type="text/css">
2014
- #flags a.hu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/hungary.png") 0px 0px no-repeat; }
2015
- </style>
2016
- <?php } else { ?>
2017
- <style type="text/css">
2018
- #flags a.hu { display:none; }
2019
- </style>
2020
- <?php }
2021
-
2022
- if ( isset ( $get_flag_choices['flag-is'] ) ) { ?>
2023
- <style type="text/css">
2024
- #flags a.is { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/iceland.png") 0px 0px no-repeat; }
2025
- </style>
2026
- <?php } else { ?>
2027
- <style type="text/css">
2028
- #flags a.is { display:none; }
2029
- </style>
2030
- <?php }
2031
-
2032
- if ( isset ( $get_flag_choices['flag-id'] ) ) { ?>
2033
- <style type="text/css">
2034
- #flags a.id { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/indonesia.png") 0px 0px no-repeat; }
2035
- </style>
2036
- <?php } else { ?>
2037
- <style type="text/css">
2038
- #flags a.id { display:none; }
2039
- </style>
2040
- <?php }
2041
-
2042
- if ( isset ( $get_flag_choices['flag-ga'] ) ) { ?>
2043
- <style type="text/css">
2044
- #flags a.ga { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/ireland.png") 0px 0px no-repeat; }
2045
- </style>
2046
- <?php } else { ?>
2047
- <style type="text/css">
2048
- #flags a.ga { display:none; }
2049
- </style>
2050
- <?php }
2051
-
2052
- if ( isset ( $get_flag_choices['flag-ja'] ) ) { ?>
2053
- <style type="text/css">
2054
- #flags a.ja { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/japan.png") 0px 0px no-repeat; }
2055
- </style>
2056
- <?php } else { ?>
2057
- <style type="text/css">
2058
- #flags a.ja { display:none; }
2059
- </style>
2060
- <?php }
2061
-
2062
- if ( isset ( $get_flag_choices['flag-jw'] ) ) { ?>
2063
- <style type="text/css">
2064
- #flags a.jw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/indonesia.png") 0px 0px no-repeat; }
2065
- </style>
2066
- <?php } else { ?>
2067
- <style type="text/css">
2068
- #flags a.jw { display:none; }
2069
- </style>
2070
- <?php }
2071
-
2072
- if ( isset ( $get_flag_choices['flag-kn'] ) ) { ?>
2073
- <style type="text/css">
2074
- #flags a.kn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/kannada.png") 0px 0px no-repeat; }
2075
- </style>
2076
- <?php } else { ?>
2077
- <style type="text/css">
2078
- #flags a.kn { display:none; }
2079
- </style>
2080
- <?php }
2081
-
2082
- if ( isset ( $get_flag_choices['flag-km'] ) ) { ?>
2083
- <style type="text/css">
2084
- #flags a.km { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/cambodia.png") 0px 0px no-repeat; }
2085
- </style>
2086
- <?php } else { ?>
2087
- <style type="text/css">
2088
- #flags a.km { display:none; }
2089
- </style>
2090
- <?php }
2091
-
2092
- if ( isset ( $get_flag_choices['flag-ko'] ) ) { ?>
2093
- <style type="text/css">
2094
- #flags a.ko { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/korea.png") 0px 0px no-repeat; }
2095
- </style>
2096
- <?php } else { ?>
2097
- <style type="text/css">
2098
- #flags a.ko { display:none; }
2099
- </style>
2100
- <?php }
2101
-
2102
- if ( isset ( $get_flag_choices['flag-lo'] ) ) { ?>
2103
- <style type="text/css">
2104
- #flags a.lo { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/laos.png") 0px 0px no-repeat; }
2105
- </style>
2106
- <?php } else { ?>
2107
- <style type="text/css">
2108
- #flags a.lo { display:none; }
2109
- </style>
2110
- <?php }
2111
-
2112
- if ( isset ( $get_flag_choices['flag-la'] ) ) { ?>
2113
- <style type="text/css">
2114
- #flags a.la { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/latin.png") 0px 0px no-repeat; }
2115
- </style>
2116
- <?php } else { ?>
2117
- <style type="text/css">
2118
- #flags a.la { display:none; }
2119
- </style>
2120
- <?php }
2121
-
2122
- if ( isset ( $get_flag_choices['flag-lv'] ) ) { ?>
2123
- <style type="text/css">
2124
- #flags a.lv { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/latvia.png") 0px 0px no-repeat; }
2125
- </style>
2126
- <?php } else { ?>
2127
- <style type="text/css">
2128
- #flags a.lv { display:none; }
2129
- </style>
2130
- <?php }
2131
-
2132
- if ( isset ( $get_flag_choices['flag-lt'] ) ) { ?>
2133
- <style type="text/css">
2134
- #flags a.lt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/lithuania.png") 0px 0px no-repeat; }
2135
- </style>
2136
- <?php } else { ?>
2137
- <style type="text/css">
2138
- #flags a.lt { display:none; }
2139
- </style>
2140
- <?php }
2141
-
2142
- if ( isset ( $get_flag_choices['flag-mk'] ) ) { ?>
2143
- <style type="text/css">
2144
- #flags a.mk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/macedonia.png") 0px 0px no-repeat; }
2145
- </style>
2146
- <?php } else { ?>
2147
- <style type="text/css">
2148
- #flags a.mk { display:none; }
2149
- </style>
2150
- <?php }
2151
-
2152
- if ( isset ( $get_flag_choices['flag-ms'] ) ) { ?>
2153
- <style type="text/css">
2154
- #flags a.ms { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/malaysia.png") 0px 0px no-repeat; }
2155
- </style>
2156
- <?php } else { ?>
2157
- <style type="text/css">
2158
- #flags a.ms { display:none; }
2159
- </style>
2160
- <?php }
2161
-
2162
- if ( isset ( $get_flag_choices['flag-mt'] ) ) { ?>
2163
- <style type="text/css">
2164
- #flags a.mt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/malta.png") 0px 0px no-repeat; }
2165
- </style>
2166
- <?php } else { ?>
2167
- <style type="text/css">
2168
- #flags a.mt { display:none; }
2169
- </style>
2170
- <?php }
2171
-
2172
- if ( isset ( $get_flag_choices['flag-mr'] ) ) { ?>
2173
- <style type="text/css">
2174
- #flags a.mr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/marathi.png") 0px 0px no-repeat; }
2175
- </style>
2176
- <?php } else { ?>
2177
- <style type="text/css">
2178
- #flags a.mr { display:none; }
2179
- </style>
2180
- <?php }
2181
-
2182
- if ( isset ( $get_flag_choices['flag-no'] ) ) { ?>
2183
- <style type="text/css">
2184
- #flags a.no { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/norway.png") 0px 0px no-repeat; }
2185
- </style>
2186
- <?php } else { ?>
2187
- <style type="text/css">
2188
- #flags a.no { display:none; }
2189
- </style>
2190
- <?php }
2191
-
2192
- if ( isset ( $get_flag_choices['flag-fa'] ) ) { ?>
2193
- <style type="text/css">
2194
- #flags a.fa { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/iran.png") 0px 0px no-repeat; }
2195
- </style>
2196
- <?php } else { ?>
2197
- <style type="text/css">
2198
- #flags a.fa { display:none; }
2199
- </style>
2200
- <?php }
2201
-
2202
- if ( isset ( $get_flag_choices['flag-pl'] ) ) { ?>
2203
- <style type="text/css">
2204
- #flags a.pl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/poland.png") 0px 0px no-repeat; }
2205
- </style>
2206
- <?php } else { ?>
2207
- <style type="text/css">
2208
- #flags a.pl { display:none; }
2209
- </style>
2210
- <?php }
2211
-
2212
- if ( isset ( $get_flag_choices['flag-pt'] ) ) { ?>
2213
- <style type="text/css">
2214
- #flags a.pt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/portugal.png") 0px 0px no-repeat; }
2215
- </style>
2216
- <?php } else { ?>
2217
- <style type="text/css">
2218
- #flags a.pt { display:none; }
2219
- </style>
2220
- <?php }
2221
-
2222
- if ( isset ( $get_flag_choices['flag-ro'] ) ) { ?>
2223
- <style type="text/css">
2224
- #flags a.ro { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/romania.png") 0px 0px no-repeat; }
2225
- </style>
2226
- <?php } else { ?>
2227
- <style type="text/css">
2228
- #flags a.ro { display:none; }
2229
- </style>
2230
- <?php }
2231
-
2232
- if ( isset ( $get_flag_choices['flag-ru'] ) ) { ?>
2233
- <style type="text/css">
2234
- #flags a.ru { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/russia.png") 0px 0px no-repeat; }
2235
- </style>
2236
- <?php } else { ?>
2237
- <style type="text/css">
2238
- #flags a.ru { display:none; }
2239
- </style>
2240
- <?php }
2241
-
2242
- if ( isset ( $get_flag_choices['flag-sr'] ) ) { ?>
2243
- <style type="text/css">
2244
- #flags a.sr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/serbia.png") 0px 0px no-repeat; }
2245
- </style>
2246
- <?php } else { ?>
2247
- <style type="text/css">
2248
- #flags a.sr { display:none; }
2249
- </style>
2250
- <?php }
2251
-
2252
- if ( isset ( $get_flag_choices['flag-sk'] ) ) { ?>
2253
- <style type="text/css">
2254
- #flags a.sk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/slovakia.png") 0px 0px no-repeat; }
2255
- </style>
2256
- <?php } else { ?>
2257
- <style type="text/css">
2258
- #flags a.sk { display:none; }
2259
- </style>
2260
- <?php }
2261
-
2262
- if ( isset ( $get_flag_choices['flag-sv'] ) ) { ?>
2263
- <style type="text/css">
2264
- #flags a.sv { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/sweden.png") 0px 0px no-repeat; }
2265
- </style>
2266
- <?php } else { ?>
2267
- <style type="text/css">
2268
- #flags a.sv { display:none; }
2269
- </style>
2270
- <?php }
2271
-
2272
- if ( isset ( $get_flag_choices['flag-sw'] ) ) { ?>
2273
- <style type="text/css">
2274
- #flags a.sw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/kenya.png") 0px 0px no-repeat; }
2275
- </style>
2276
- <?php } else { ?>
2277
- <style type="text/css">
2278
- #flags a.sw { display:none; }
2279
- </style>
2280
- <?php }
2281
-
2282
- if ( isset ( $get_flag_choices['flag-sl'] ) ) { ?>
2283
- <style type="text/css">
2284
- #flags a.sl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/slovenia.png") 0px 0px no-repeat; }
2285
- </style>
2286
- <?php } else { ?>
2287
- <style type="text/css">
2288
- #flags a.sl { display:none; }
2289
- </style>
2290
- <?php }
2291
-
2292
-
2293
- if ( isset ( $get_flag_choices['flag-ta'] ) ) { ?>
2294
- <style type="text/css">
2295
- #flags a.ta { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/tamil.png") 0px 0px no-repeat; }
2296
- </style>
2297
- <?php } else { ?>
2298
- <style type="text/css">
2299
- #flags a.ta { display:none; }
2300
- </style>
2301
- <?php }
2302
-
2303
- if ( isset ( $get_flag_choices['flag-te'] ) ) { ?>
2304
- <style type="text/css">
2305
- #flags a.te { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/telugu.png") 0px 0px no-repeat; }
2306
- </style>
2307
- <?php } else { ?>
2308
- <style type="text/css">
2309
- #flags a.te { display:none; }
2310
- </style>
2311
- <?php }
2312
-
2313
- if ( isset ( $get_flag_choices['flag-th'] ) ) { ?>
2314
- <style type="text/css">
2315
- #flags a.th { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/thailand.png") 0px 0px no-repeat; }
2316
- </style>
2317
- <?php } else { ?>
2318
- <style type="text/css">
2319
- #flags a.th { display:none; }
2320
- </style>
2321
- <?php }
2322
-
2323
- if ( isset ( $get_flag_choices['flag-tr'] ) ) { ?>
2324
- <style type="text/css">
2325
- #flags a.tr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/turkey.png") 0px 0px no-repeat; }
2326
- </style>
2327
- <?php } else { ?>
2328
- <style type="text/css">
2329
- #flags a.tr { display:none; }
2330
- </style>
2331
- <?php }
2332
-
2333
- if ( isset ( $get_flag_choices['flag-uk'] ) ) { ?>
2334
- <style type="text/css">
2335
- #flags a.uk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/ukraine.png") 0px 0px no-repeat; }
2336
- </style>
2337
- <?php } else { ?>
2338
- <style type="text/css">
2339
- #flags a.uk { display:none; }
2340
- </style>
2341
- <?php }
2342
-
2343
- if ( isset ( $get_flag_choices['flag-ur'] ) ) { ?>
2344
- <style type="text/css">
2345
- #flags a.ur { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/pakistan.png") 0px 0px no-repeat; }
2346
- </style>
2347
- <?php } else { ?>
2348
- <style type="text/css">
2349
- #flags a.ur { display:none; }
2350
- </style>
2351
- <?php }
2352
-
2353
- if ( isset ( $get_flag_choices['flag-vi'] ) ) { ?>
2354
- <style type="text/css">
2355
- #flags a.vi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/vietnam.png") 0px 0px no-repeat; }
2356
- </style>
2357
- <?php } else { ?>
2358
- <style type="text/css">
2359
- #flags a.vi { display:none; }
2360
- </style>
2361
- <?php }
2362
-
2363
- if ( isset ( $get_flag_choices['flag-cy'] ) ) { ?>
2364
- <style type="text/css">
2365
- #flags a.cy { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/wales.png") 0px 0px no-repeat; }
2366
- </style>
2367
- <?php } else { ?>
2368
- <style type="text/css">
2369
- #flags a.cy { display:none; }
2370
- </style>
2371
- <?php }
2372
-
2373
- if ( isset ( $get_flag_choices['flag-yi'] ) ) { ?>
2374
- <style type="text/css">
2375
- #flags a.yi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/yiddish.png") 0px 0px no-repeat; }
2376
- </style>
2377
- <?php } else { ?>
2378
- <style type="text/css">
2379
- #flags a.yi { display:none; }
2380
- </style>
2381
- <?php }
2382
- }
2383
- add_action('wp_head','googlelanguagetranslator_flags_display');
2384
-
 
 
 
 
 
 
 
 
 
 
 
2385
  ?>
1
+ <?php
2
+ /*
3
+ Plugin Name: Google Language Translator
4
+ Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 2.4
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
+ //include_once ( plugins_url() . '/widget.php' );
11
+ include( plugin_dir_path( __FILE__ ) . 'widget.php');
12
+
13
+ function scripts($hook_suffix) {
14
+ global $p;
15
+ if ($p == $hook_suffix) {
16
+ wp_enqueue_script( 'my-admin-script', plugins_url('/admin.js',__FILE__), array('jquery'));
17
+ wp_enqueue_script( 'my-flag-script', plugins_url('/flags.js',__FILE__), array('jquery'));
18
+ wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
19
+ wp_enqueue_style( 'style.css' );
20
+ }
21
+ }
22
+
23
+ function flags() {
24
+ wp_enqueue_script( 'flags', plugins_url('/flags.js',__FILE__), array('jquery'));
25
+ wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
26
+ wp_enqueue_style( 'style.css' );
27
+ }
28
+ add_action('wp_enqueue_scripts', 'flags');
29
+
30
+ function page (){
31
+ global $p;
32
+
33
+ add_action( 'admin_enqueue_scripts', 'scripts');
34
+
35
+ $p = add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'google_language_translator', 'page_cb');
36
+ }
37
+ add_action('admin_menu', 'page');
38
+
39
+ function google_translator_shortcode() {
40
+ if (get_option('googlelanguagetranslator_display')=='Vertical'){
41
+ return googlelanguagetranslator_vertical();
42
+ }
43
+
44
+ elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
45
+ return googlelanguagetranslator_horizontal();
46
+ }
47
+ }
48
+
49
+ if (get_option('googlelanguagetranslator_toolbar')=='Yes') {
50
+ add_action ('wp_head','googlelanguagetranslator_toolbar_yes');
51
+ add_action ('admin_head','googlelanguagetranslator_toolbar_yes');
52
+ }
53
+
54
+ elseif(get_option('googlelanguagetranslator_toolbar')=='No'){
55
+ add_action ('wp_head','googlelanguagetranslator_toolbar_no');
56
+ add_action ('admin_head','googlelanguagetranslator_toolbar_no');
57
+ }
58
+
59
+ if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
60
+ add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
61
+ add_action ('admin_head','googlelanguagetranslator_showbranding_yes');
62
+ }
63
+
64
+ elseif(get_option('googlelanguagetranslator_showbranding')=='No') {
65
+ add_action ('wp_head','googlelanguagetranslator_showbranding_no');
66
+ add_action ('admin_head','googlelanguagetranslator_showbranding_no');
67
+ }
68
+
69
+ if (get_option('googlelanguagetranslator_translatebox') == 'no') {
70
+ add_action ('wp_head', 'googlelanguagetranslator_translatebox');
71
+ add_action ('admin_head', 'googlelanguagetranslator_translatebox');
72
+ }
73
+
74
+ if (get_option('googlelanguagetranslator_flags') == 'hide_flags') {
75
+ add_action ('wp_head','googlelanguagetranslator_flags');
76
+ add_action ('admin_head','googlelanguagetranslator_flags');
77
+ }
78
+
79
+ if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
80
+ add_action ('wp_head','googlelanguagetranslator_flags_display');
81
+ add_action ('admin_head','googlelanguagetranslator_flags_display');
82
+ }
83
+ add_shortcode( 'google-translator', 'google_translator_shortcode');
84
+
85
+ add_filter('widget_text', 'do_shortcode');
86
+
87
+ function page_cb() { ?>
88
+ <div class="wrap" style="width:89%">
89
+ <div id="icon-options-general" class="icon32"></div>
90
+ <h2><span class="notranslate">Google Language Translator</span></h2>
91
+ <div class="metabox-holder has-right-sidebar" style="float:left; width:65%">
92
+ <div class="postbox" style="width: 100%">
93
+ <h3 class="notranslate">Settings</h3>
94
+ <form action="<?php echo admin_url('options.php'); ?>" method="post">
95
+ <?php settings_fields('google_language_translator'); ?>
96
+ <table style="border-collapse:separate" width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
97
+ <tr>
98
+ <td class="notranslate">Plugin Status:</td>
99
+ <td class="notranslate"><?php googlelanguagetranslator_active_cb(); ?></td>
100
+ </tr>
101
+
102
+ <tr class="notranslate">
103
+ <td>Choose the original language of your website</td>
104
+ <td><?php googlelanguagetranslator_language_cb(); ?></td>
105
+ </tr>
106
+
107
+ <tr class="notranslate">
108
+ <td>What translation languages will you display to website visitors?<br/>(Note: To show flags you must choose "All Languages")</td>
109
+ <td><?php googlelanguagetranslator_language_option_cb(); ?></td>
110
+ </tr>
111
+
112
+ <tr class="notranslate">
113
+ <td colspan="2"><?php language_display_settings_cb(); ?></td>
114
+ </tr>
115
+
116
+ <tr class="notranslate">
117
+ <td class="choose_flags_intro">Show flag images?<br/>(Display up to 70 flags above the translator)</td>
118
+ <td class="choose_flags_intro"><?php googlelanguagetranslator_flags_cb(); ?></td>
119
+ </tr>
120
+
121
+ <tr class="notranslate">
122
+ <td class="choose_flags">Choose the flags you want to display:</td>
123
+ <td></td>
124
+ </tr>
125
+
126
+ <tr class="notranslate">
127
+ <td colspan="2" class="choose_flags"><?php flag_display_settings_cb(); ?></td>
128
+ </tr>
129
+
130
+ <tr class="notranslate">
131
+ <td>Show translate box?</td>
132
+ <td><?php googlelanguagetranslator_translatebox_cb(); ?></td>
133
+ </tr>
134
+
135
+ <tr class="notranslate">
136
+ <td>Layout options:</td>
137
+ <td><?php googlelanguagetranslator_display_cb(); ?></td>
138
+ </tr>
139
+
140
+ <tr class="notranslate">
141
+ <td>Show Google Toolbar?</td>
142
+ <td><?php googlelanguagetranslator_toolbar_cb(); ?></td>
143
+ </tr>
144
+
145
+ <tr class="notranslate">
146
+ <td>Show Google Branding?<br/>
147
+ <span>(<a href="https://developers.google.com/translate/v2/attribution" target="_blank">Learn more</a> about Google's Attribution Requirements.)</span>
148
+ </td>
149
+ <td><?php googlelanguagetranslator_showbranding_cb(); ?></td>
150
+ </tr>
151
+
152
+ <tr class="alignment notranslate">
153
+ <td class="flagdisplay">Align the translator left or right?<br/>(This option is for vertical layout only)</td>
154
+ <td class="flagdisplay"><?php googlelanguagetranslator_flags_alignment_cb(); ?></td>
155
+ </tr>
156
+
157
+ <tr class="notranslate">
158
+ <td>Copy/Paste this shortcode if adding to pages/posts:</td>
159
+ <td>[google-translator]</td>
160
+ </tr>
161
+
162
+ <tr class="notranslate">
163
+ <td>Copy/Paste this code if adding to header/footer:</td>
164
+ <td>&lt?php echo do_shortcode('[google-translator]'); ?&gt</td>
165
+ </tr>
166
+
167
+ <tr class="notranslate">
168
+ <td><?php submit_button(); ?></td>
169
+ <td></td>
170
+ </tr>
171
+ </table>
172
+ </form>
173
+ </div> <!-- .postbox -->
174
+ </div> <!-- .metbox-holder -->
175
+
176
+ <div class="metabox-holder" style="float:right; clear:right; width:33%; min-width:350px; ">
177
+ <div class="postbox">
178
+ <h3 class="notranslate">Preview</h3>
179
+ <table style="width:100%">
180
+ <tr>
181
+ <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>
182
+ </tr>
183
+ </table>
184
+ </div> <!-- .postbox -->
185
+ </div> <!-- .metabox-holder -->
186
+
187
+
188
+ <div class="metabox-holder notranslate" style="float: right; width: 33%;">
189
+ <div class="postbox">
190
+ <h3>Please Consider A Donation</h3>
191
+ <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 />
192
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
193
+ <input type="hidden" name="cmd" value="_donations">
194
+ <input type="hidden" name="business" value="robertmyrick@hotmail.com">
195
+ <input type="hidden" name="lc" value="US">
196
+ <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!">
197
+ <input type="hidden" name="no_note" value="0">
198
+ <input type="hidden" name="currency_code" value="USD">
199
+ <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
200
+ <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!">
201
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
202
+ </form>
203
+
204
+ <br />
205
+ <br />
206
+ </div>
207
+ </div>
208
+ </div>
209
+ </div> <!-- .wrap -->
210
+ <?php
211
+ }
212
+
213
+
214
+ /* ------------------------------------------------------------------------ *
215
+ * Setting Registration
216
+ * ------------------------------------------------------------------------ */
217
+
218
+
219
+ function initialize_settings() {
220
+
221
+ // First, we register a section. This is necessary since all future options must belong to one.
222
+ add_settings_section(
223
+ 'glt_settings', // ID used to identify this section and with which to register options
224
+ 'Settings', // Title to be displayed on the administration page
225
+ '', // Callback used to render the description of the section
226
+ 'google_language_translator' // Page on which to add this section of options
227
+ );
228
+
229
+
230
+
231
+
232
+
233
+ //Fieldset 1
234
+ add_settings_field( 'googlelanguagetranslator_active','Plugin status:','googlelanguagetranslator_active_cb','google_language_translator','glt_settings');
235
+ add_settings_field( 'googlelanguagetranslator_language','Choose the original language of your website','','googlelanguagetranslator_language_cb','glt_settings');
236
+ add_settings_field( 'googlelanguagetranslator_language_option','What translation languages will you display to website visitors?','googlelanguagetranslator_language_option_cb','google_language_translator','glt_settings');
237
+ add_settings_field( 'language_display_settings','Your language choices','language_display_settings_cb','google_language_translator','glt_settings');
238
+ add_settings_field( 'googlelanguagetranslator_flags','Show Flag Images?','googlelanguagetranslator_flags_cb','google_language_translator','glt_settings');
239
+ add_settings_field( 'flag_display_settings','Flag Options','flag_display_settings_cb','google_language_translator','glt_settings');
240
+ add_settings_field( 'googlelanguagetranslator_translatebox','Show Translate Box?','googlelanguagetranslator_translatebox_cb','google_language_translator','glt_settings');
241
+ add_settings_field( 'googlelanguagetranslator_display', 'Layout Options','googlelanguagetranslator_display_cb','google_language_translator','glt_settings');
242
+ add_settings_field( 'googlelanguagetranslator_toolbar', 'Show Toolbar','googlelanguagetranslator_toolbar_cb','google_language_translator','glt_settings');
243
+ add_settings_field( 'googlelanguagetranslator_showbranding', 'Show Google Branding','googlelanguagetranslator_showbranding_cb','google_language_translator','glt_settings');
244
+ add_settings_field( 'googlelanguagetranslator_flags_alignment', 'Align Flags Right or Left', 'googlelanguagetranslator_flags_alignment_cb','google_language_translator','glt_settings');
245
+
246
+
247
+
248
+ //Register Fieldset 1
249
+ register_setting( 'google_language_translator','googlelanguagetranslator_active');
250
+ register_setting( 'google_language_translator','googlelanguagetranslator_language');
251
+ register_setting( 'google_language_translator','googlelanguagetranslator_language_option');
252
+ register_setting( 'google_language_translator','language_display_settings');
253
+ register_setting( 'google_language_translator','googlelanguagetranslator_flags');
254
+ register_setting( 'google_language_translator','flag_display_settings');
255
+ register_setting( 'google_language_translator','googlelanguagetranslator_translatebox');
256
+ register_setting( 'google_language_translator','googlelanguagetranslator_display');
257
+ register_setting( 'google_language_translator','googlelanguagetranslator_toolbar');
258
+ register_setting( 'google_language_translator','googlelanguagetranslator_showbranding');
259
+ register_setting( 'google_language_translator','googlelanguagetranslator_flags_alignment');
260
+
261
+ function googlelanguagetranslator_active_cb() {
262
+ $options = get_option( 'googlelanguagetranslator_active');
263
+ $html = '<input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" '.checked(1,$options['googlelanguagetranslator_active'],false).'/> &nbsp; Activate Google Language Translator?';
264
+ echo $html;
265
+ }
266
+
267
+ function googlelanguagetranslator_language_cb() {
268
+ $options = get_option( 'googlelanguagetranslator_language' ); ?>
269
+ <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language">
270
+ <option value="af" <?php if($options=='af'){echo "selected";}?>>Afrikaans</option>
271
+ <option value="sq" <?php if($options=='sq'){echo "selected";}?>>Albanian</option>
272
+ <option value="ar" <?php if($options=='ar'){echo "selected";}?>>Arabic</option>
273
+ <option value="hy" <?php if($options=='hy'){echo "selected";}?>>Armenian</option>
274
+ <option value="az" <?php if($options=='az'){echo "selected";}?>>Azerbaijani</option>
275
+ <option value="eu" <?php if($options=='eu'){echo "selected";}?>>Basque</option>
276
+ <option value="be" <?php if($options=='be'){echo "selected";}?>>Belarusian</option>
277
+ <option value="bn" <?php if($options=='bn'){echo "selected";}?>>Bengali</option>
278
+ <option value="bs" <?php if($options=='bs'){echo "selected";}?>>Bosnian</option>
279
+ <option value="bg" <?php if($options=='bg'){echo "selected";}?>>Bulgarian</option>
280
+ <option value="ca" <?php if($options=='ca'){echo "selected";}?>>Catalan</option>
281
+ <option value="ceb" <?php if($options=='ceb'){echo "selected";}?>>Cebuano</option>
282
+ <option value="zh-CN" <?php if($options=='zh-CN'){echo "selected";}?>>Chinese</option>
283
+ <option value="zh-TW" <?php if($options=='zh-TW'){echo "selected";}?>>Chinese (Han)</option>
284
+ <option value="hr" <?php if($options=='hr'){echo "selected";}?>>Croatian</option>
285
+ <option value="cs" <?php if($options=='cs'){echo "selected";}?>>Czech</option>
286
+ <option value="da" <?php if($options=='da'){echo "selected";}?>>Danish</option>
287
+ <option value="nl" <?php if($options=='nl'){echo "selected";}?>>Dutch</option>
288
+ <option value="en" <?php if($options=='en'){echo "selected";}?>>English</option>
289
+ <option value="eo" <?php if($options=='eo'){echo "selected";}?>>Esperanto</option>
290
+ <option value="et" <?php if($options=='et'){echo "selected";}?>>Estonian</option>
291
+ <option value="tl" <?php if($options=='tl'){echo "selected";}?>>Filipino</option>
292
+ <option value="fi" <?php if($options=='fi'){echo "selected";}?>>Finnish</option>
293
+ <option value="fr" <?php if($options=='fr'){echo "selected";}?>>French</option>
294
+ <option value="gl" <?php if($options=='gl'){echo "selected";}?>>Galician</option>
295
+ <option value="ka" <?php if($options=='ka'){echo "selected";}?>>Georgian</option>
296
+ <option value="de" <?php if($options=='de'){echo "selected";}?>>German</option>
297
+ <option value="el" <?php if($options=='el'){echo "selected";}?>>Greek</option>
298
+ <option value="gu" <?php if($options=='gu'){echo "selected";}?>>Gujarati</option>
299
+ <option value="ht" <?php if($options=='ht'){echo "selected";}?>>Haitian</option>
300
+ <option value="iw" <?php if($options=='iw'){echo "selected";}?>>Hebrew</option>
301
+ <option value="hi" <?php if($options=='hi'){echo "selected";}?>>Hindi</option>
302
+ <option value="hmn" <?php if($options=='hmn'){echo "selected";}?>>Hmong</option>
303
+ <option value="hu" <?php if($options=='hu'){echo "selected";}?>>Hungarian</option>
304
+ <option value="is" <?php if($options=='is'){echo "selected";}?>>Icelandic</option>
305
+ <option value="id" <?php if($options=='id'){echo "selected";}?>>Indonesian</option>
306
+ <option value="ga" <?php if($options=='ga'){echo "selected";}?>>Irish</option>
307
+ <option value="it" <?php if($options=='it'){echo "selected";}?>>Italian</option>
308
+ <option value="ja" <?php if($options=='ja'){echo "selected";}?>>Japanese</option>
309
+ <option value="jw" <?php if($options=='jw'){echo "selected";}?>>Javanese</option>
310
+ <option value="kn" <?php if($options=='kn'){echo "selected";}?>>Kannada</option>
311
+ <option value="km" <?php if($options=='km'){echo "selected";}?>>Khmer</option>
312
+ <option value="ko" <?php if($options=='ko'){echo "selected";}?>>Korean</option>
313
+ <option value="lo" <?php if($options=='lo'){echo "selected";}?>>Lao</option>
314
+ <option value="la" <?php if($options=='la'){echo "selected";}?>>Latin</option>
315
+ <option value="lv" <?php if($options=='lv'){echo "selected";}?>>Latvian</option>
316
+ <option value="lt" <?php if($options=='lt'){echo "selected";}?>>Lithuanian</option>
317
+ <option value="mk" <?php if($options=='mk'){echo "selected";}?>>Macedonian</option>
318
+ <option value="ms" <?php if($options=='ms'){echo "selected";}?>>Malay</option>
319
+ <option value="mt" <?php if($options=='mt'){echo "selected";}?>>Maltese</option>
320
+ <option value="mr" <?php if($options=='mr'){echo "selected";}?>>Marathi</option>
321
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>Norwegian</option>
322
+ <option value="fa" <?php if($options=='fa'){echo "selected";}?>>Persian</option>
323
+ <option value="pl" <?php if($options=='pl'){echo "selected";}?>>Polish</option>
324
+ <option value="pt" <?php if($options=='pt'){echo "selected";}?>>Portuguese</option>
325
+ <option value="ro" <?php if($options=='ro'){echo "selected";}?>>Romanian</option>
326
+ <option value="ru" <?php if($options=='ru'){echo "selected";}?>>Russian</option>
327
+ <option value="sr" <?php if($options=='sr'){echo "selected";}?>>Serbian</option>
328
+ <option value="sk" <?php if($options=='sk'){echo "selected";}?>>Slovak</option>
329
+ <option value="sl" <?php if($options=='sl'){echo "selected";}?>>Slovenian</option>
330
+ <option value="es" <?php if($options=='es'){echo "selected";}?>>Spanish</option>
331
+ <option value="sw" <?php if($options=='sw'){echo "selected";}?>>Swahili</option>
332
+ <option value="sv" <?php if($options=='sv'){echo "selected";}?>>Swedish</option>
333
+ <option value="ta" <?php if($options=='ta'){echo "selected";}?>>Tamil</option>
334
+ <option value="te" <?php if($options=='te'){echo "selected";}?>>Telugu</option>
335
+ <option value="th" <?php if($options=='th'){echo "selected";}?>>Thai</option>
336
+ <option value="tr" <?php if($options=='tr'){echo "selected";}?>>Turkish</option>
337
+ <option value="uk" <?php if($options=='uk'){echo "selected";}?>>Ukranian</option>
338
+ <option value="ur" <?php if($options=='ur'){echo "selected";}?>>Urdu</option>
339
+ <option value="vi" <?php if($options=='vi'){echo "selected";}?>>Vietnamese</option>
340
+ <option value="cy" <?php if($options=='cy'){echo "selected";}?>>Welsh</option>
341
+ <option value="yi" <?php if($options=='yi'){echo "selected";}?>>Yiddish</option>
342
+ </select>
343
+ <?php
344
+ }
345
+
346
+ function googlelanguagetranslator_language_option_cb() {
347
+ $options = get_option('googlelanguagetranslator_language_option','all'); ?>
348
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="all" <?php if($options=='all'){echo "checked";}?>/> All Languages<br/>
349
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="specific" <?php if($options=='specific'){echo "checked";}?>/> Specific Languages
350
+ <?php }
351
+
352
+
353
+
354
+ function language_display_settings_cb() {
355
+ $get_language_choices = get_option ('language_display_settings'); ?>
356
+ <div class="languages" style="width:25%; float:left">
357
+ <div><input type="checkbox" name="language_display_settings[af]" value="1"<?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?> /> Afrikaans</div>
358
+ <div><input type="checkbox" name="language_display_settings[sq]" value="1"<?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?> /> Albanian</div>
359
+ <div><input type="checkbox" name="language_display_settings[ar]" value="1"<?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?> /> Arabic</div>
360
+ <div><input type="checkbox" name="language_display_settings[hy]" value="1"<?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?> /> Armenian</div>
361
+ <div><input type="checkbox" name="language_display_settings[az]" value="1"<?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?> /> Azerbaijani</div>
362
+ <div><input type="checkbox" name="language_display_settings[eu]" value="1"<?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?> /> Basque</div>
363
+ <div><input type="checkbox" name="language_display_settings[be]" value="1"<?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?> /> Belarusian</div>
364
+ <div><input type="checkbox" name="language_display_settings[bn]" value="1"<?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?> /> Bengali</div>
365
+ <div><input type="checkbox" name="language_display_settings[bs]" value="1"<?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?> /> Bosnian</div>
366
+ <div><input type="checkbox" name="language_display_settings[bg]" value="1"<?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?> /> Bulgarian</div>
367
+ <div><input type="checkbox" name="language_display_settings[ca]" value="1"<?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?> /> Catalan</div>
368
+ <div><input type="checkbox" name="language_display_settings[ceb]" value="1"<?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?> /> Cebuano</div>
369
+ <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>
370
+ <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>
371
+ <div><input type="checkbox" name="language_display_settings[hr]" value="1"<?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?> /> Croatian</div>
372
+ <div><input type="checkbox" name="language_display_settings[cs]" value="1"<?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?> /> Czech</div>
373
+ <div><input type="checkbox" name="language_display_settings[da]" value="1"<?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?> /> Danish</div>
374
+ <div><input type="checkbox" name="language_display_settings[nl]" value="1"<?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?> /> Dutch</div>
375
+ <div><input type="checkbox" name="language_display_settings[en]" value="1"<?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?> /> English</div>
376
+ </div>
377
+
378
+ <div class="languages" style="width:25%; float:left">
379
+ <div><input type="checkbox" name="language_display_settings[eo]" value="1"<?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?> /> Esperanto</div>
380
+ <div><input type="checkbox" name="language_display_settings[et]" value="1"<?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?> /> Estonian</div>
381
+ <div><input type="checkbox" name="language_display_settings[tl]" value="1"<?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?> /> Filipino</div>
382
+ <div><input type="checkbox" name="language_display_settings[fi]" value="1"<?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?> /> Finnish</div>
383
+ <div><input type="checkbox" name="language_display_settings[fr]" value="1"<?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?> /> French</div>
384
+ <div><input type="checkbox" name="language_display_settings[gl]" value="1"<?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?> /> Galician</div>
385
+ <div><input type="checkbox" name="language_display_settings[ka]" value="1"<?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?> /> Georgian</div>
386
+ <div><input type="checkbox" name="language_display_settings[de]" value="1"<?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?> /> German</div>
387
+ <div><input type="checkbox" name="language_display_settings[el]" value="1"<?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?> /> Greek</div>
388
+ <div><input type="checkbox" name="language_display_settings[gu]" value="1"<?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?> /> Gujarati</div>
389
+ <div><input type="checkbox" name="language_display_settings[ht]" value="1"<?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?> /> Haitian</div>
390
+ <div><input type="checkbox" name="language_display_settings[iw]" value="1"<?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?> /> Hebrew</div>
391
+ <div><input type="checkbox" name="language_display_settings[hi]" value="1"<?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?> /> Hindi</div>
392
+ <div><input type="checkbox" name="language_display_settings[hmn]" value="1"<?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?> /> Hmong</div>
393
+ <div><input type="checkbox" name="language_display_settings[hu]" value="1"<?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?> /> Hungarian</div>
394
+ <div><input type="checkbox" name="language_display_settings[is]" value="1"<?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?> /> Icelandic</div>
395
+ <div><input type="checkbox" name="language_display_settings[id]" value="1"<?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?> /> Indonesian</div>
396
+ <div><input type="checkbox" name="language_display_settings[ga]" value="1"<?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?> /> Irish</div>
397
+ <div><input type="checkbox" name="language_display_settings[it]" value="1"<?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?> /> Italian</div>
398
+ </div>
399
+
400
+ <div class="languages" style="width:25%; float:left">
401
+ <div><input type="checkbox" name="language_display_settings[ja]" value="1"<?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?> /> Japanese</div>
402
+ <div><input type="checkbox" name="language_display_settings[jw]" value="1"<?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?> /> Javanese</div>
403
+ <div><input type="checkbox" name="language_display_settings[kn]" value="1"<?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?> /> Kannada</div>
404
+ <div><input type="checkbox" name="language_display_settings[km]" value="1"<?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?> /> Khmer</div>
405
+ <div><input type="checkbox" name="language_display_settings[ko]" value="1"<?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?> /> Korean</div>
406
+ <div><input type="checkbox" name="language_display_settings[lo]" value="1"<?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?> /> Lao</div>
407
+ <div><input type="checkbox" name="language_display_settings[la]" value="1"<?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?> /> Latin</div>
408
+ <div><input type="checkbox" name="language_display_settings[lv]" value="1"<?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?> /> Latvian</div>
409
+ <div><input type="checkbox" name="language_display_settings[lt]" value="1"<?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?> /> Lithuanian</div>
410
+ <div><input type="checkbox" name="language_display_settings[mk]" value="1"<?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?> /> Macedonian</div>
411
+ <div><input type="checkbox" name="language_display_settings[ms]" value="1"<?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?> /> Malay</div>
412
+ <div><input type="checkbox" name="language_display_settings[mt]" value="1"<?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?> /> Maltese</div>
413
+ <div><input type="checkbox" name="language_display_settings[mr]" value="1"<?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?> /> Marathi</div>
414
+ <div><input type="checkbox" name="language_display_settings[no]" value="1"<?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?> /> Norwegian</div>
415
+ <div><input type="checkbox" name="language_display_settings[fa]" value="1"<?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?> /> Persian</div>
416
+ <div><input type="checkbox" name="language_display_settings[pl]" value="1"<?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?> /> Polish</div>
417
+ <div><input type="checkbox" name="language_display_settings[pt]" value="1"<?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?> /> Portuguese</div>
418
+ <div><input type="checkbox" name="language_display_settings[ro]" value="1"<?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?> /> Romanian</div>
419
+ <div><input type="checkbox" name="language_display_settings[ru]" value="1"<?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?> /> Russian</div>
420
+ </div>
421
+
422
+ <div class="languages" style="width:25%; float:left">
423
+ <div><input type="checkbox" name="language_display_settings[sr]" value="1"<?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?> /> Serbian</div>
424
+ <div><input type="checkbox" name="language_display_settings[sk]" value="1"<?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?> /> Slovak</div>
425
+ <div><input type="checkbox" name="language_display_settings[sl]" value="1"<?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?> /> Slovenian</div>
426
+ <div><input type="checkbox" name="language_display_settings[es]" value="1"<?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?> /> Spanish</div>
427
+ <div><input type="checkbox" name="language_display_settings[sw]" value="1"<?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?> /> Swahili</div>
428
+ <div><input type="checkbox" name="language_display_settings[sv]" value="1"<?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?> /> Swedish</div>
429
+ <div><input type="checkbox" name="language_display_settings[ta]" value="1"<?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?> /> Tamil</div>
430
+ <div><input type="checkbox" name="language_display_settings[te]" value="1"<?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?> /> Telugu</div>
431
+ <div><input type="checkbox" name="language_display_settings[th]" value="1"<?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?> /> Thai</div>
432
+ <div><input type="checkbox" name="language_display_settings[tr]" value="1"<?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?> /> Turkish</div>
433
+ <div><input type="checkbox" name="language_display_settings[uk]" value="1"<?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?> /> Ukranian</div>
434
+ <div><input type="checkbox" name="language_display_settings[ur]" value="1"<?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?> /> Urdu</div>
435
+ <div><input type="checkbox" name="language_display_settings[vi]" value="1"<?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?> /> Vietnamese</div>
436
+ <div><input type="checkbox" name="language_display_settings[cy]" value="1"<?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?> /> Welsh</div>
437
+ <div><input type="checkbox" name="language_display_settings[yi]" value="1"<?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?> /> Yiddish</div>
438
+ </div>
439
+
440
+ <div style="clear:both"></div>
441
+ <?php }
442
+
443
+ function googlelanguagetranslator_flags_cb() {
444
+ $options = get_option('googlelanguagetranslator_flags','hide_flags'); ?>
445
+ <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="show_flags" <?php if($options=='show_flags'){echo "checked";}?>/> Yes, show flag images<br/>
446
+ <input type="radio" name="googlelanguagetranslator_flags" id="googlelanguagetranslator_flags" value="hide_flags" <?php if($options=='hide_flags'){echo "checked";}?>/> No, hide flag images
447
+ <?php }
448
+
449
+
450
+ function flag_display_settings_cb() {
451
+ $flag_defaults = array (
452
+ 'flag-en' => 1
453
+ );
454
+
455
+ $get_flag_choices = get_option ('flag_display_settings');
456
+
457
+ if (!isset ( $get_flag_choices ['flag-af'] ) ) {
458
+ $get_flag_choices['flag-af'] = 0;
459
+ }
460
+
461
+ if (!isset ( $get_flag_choices ['flag-sq'] ) ) {
462
+ $get_flag_choices['flag-sq'] = 0;
463
+ }
464
+
465
+ if (!isset ( $get_flag_choices ['flag-ar'] ) ) {
466
+ $get_flag_choices['flag-ar'] = 0;
467
+ }
468
+
469
+ if (!isset ( $get_flag_choices ['flag-hy'] ) ) {
470
+ $get_flag_choices['flag-hy'] = 0;
471
+ }
472
+
473
+ if (!isset ( $get_flag_choices ['flag-az'] ) ) {
474
+ $get_flag_choices['flag-az'] = 0;
475
+ }
476
+
477
+ if (!isset ( $get_flag_choices ['flag-eu'] ) ) {
478
+ $get_flag_choices['flag-eu'] = 0;
479
+ }
480
+
481
+ if (!isset ( $get_flag_choices ['flag-be'] ) ) {
482
+ $get_flag_choices['flag-be'] = 0;
483
+ }
484
+
485
+ if (!isset ( $get_flag_choices ['flag-bn'] ) ) {
486
+ $get_flag_choices['flag-bn'] = 0;
487
+ }
488
+
489
+ if (!isset ( $get_flag_choices ['flag-bs'] ) ) {
490
+ $get_flag_choices['flag-bs'] = 0;
491
+ }
492
+
493
+ if (!isset ( $get_flag_choices ['flag-bg'] ) ) {
494
+ $get_flag_choices['flag-bg'] = 0;
495
+ }
496
+
497
+ if (!isset ( $get_flag_choices ['flag-ca'] ) ) {
498
+ $get_flag_choices['flag-ca'] = 0;
499
+ }
500
+
501
+ if (!isset ( $get_flag_choices ['flag-ceb'] ) ) {
502
+ $get_flag_choices['flag-ceb'] = 0;
503
+ }
504
+
505
+ if (!isset ( $get_flag_choices ['flag-zh-CN'] ) ) {
506
+ $get_flag_choices['flag-zh-CN'] = 0;
507
+ }
508
+
509
+ if (!isset ( $get_flag_choices ['flag-zh-TW'] ) ) {
510
+ $get_flag_choices['flag-zh-TW'] = 0;
511
+ }
512
+
513
+ if (!isset ( $get_flag_choices ['flag-hr'] ) ) {
514
+ $get_flag_choices['flag-hr'] = 0;
515
+ }
516
+
517
+ if (!isset ( $get_flag_choices ['flag-cs'] ) ) {
518
+ $get_flag_choices['flag-cs'] = 0;
519
+ }
520
+
521
+ if (!isset ( $get_flag_choices ['flag-da'] ) ) {
522
+ $get_flag_choices['flag-da'] = 0;
523
+ }
524
+
525
+ if (!isset ( $get_flag_choices ['flag-nl'] ) ) {
526
+ $get_flag_choices['flag-nl'] = 0;
527
+ }
528
+
529
+ if (!isset ( $get_flag_choices ['flag-en'] ) ) {
530
+ $get_flag_choices['flag-en'] = 0;
531
+ update_option ('flag_display_settings',$flag_defaults);
532
+ }
533
+
534
+ if (!isset ( $get_flag_choices ['flag-eo'] ) ) {
535
+ $get_flag_choices['flag-eo'] = 0;
536
+ }
537
+
538
+ if (!isset ( $get_flag_choices ['flag-et'] ) ) {
539
+ $get_flag_choices['flag-et'] = 0;
540
+ }
541
+
542
+ if (!isset ( $get_flag_choices ['flag-tl'] ) ) {
543
+ $get_flag_choices['flag-tl'] = 0;
544
+ }
545
+
546
+ if (!isset ( $get_flag_choices ['flag-fi'] ) ) {
547
+ $get_flag_choices['flag-fi'] = 0;
548
+ }
549
+
550
+ if (!isset ( $get_flag_choices ['flag-fr'] ) ) {
551
+ $get_flag_choices['flag-fr'] = 0;
552
+ }
553
+
554
+ if (!isset ( $get_flag_choices ['flag-gl'] ) ) {
555
+ $get_flag_choices['flag-gl'] = 0;
556
+ }
557
+
558
+ if (!isset ( $get_flag_choices ['flag-ka'] ) ) {
559
+ $get_flag_choices['flag-ka'] = 0;
560
+ }
561
+
562
+ if (!isset ( $get_flag_choices ['flag-de'] ) ) {
563
+ $get_flag_choices['flag-de'] = 0;
564
+ }
565
+
566
+ if (!isset ( $get_flag_choices ['flag-el'] ) ) {
567
+ $get_flag_choices['flag-el'] = 0;
568
+ }
569
+
570
+ if (!isset ( $get_flag_choices ['flag-gu'] ) ) {
571
+ $get_flag_choices['flag-gu'] = 0;
572
+ }
573
+
574
+ if (!isset ( $get_flag_choices ['flag-ht'] ) ) {
575
+ $get_flag_choices['flag-ht'] = 0;
576
+ }
577
+
578
+ if (!isset ( $get_flag_choices ['flag-iw'] ) ) {
579
+ $get_flag_choices['flag-iw'] = 0;
580
+ }
581
+
582
+ if (!isset ( $get_flag_choices ['flag-hi'] ) ) {
583
+ $get_flag_choices['flag-hi'] = 0;
584
+ }
585
+
586
+ if (!isset ( $get_flag_choices ['flag-hmn'] ) ) {
587
+ $get_flag_choices['flag-hmn'] = 0;
588
+ }
589
+
590
+ if (!isset ( $get_flag_choices ['flag-hu'] ) ) {
591
+ $get_flag_choices['flag-hu'] = 0;
592
+ }
593
+
594
+ if (!isset ( $get_flag_choices ['flag-is'] ) ) {
595
+ $get_flag_choices['flag-is'] = 0;
596
+ }
597
+
598
+ if (!isset ( $get_flag_choices ['flag-id'] ) ) {
599
+ $get_flag_choices['flag-id'] = 0;
600
+ }
601
+
602
+ if (!isset ( $get_flag_choices ['flag-ga'] ) ) {
603
+ $get_flag_choices['flag-ga'] = 0;
604
+ }
605
+
606
+ if (!isset ( $get_flag_choices ['flag-it'] ) ) {
607
+ $get_flag_choices['flag-it'] = 0;
608
+ }
609
+
610
+ if (!isset ( $get_flag_choices ['flag-ja'] ) ) {
611
+ $get_flag_choices['flag-ja'] = 0;
612
+ }
613
+
614
+ if (!isset ( $get_flag_choices ['flag-jw'] ) ) {
615
+ $get_flag_choices['flag-jw'] = 0;
616
+ }
617
+
618
+ if (!isset ( $get_flag_choices ['flag-kn'] ) ) {
619
+ $get_flag_choices['flag-kn'] = 0;
620
+ }
621
+
622
+ if (!isset ( $get_flag_choices ['flag-km'] ) ) {
623
+ $get_flag_choices['flag-km'] = 0;
624
+ }
625
+
626
+ if (!isset ( $get_flag_choices ['flag-ko'] ) ) {
627
+ $get_flag_choices['flag-ko'] = 0;
628
+ }
629
+
630
+ if (!isset ( $get_flag_choices ['flag-lo'] ) ) {
631
+ $get_flag_choices['flag-lo'] = 0;
632
+ }
633
+
634
+ if (!isset ( $get_flag_choices ['flag-la'] ) ) {
635
+ $get_flag_choices['flag-la'] = 0;
636
+ }
637
+
638
+ if (!isset ( $get_flag_choices ['flag-lv'] ) ) {
639
+ $get_flag_choices['flag-lv'] = 0;
640
+ }
641
+
642
+ if (!isset ( $get_flag_choices ['flag-lt'] ) ) {
643
+ $get_flag_choices['flag-lt'] = 0;
644
+ }
645
+
646
+ if (!isset ( $get_flag_choices ['flag-mk'] ) ) {
647
+ $get_flag_choices['flag-mk'] = 0;
648
+ }
649
+
650
+ if (!isset ( $get_flag_choices ['flag-ms'] ) ) {
651
+ $get_flag_choices['flag-ms'] = 0;
652
+ }
653
+
654
+ if (!isset ( $get_flag_choices ['flag-mt'] ) ) {
655
+ $get_flag_choices['flag-mt'] = 0;
656
+ }
657
+
658
+ if (!isset ( $get_flag_choices ['flag-mr'] ) ) {
659
+ $get_flag_choices['flag-mr'] = 0;
660
+ }
661
+
662
+ if (!isset ( $get_flag_choices ['flag-no'] ) ) {
663
+ $get_flag_choices['flag-no'] = 0;
664
+ }
665
+
666
+ if (!isset ( $get_flag_choices ['flag-fa'] ) ) {
667
+ $get_flag_choices['flag-fa'] = 0;
668
+ }
669
+
670
+ if (!isset ( $get_flag_choices ['flag-pl'] ) ) {
671
+ $get_flag_choices['flag-pl'] = 0;
672
+ }
673
+
674
+ if (!isset ( $get_flag_choices ['flag-pt'] ) ) {
675
+ $get_flag_choices['flag-pt'] = 0;
676
+ }
677
+
678
+ if (!isset ( $get_flag_choices ['flag-ro'] ) ) {
679
+ $get_flag_choices['flag-ro'] = 0;
680
+ }
681
+
682
+ if (!isset ( $get_flag_choices ['flag-ru'] ) ) {
683
+ $get_flag_choices['flag-ru'] = 0;
684
+ }
685
+
686
+ if (!isset ( $get_flag_choices ['flag-sr'] ) ) {
687
+ $get_flag_choices['flag-sr'] = 0;
688
+ }
689
+
690
+ if (!isset ( $get_flag_choices ['flag-sk'] ) ) {
691
+ $get_flag_choices['flag-sk'] = 0;
692
+ }
693
+
694
+ if (!isset ( $get_flag_choices ['flag-sl'] ) ) {
695
+ $get_flag_choices['flag-sl'] = 0;
696
+ }
697
+
698
+ if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
699
+ $get_flag_choices['flag-es'] = 0;
700
+ }
701
+
702
+ if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
703
+ $get_flag_choices['flag-sw'] = 0;
704
+ }
705
+
706
+ if (!isset ( $get_flag_choices ['flag-sv'] ) ) {
707
+ $get_flag_choices['flag-sv'] = 0;
708
+ }
709
+
710
+ if (!isset ( $get_flag_choices ['flag-ta'] ) ) {
711
+ $get_flag_choices['flag-ta'] = 0;
712
+ }
713
+
714
+ if (!isset ( $get_flag_choices ['flag-te'] ) ) {
715
+ $get_flag_choices['flag-te'] = 0;
716
+ }
717
+
718
+ if (!isset ( $get_flag_choices ['flag-th'] ) ) {
719
+ $get_flag_choices['flag-th'] = 0;
720
+ }
721
+
722
+ if (!isset ( $get_flag_choices ['flag-tr'] ) ) {
723
+ $get_flag_choices['flag-tr'] = 0;
724
+ }
725
+
726
+ if (!isset ( $get_flag_choices ['flag-uk'] ) ) {
727
+ $get_flag_choices['flag-uk'] = 0;
728
+ }
729
+
730
+ if (!isset ( $get_flag_choices ['flag-ur'] ) ) {
731
+ $get_flag_choices['flag-ur'] = 0;
732
+ }
733
+
734
+ if (!isset ( $get_flag_choices ['flag-vi'] ) ) {
735
+ $get_flag_choices['flag-vi'] = 0;
736
+ }
737
+
738
+ if (!isset ( $get_flag_choices ['flag-cy'] ) ) {
739
+ $get_flag_choices['flag-cy'] = 0;
740
+ }
741
+
742
+ if (!isset ( $get_flag_choices ['flag-yi'] ) ) {
743
+ $get_flag_choices['flag-yi'] = 0;
744
+ }
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+ ?>
754
+ <div class="flagdisplay" style="width:25%; float:left">
755
+
756
+ <div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?> /> Afrikaans</div>
757
+
758
+
759
+ <div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?> /> Albanian</div>
760
+ <div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?> /> Arabic</div>
761
+ <div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?> /> Armenian</div>
762
+ <div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?> /> Azerbaijani</div>
763
+ <div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?> /> Basque</div>
764
+ <div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?> /> Belarusian</div>
765
+ <div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?> /> Bengali</div>
766
+ <div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?> /> Bosnian</div>
767
+ <div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?> /> Bulgarian</div>
768
+ <div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?> /> Catalan</div>
769
+ <div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?> /> Cebuano</div>
770
+ <div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?> /> Chinese</div>
771
+ <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>
772
+ <div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?> /> Croatian</div>
773
+ <div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?> /> Czech</div>
774
+ <div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?> /> Danish</div>
775
+ <div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?> /> Dutch</div>
776
+ <div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?> /> English</div>
777
+ </div>
778
+
779
+ <div class="flagdisplay" style="width:25%; float:left">
780
+ <div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1"<?php checked( 1,$get_flag_choices['flag-eo']); ?> /> Esperanto</div>
781
+ <div><input type="checkbox" name="flag_display_settings[flag-et]" value="1"<?php checked( 1,$get_flag_choices['flag-et']); ?> /> Estonian</div>
782
+ <div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1"<?php checked( 1,$get_flag_choices['flag-tl']); ?> /> Filipino</div>
783
+ <div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1"<?php checked( 1,$get_flag_choices['flag-fi']); ?> /> Finnish</div>
784
+ <div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1"<?php checked( 1,$get_flag_choices['flag-fr']); ?> /> French</div>
785
+ <div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1"<?php checked( 1,$get_flag_choices['flag-gl']); ?> /> Galician</div>
786
+ <div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1"<?php checked( 1,$get_flag_choices['flag-ka']); ?> /> Georgian</div>
787
+ <div><input type="checkbox" name="flag_display_settings[flag-de]" value="1"<?php checked( 1,$get_flag_choices['flag-de']); ?> /> German</div>
788
+ <div><input type="checkbox" name="flag_display_settings[flag-el]" value="1"<?php checked( 1,$get_flag_choices['flag-el']); ?> /> Greek</div>
789
+ <div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1"<?php checked( 1,$get_flag_choices['flag-gu']); ?> /> Gujarati</div>
790
+ <div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1"<?php checked( 1,$get_flag_choices['flag-ht']); ?> /> Haitian</div>
791
+ <div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1"<?php checked( 1,$get_flag_choices['flag-iw']); ?> /> Hebrew</div>
792
+ <div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1"<?php checked( 1,$get_flag_choices['flag-hi']); ?> /> Hindi</div>
793
+ <div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1"<?php checked( 1,$get_flag_choices['flag-hmn']); ?> /> Hmong</div>
794
+ <div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1"<?php checked( 1,$get_flag_choices['flag-hu']); ?> /> Hungarian</div>
795
+ <div><input type="checkbox" name="flag_display_settings[flag-is]" value="1"<?php checked( 1,$get_flag_choices['flag-is']); ?> /> Icelandic</div>
796
+ <div><input type="checkbox" name="flag_display_settings[flag-id]" value="1"<?php checked( 1,$get_flag_choices['flag-id']); ?> /> Indonesian</div>
797
+ <div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1"<?php checked( 1,$get_flag_choices['flag-ga']); ?> /> Irish</div>
798
+ <div><input type="checkbox" name="flag_display_settings[flag-it]" value="1"<?php checked( 1,$get_flag_choices['flag-it']); ?> /> Italian</div>
799
+ </div>
800
+
801
+ <div class="flagdisplay" style="width:25%; float:left">
802
+ <div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1"<?php checked( 1,$get_flag_choices['flag-ja']); ?> /> Japanese</div>
803
+ <div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1"<?php checked( 1,$get_flag_choices['flag-jw']); ?> /> Javanese</div>
804
+ <div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1"<?php checked( 1,$get_flag_choices['flag-kn']); ?> /> Kannada</div>
805
+ <div><input type="checkbox" name="flag_display_settings[flag-km]" value="1"<?php checked( 1,$get_flag_choices['flag-km']); ?> /> Khmer</div>
806
+ <div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1"<?php checked( 1,$get_flag_choices['flag-ko']); ?> /> Korean</div>
807
+ <div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1"<?php checked( 1,$get_flag_choices['flag-lo']); ?> /> Lao</div>
808
+ <div><input type="checkbox" name="flag_display_settings[flag-la]" value="1"<?php checked( 1,$get_flag_choices['flag-la']); ?> /> Latin</div>
809
+ <div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1"<?php checked( 1,$get_flag_choices['flag-lv']); ?> /> Latvian</div>
810
+ <div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1"<?php checked( 1,$get_flag_choices['flag-lt']); ?> /> Lithuanian</div>
811
+ <div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1"<?php checked( 1,$get_flag_choices['flag-mk']); ?> /> Macedonian</div>
812
+ <div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1"<?php checked( 1,$get_flag_choices['flag-ms']); ?> /> Malay</div>
813
+ <div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1"<?php checked( 1,$get_flag_choices['flag-mt']); ?> /> Maltese</div>
814
+ <div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1"<?php checked( 1,$get_flag_choices['flag-mr']); ?> /> Marathi</div>
815
+ <div><input type="checkbox" name="flag_display_settings[flag-no]" value="1"<?php checked( 1,$get_flag_choices['flag-no']); ?> /> Norwegian</div>
816
+ <div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1"<?php checked( 1,$get_flag_choices['flag-fa']); ?> /> Persian</div>
817
+ <div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1"<?php checked( 1,$get_flag_choices['flag-pl']); ?> /> Polish</div>
818
+ <div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1"<?php checked( 1,$get_flag_choices['flag-pt']); ?> /> Portuguese</div>
819
+ <div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1"<?php checked( 1,$get_flag_choices['flag-ro']); ?> /> Romanian</div>
820
+ <div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1"<?php checked( 1,$get_flag_choices['flag-ru']); ?> /> Russian</div>
821
+ </div>
822
+
823
+ <div class="flagdisplay" style="width:25%; float:left">
824
+ <div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1"<?php checked( 1,$get_flag_choices['flag-sr']); ?> /> Serbian</div>
825
+ <div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1"<?php checked( 1,$get_flag_choices['flag-sk']); ?> /> Slovak</div>
826
+ <div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1"<?php checked( 1,$get_flag_choices['flag-sl']); ?> /> Slovenian</div>
827
+ <div><input type="checkbox" name="flag_display_settings[flag-es]" value="1"<?php checked( 1,$get_flag_choices['flag-es']); ?> /> Spanish</div>
828
+ <div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1"<?php checked( 1,$get_flag_choices['flag-sw']); ?> /> Swahili</div>
829
+ <div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1"<?php checked( 1,$get_flag_choices['flag-sv']); ?> /> Swedish</div>
830
+ <div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1"<?php checked( 1,$get_flag_choices['flag-ta']); ?> /> Tamil</div>
831
+ <div><input type="checkbox" name="flag_display_settings[flag-te]" value="1"<?php checked( 1,$get_flag_choices['flag-te']); ?> /> Telugu</div>
832
+ <div><input type="checkbox" name="flag_display_settings[flag-th]" value="1"<?php checked( 1,$get_flag_choices['flag-th']); ?> /> Thai</div>
833
+ <div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1"<?php checked( 1,$get_flag_choices['flag-tr']); ?> /> Turkish</div>
834
+ <div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1"<?php checked( 1,$get_flag_choices['flag-uk']); ?> /> Ukranian</div>
835
+ <div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1"<?php checked( 1,$get_flag_choices['flag-ur']); ?> /> Urdu</div>
836
+ <div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1"<?php checked( 1,$get_flag_choices['flag-vi']); ?> /> Vietnamese</div>
837
+ <div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1"<?php checked( 1,$get_flag_choices['flag-cy']); ?> /> Welsh</div>
838
+ <div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1"<?php checked( 1,$get_flag_choices['flag-yi']); ?> /> Yiddish</div>
839
+
840
+
841
+ </div>
842
+ <div style="clear:both"></div>
843
+ <?php }
844
+
845
+ function googlelanguagetranslator_translatebox_cb() {
846
+ $options = get_option('googlelanguagetranslator_translatebox'); ?>
847
+
848
+ <select name="googlelanguagetranslator_translatebox" id="googlelanguagetranslator_translatebox" style="width:170px">
849
+ <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show language box</option>
850
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide language box</option>
851
+ </select>
852
+ <?php }
853
+
854
+ function googlelanguagetranslator_display_cb() {
855
+ $options = get_option('googlelanguagetranslator_display'); ?>
856
+ <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:170px;">
857
+ <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
858
+ <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
859
+ </select>
860
+ <?php }
861
+
862
+ function googlelanguagetranslator_toolbar_cb() {
863
+ $options = get_option('googlelanguagetranslator_toolbar'); ?>
864
+ <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:170px;">
865
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
866
+ <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
867
+ </select>
868
+ <?php }
869
+
870
+ function googlelanguagetranslator_showbranding_cb() {
871
+ $options = get_option('googlelanguagetranslator_showbranding'); ?>
872
+ <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:170px;">
873
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
874
+ <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
875
+ </select>
876
+ <?php }
877
+
878
+ function googlelanguagetranslator_flags_alignment_cb() {
879
+ $options = get_option('googlelanguagetranslator_flags_alignment'); ?>
880
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="googlelanguagetranslator_flags_alignment" value="flags_left" <?php if(get_option('googlelanguagetranslator_flags_alignment')=='flags_left'){echo "checked";}?>/> Align Left<br/>
881
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="googlelanguagetranslator_flags_alignment" value="flags_right" <?php if(get_option('googlelanguagetranslator_flags_alignment')=='flags_right'){echo "checked";}?>/> Align Right
882
+ <?php }
883
+
884
+
885
+
886
+
887
+ } //End initialize_settings()
888
+ add_action('admin_init', 'initialize_settings');
889
+
890
+
891
+ // Functions for frontend display
892
+
893
+ function googlelanguagetranslator_included_languages() {
894
+ if ( get_option('googlelanguagetranslator_language_option')=='specific') {
895
+ $get_language_choices = get_option ('language_display_settings');
896
+ //print_r($get_language_choices);
897
+
898
+ foreach ($get_language_choices as $key=>$value) {
899
+ if($value == 1) {
900
+ $items[] = $key;
901
+ }
902
+ }
903
+ $comma_separated = implode(",",array_values($items));
904
+
905
+ if ( get_option('googlelanguagetranslator_display') == 'Vertical') {
906
+ $lang .= 'includedLanguages:\''.$comma_separated.'\',';
907
+ return $lang;
908
+ } elseif ( get_option('googlelanguagetranslator_display') == 'Horizontal') {
909
+ $lang .= 'includedLanguages:\''.$comma_separated.'\',';
910
+ return $lang;
911
+ }
912
+ }
913
+ }
914
+
915
+ function googlelanguagetranslator_vertical(){
916
+ $language_choices = googlelanguagetranslator_included_languages();
917
+ if(get_option('googlelanguagetranslator_active')==1){
918
+ $get_flag_choices = get_option ('flag_display_settings');
919
+ foreach ($get_flag_choices as $key) {
920
+ //print_r($key);
921
+ }
922
+
923
+
924
+
925
+ $str='<div id="flags">';
926
+
927
+
928
+ if ($key == '1') {
929
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
930
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="flag af"></a>';
931
+ }
932
+
933
+
934
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
935
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="flag sq"></a>';
936
+ }
937
+
938
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
939
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="flag ar"></a>';
940
+ }
941
+
942
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
943
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
944
+ }
945
+
946
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
947
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="flag az"></a>';
948
+ }
949
+
950
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
951
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="flag eu"></a>';
952
+ }
953
+
954
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
955
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="flag be"></a>';
956
+ }
957
+
958
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
959
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="flag bn"></a>';
960
+ }
961
+
962
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
963
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="flag bs"></a>';
964
+ }
965
+
966
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
967
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="flag bg"></a>';
968
+ }
969
+
970
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
971
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="flag ca"></a>';
972
+ }
973
+
974
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
975
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="flag ceb"></a>';
976
+ }
977
+
978
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
979
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="flag zh-CN"></a>';
980
+ }
981
+
982
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
983
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="flag zh-TW"></a>';
984
+ }
985
+
986
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
987
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech Republic" class="flag cs"></a>';
988
+ }
989
+
990
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
991
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="flag hr"></a>';
992
+ }
993
+
994
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
995
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="flag da"></a>';
996
+ }
997
+
998
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
999
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Netherlands" class="flag nl"></a>';
1000
+ }
1001
+
1002
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
1003
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="flag en"></a>';
1004
+ }
1005
+
1006
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1007
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="flag eo"></a>';
1008
+ }
1009
+
1010
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
1011
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="flag et"></a>';
1012
+ }
1013
+
1014
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1015
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="flag tl"></a>';
1016
+ }
1017
+
1018
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1019
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="flag fi"></a>';
1020
+ }
1021
+
1022
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1023
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="flag fr"></a>';
1024
+ }
1025
+
1026
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1027
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="flag gl"></a>';
1028
+ }
1029
+
1030
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1031
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="flag ka"></a>';
1032
+ }
1033
+
1034
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
1035
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="flag de"></a>';
1036
+ }
1037
+
1038
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
1039
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="flag el"></a>';
1040
+ }
1041
+
1042
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1043
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="flag gu"></a>';
1044
+ }
1045
+
1046
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1047
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="flag ht"></a>';
1048
+ }
1049
+
1050
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1051
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="flag iw"></a>';
1052
+ }
1053
+
1054
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1055
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="flag hi"></a>';
1056
+ }
1057
+
1058
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1059
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="flag hmn"></a>';
1060
+ }
1061
+
1062
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1063
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="flag hu"></a>';
1064
+ }
1065
+
1066
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
1067
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Iceland" class="flag is"></a>';
1068
+ }
1069
+
1070
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
1071
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="flag id"></a>';
1072
+ }
1073
+
1074
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1075
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="flag ga"></a>';
1076
+ }
1077
+
1078
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
1079
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="flag it"></a>';
1080
+ }
1081
+
1082
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1083
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="flag ja"></a>';
1084
+ }
1085
+
1086
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1087
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="flag jw"></a>';
1088
+ }
1089
+
1090
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1091
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="flag kn"></a>';
1092
+ }
1093
+
1094
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1095
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="flag km"></a>';
1096
+ }
1097
+
1098
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1099
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="flag ko"></a>';
1100
+ }
1101
+
1102
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1103
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="flag lo"></a>';
1104
+ }
1105
+
1106
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1107
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="flag la"></a>';
1108
+ }
1109
+
1110
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1111
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="flag lv"></a>';
1112
+ }
1113
+
1114
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1115
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="flag lt"></a>';
1116
+ }
1117
+
1118
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1119
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="flag mk"></a>';
1120
+ }
1121
+
1122
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1123
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="flag ms"></a>';
1124
+ }
1125
+
1126
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1127
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="flag mt"></a>';
1128
+ }
1129
+
1130
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1131
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="flag mr"></a>';
1132
+ }
1133
+
1134
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1135
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="flag no"></a>';
1136
+ }
1137
+
1138
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1139
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="flag fa"></a>';
1140
+ }
1141
+
1142
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1143
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="flag pl"></a>';
1144
+ }
1145
+
1146
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1147
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="flag pt"></a>';
1148
+ }
1149
+
1150
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1151
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="flag ro"></a>';
1152
+ }
1153
+
1154
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1155
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="flag ru"></a>';
1156
+ }
1157
+
1158
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1159
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="flag sr"></a>';
1160
+ }
1161
+
1162
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1163
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="flag sk"></a>';
1164
+ }
1165
+
1166
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1167
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="flag sl"></a>';
1168
+ }
1169
+
1170
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1171
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="flag es"></a>';
1172
+ }
1173
+
1174
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1175
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="flag sw"></a>';
1176
+ }
1177
+
1178
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1179
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="flag sv"></a>';
1180
+ }
1181
+
1182
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1183
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="flag ta"></a>';
1184
+ }
1185
+
1186
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1187
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="flag te"></a>';
1188
+ }
1189
+
1190
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1191
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="haiT" class="flag th"></a>';
1192
+ }
1193
+
1194
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1195
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="flag tr"></a>';
1196
+ }
1197
+
1198
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1199
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="flag uk"></a>';
1200
+ }
1201
+
1202
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1203
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="flag ur"></a>';
1204
+ }
1205
+
1206
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1207
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="flag vi"></a>';
1208
+ }
1209
+
1210
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1211
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1212
+ }
1213
+
1214
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1215
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="flag cy"></a>';
1216
+ }
1217
+
1218
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1219
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="flag yi"></a>';
1220
+ }
1221
+
1222
+
1223
+ // }
1224
+
1225
+ $str.='<div class="glt-clear"></div>';
1226
+
1227
+ $str.='</div>';
1228
+
1229
+ $str.='<script type="text/javascript">
1230
+ function GoogleLanguageTranslatorInit() {
1231
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.'autoDisplay: false }, \'google_language_translator\');}
1232
+ </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1233
+ <div id="google_language_translator"></div>';
1234
+ return $str;
1235
+ }
1236
+ }
1237
+ }
1238
+
1239
+ function googlelanguagetranslator_horizontal(){
1240
+ $language_choices = googlelanguagetranslator_included_languages();
1241
+ if(get_option('googlelanguagetranslator_active')==1){
1242
+ $get_flag_choices = get_option ('flag_display_settings');
1243
+
1244
+ $str = '<div id="flags">';
1245
+
1246
+ foreach ($get_flag_choices as $key) {
1247
+ //print_r($key);
1248
+ }
1249
+ if ($key == '1') {
1250
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
1251
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="flag af"></a>';
1252
+ }
1253
+
1254
+
1255
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
1256
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="flag sq"></a>';
1257
+ }
1258
+
1259
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
1260
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="flag ar"></a>';
1261
+ }
1262
+
1263
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1264
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1265
+ }
1266
+
1267
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
1268
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="flag az"></a>';
1269
+ }
1270
+
1271
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
1272
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="flag eu"></a>';
1273
+ }
1274
+
1275
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
1276
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="flag be"></a>';
1277
+ }
1278
+
1279
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
1280
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="flag bn"></a>';
1281
+ }
1282
+
1283
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
1284
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="flag bs"></a>';
1285
+ }
1286
+
1287
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
1288
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="flag bg"></a>';
1289
+ }
1290
+
1291
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
1292
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="flag ca"></a>';
1293
+ }
1294
+
1295
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
1296
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="flag ceb"></a>';
1297
+ }
1298
+
1299
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
1300
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="flag zh-CN"></a>';
1301
+ }
1302
+
1303
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
1304
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="flag zh-TW"></a>';
1305
+ }
1306
+
1307
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
1308
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech Republic" class="flag cs"></a>';
1309
+ }
1310
+
1311
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
1312
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="flag hr"></a>';
1313
+ }
1314
+
1315
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
1316
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="flag da"></a>';
1317
+ }
1318
+
1319
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
1320
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Netherlands" class="flag nl"></a>';
1321
+ }
1322
+
1323
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
1324
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="flag en"></a>';
1325
+ }
1326
+
1327
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1328
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="flag eo"></a>';
1329
+ }
1330
+
1331
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
1332
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="flag et"></a>';
1333
+ }
1334
+
1335
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1336
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="flag tl"></a>';
1337
+ }
1338
+
1339
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1340
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="flag fi"></a>';
1341
+ }
1342
+
1343
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1344
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="flag fr"></a>';
1345
+ }
1346
+
1347
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1348
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="flag gl"></a>';
1349
+ }
1350
+
1351
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1352
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="flag ka"></a>';
1353
+ }
1354
+
1355
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
1356
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="flag de"></a>';
1357
+ }
1358
+
1359
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
1360
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="flag el"></a>';
1361
+ }
1362
+
1363
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1364
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="flag gu"></a>';
1365
+ }
1366
+
1367
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1368
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="flag ht"></a>';
1369
+ }
1370
+
1371
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1372
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="flag iw"></a>';
1373
+ }
1374
+
1375
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1376
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="flag hi"></a>';
1377
+ }
1378
+
1379
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1380
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="flag hmn"></a>';
1381
+ }
1382
+
1383
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1384
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="flag hu"></a>';
1385
+ }
1386
+
1387
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
1388
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Iceland" class="flag is"></a>';
1389
+ }
1390
+
1391
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
1392
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="flag id"></a>';
1393
+ }
1394
+
1395
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1396
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="flag ga"></a>';
1397
+ }
1398
+
1399
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
1400
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="flag it"></a>';
1401
+ }
1402
+
1403
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1404
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="flag ja"></a>';
1405
+ }
1406
+
1407
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1408
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="flag jw"></a>';
1409
+ }
1410
+
1411
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1412
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="flag kn"></a>';
1413
+ }
1414
+
1415
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1416
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="flag km"></a>';
1417
+ }
1418
+
1419
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1420
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="flag ko"></a>';
1421
+ }
1422
+
1423
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1424
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="flag lo"></a>';
1425
+ }
1426
+
1427
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1428
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="flag la"></a>';
1429
+ }
1430
+
1431
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1432
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="flag lv"></a>';
1433
+ }
1434
+
1435
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1436
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="flag lt"></a>';
1437
+ }
1438
+
1439
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1440
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="flag mk"></a>';
1441
+ }
1442
+
1443
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1444
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="flag ms"></a>';
1445
+ }
1446
+
1447
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1448
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="flag mt"></a>';
1449
+ }
1450
+
1451
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1452
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="flag mr"></a>';
1453
+ }
1454
+
1455
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1456
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="flag no"></a>';
1457
+ }
1458
+
1459
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1460
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="flag fa"></a>';
1461
+ }
1462
+
1463
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1464
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="flag pl"></a>';
1465
+ }
1466
+
1467
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1468
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="flag pt"></a>';
1469
+ }
1470
+
1471
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1472
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="flag ro"></a>';
1473
+ }
1474
+
1475
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1476
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="flag ru"></a>';
1477
+ }
1478
+
1479
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1480
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="flag sr"></a>';
1481
+ }
1482
+
1483
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1484
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="flag sk"></a>';
1485
+ }
1486
+
1487
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1488
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="flag sl"></a>';
1489
+ }
1490
+
1491
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1492
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="flag es"></a>';
1493
+ }
1494
+
1495
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1496
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="flag sw"></a>';
1497
+ }
1498
+
1499
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1500
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="flag sv"></a>';
1501
+ }
1502
+
1503
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1504
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="flag ta"></a>';
1505
+ }
1506
+
1507
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1508
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="flag te"></a>';
1509
+ }
1510
+
1511
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1512
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="haiT" class="flag th"></a>';
1513
+ }
1514
+
1515
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1516
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="flag tr"></a>';
1517
+ }
1518
+
1519
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1520
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="flag uk"></a>';
1521
+ }
1522
+
1523
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1524
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="flag ur"></a>';
1525
+ }
1526
+
1527
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1528
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="flag vi"></a>';
1529
+ }
1530
+
1531
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1532
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1533
+ }
1534
+
1535
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1536
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="flag cy"></a>';
1537
+ }
1538
+
1539
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1540
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="flag yi"></a>';
1541
+ }
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+ $str.='</div>';
1548
+ $str.='<script type="text/javascript">
1549
+ function GoogleLanguageTranslatorInit() {
1550
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.' layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,autoDisplay: false }, \'google_language_translator\'); }
1551
+ </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1552
+ <div id="google_language_translator"></div>';
1553
+ return $str;
1554
+ }
1555
+ }
1556
+ }
1557
+
1558
+
1559
+ function googlelanguagetranslator_toolbar_yes(){
1560
+ if(get_option('googlelanguagetranslator_active')==1) {
1561
+ $str='<style type="text/css">';
1562
+ $str.='#google_language_translator {color: transparent;}';
1563
+ $str.='.goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}';
1564
+ $str.='.goog-tooltip {display: none !important;}';
1565
+ $str.='.goog-tooltip:hover {display: none !important;}';
1566
+ $str.='.goog-text-highlight {background-color: transparent !important; border: none !important;box-shadow: none !important;}';
1567
+ $str.='</style>';
1568
+ return $str;
1569
+ }
1570
+ }
1571
+
1572
+ function googlelanguagetranslator_toolbar_no(){
1573
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
1574
+ <style type="text/css">
1575
+ .goog-te-banner-frame{visibility:hidden !important;}
1576
+ body {top:0px !important;}
1577
+ </style>
1578
+ <?php
1579
+ }
1580
+ }
1581
+
1582
+
1583
+ function googlelanguagetranslator_showbranding_yes() {
1584
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
1585
+ <style type="text/css">
1586
+ #google_language_translator { width:auto !important; }
1587
+ .goog-te-gadget .goog-te-combo {margin: 4px 0px !important;}
1588
+ .goog-tooltip {display: none !important;}
1589
+ .goog-tooltip:hover {display: none !important;}
1590
+ .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
1591
+ </style>
1592
+ <?php
1593
+ }
1594
+ }
1595
+
1596
+ function googlelanguagetranslator_flags() {
1597
+ if(get_option('googlelanguagetranslator_active') ==1) { ?>
1598
+ <style type="text/css">
1599
+ #flags { display:none; }
1600
+ </style>
1601
+ <?php
1602
+ }
1603
+ }
1604
+
1605
+ function googlelanguagetranslator_translatebox() {
1606
+ if(get_option('googlelanguagetranslator_active') ==1) { ?>
1607
+ <style type="text/css">
1608
+ #google_language_translator { display:none; }
1609
+ </style>
1610
+ <?php
1611
+ }
1612
+ }
1613
+
1614
+ function googlelanguagetranslator_showbranding_no() {
1615
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
1616
+ <style type="text/css">
1617
+ #google_language_translator a {display: none !important; }
1618
+ .goog-te-gadget {color:transparent !important;}
1619
+ .goog-te-gadget { font-size:0px !important; }
1620
+ .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
1621
+ .goog-tooltip {display: none !important;}
1622
+ .goog-tooltip:hover {display: none !important;}
1623
+ .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
1624
+
1625
+ </style>
1626
+ <?php
1627
+ }
1628
+ }
1629
+
1630
+ function googlelanguagetranslator_flags_display() { ?>
1631
+ <style type="text/css">
1632
+ <?php if(get_option('googlelanguagetranslator_display')=='Vertical') { ?>
1633
+ <?php if (get_option('googlelanguagetranslator_language_option')=='specific') { ?>
1634
+ #flags {display:none !important; }
1635
+ <?php } ?>
1636
+ p.hello { font-size:12px; color:darkgray; }
1637
+ <?php } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') { ?>
1638
+ <?php if (get_option('googlelanguagetranslator_language_option')=='specific') { ?>
1639
+ #flags {display:none !important; }
1640
+ <?php } ?>
1641
+ <?php if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') { ?>
1642
+ #google_language_translator { text-align:left !important; }
1643
+ select.goog-te-combo { float:right; }
1644
+ .goog-te-gadget { padding-top:13px; }
1645
+ .goog-te-gadget .goog-te-combo { margin-top:-7px !important; }
1646
+ <?php } ?>
1647
+ .goog-te-gadget { margin-top:2px !important; }
1648
+ p.hello { font-size:12px; color:#666; }
1649
+ <?php } ?>
1650
+ <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
1651
+ #google_language_translator { clear:both; width:auto !important; text-align:right; }
1652
+ #flags { text-align:right; width:150px; float:right; clear:right; }
1653
+ p.hello { text-align:right; float:right; clear:both; color:#666; }
1654
+ .glt-clear { height:0px; clear:both; margin:0px; padding:0px; }
1655
+ <?php } ?>
1656
+ <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') { ?>
1657
+ #google_language_translator { clear:both; }
1658
+ #flags { width:150px; }
1659
+ #flags a { display:inline-block; width:16px; height:12px; margin-right:2px; }
1660
+ p.hello { font-size:12px; color:#666; }
1661
+ <?php } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
1662
+ #flags { width:150px; }
1663
+ #flags a { display:inline-block; width:16px; height:12px; margin-left:2px; } ?>
1664
+ <?php } ?>
1665
+ </style>
1666
+ <?php
1667
+ $get_flag_choices = get_option ('flag_display_settings');
1668
+
1669
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) { ?>
1670
+ <style type="text/css">
1671
+ #flags a.zh-CN { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/china.png") 0px 0px no-repeat; }
1672
+ </style>
1673
+ <?php } else { ?>
1674
+ <style type="text/css">
1675
+ #flags a.zh-CN { display:none; }
1676
+ </style>
1677
+ <?php }
1678
+
1679
+ if ( isset ( $get_flag_choices['flag-de'] ) ) { ?>
1680
+ <style type="text/css">
1681
+ #flags a.de { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/germany.png") 0px 0px no-repeat; }
1682
+ </style>
1683
+ <?php } else { ?>
1684
+ <style type="text/css">
1685
+ #flags a.de { display:none; }
1686
+ </style>
1687
+ <?php }
1688
+
1689
+ if ( isset ( $get_flag_choices['flag-da'] ) ) { ?>
1690
+ <style type="text/css">
1691
+ #flags a.da { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/denmark.png") 0px 0px no-repeat; }
1692
+ </style>
1693
+ <?php } else { ?>
1694
+ <style type="text/css">
1695
+ #flags a.da { display:none; }
1696
+ </style>
1697
+ <?php }
1698
+
1699
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) { ?>
1700
+ <style type="text/css">
1701
+ #flags a.fr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/france.png") 0px 0px no-repeat; }
1702
+ </style>
1703
+ <?php } else { ?>
1704
+ <style type="text/css">
1705
+ #flags a.fr { display:none; }
1706
+ </style>
1707
+ <?php }
1708
+
1709
+ if ( isset ( $get_flag_choices['flag-en'] ) ) { ?>
1710
+ <style type="text/css">
1711
+ #flags a.en { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/united-kingdom.png") 0px 0px no-repeat; }
1712
+ </style>
1713
+ <?php } else { ?>
1714
+ <style type="text/css">
1715
+ #flags a.en { display:none; }
1716
+ </style>
1717
+ <?php }
1718
+
1719
+ if ( isset ( $get_flag_choices['flag-it'] ) ) { ?>
1720
+ <style type="text/css">
1721
+ #flags a.it { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/italy.png") 0px 0px no-repeat; }
1722
+ </style>
1723
+ <?php } else { ?>
1724
+ <style type="text/css">
1725
+ #flags a.it { display:none; }
1726
+ </style>
1727
+ <?php }
1728
+
1729
+ if ( isset ( $get_flag_choices['flag-es'] ) ) { ?>
1730
+ <style type="text/css">
1731
+ #flags a.es { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/spain.png") 0px 0px no-repeat; }
1732
+ </style>
1733
+ <?php } else { ?>
1734
+ <style type="text/css">
1735
+ #flags a.es { display:none; }
1736
+ </style>
1737
+ <?php }
1738
+
1739
+
1740
+
1741
+ if ( isset ( $get_flag_choices['flag-af'] ) ) { ?>
1742
+ <style type="text/css">
1743
+ #flags a.af { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/southafrica.png") 0px 0px no-repeat; }
1744
+ </style>
1745
+ <?php } else { ?>
1746
+ <style type="text/css">
1747
+ #flags a.af { display:none; }
1748
+ </style>
1749
+ <?php }
1750
+
1751
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) { ?>
1752
+ <style type="text/css">
1753
+ #flags a.sq { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/albania.png") 0px 0px no-repeat; }
1754
+ </style>
1755
+ <?php } else { ?>
1756
+ <style type="text/css">
1757
+ #flags a.sq { display:none; }
1758
+ </style>
1759
+ <?php }
1760
+
1761
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) { ?>
1762
+ <style type="text/css">
1763
+ #flags a.ar { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/saudiarabia.png") 0px 0px no-repeat; }
1764
+ </style>
1765
+ <?php } else { ?>
1766
+ <style type="text/css">
1767
+ #flags a.ar { display:none; }
1768
+ </style>
1769
+ <?php }
1770
+
1771
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) { ?>
1772
+ <style type="text/css">
1773
+ #flags a.hy { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/armenia.png") 0px 0px no-repeat; }
1774
+ </style>
1775
+ <?php } else { ?>
1776
+ <style type="text/css">
1777
+ #flags a.hy { display:none; }
1778
+ </style>
1779
+ <?php }
1780
+
1781
+ if ( isset ( $get_flag_choices['flag-az'] ) ) { ?>
1782
+ <style type="text/css">
1783
+ #flags a.az { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/azerbaijan.png") 0px 0px no-repeat; }
1784
+ </style>
1785
+ <?php } else { ?>
1786
+ <style type="text/css">
1787
+ #flags a.az { display:none; }
1788
+ </style>
1789
+ <?php }
1790
+
1791
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) { ?>
1792
+ <style type="text/css">
1793
+ #flags a.eu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/basque.png") 0px 0px no-repeat; }
1794
+ </style>
1795
+ <?php } else { ?>
1796
+ <style type="text/css">
1797
+ #flags a.eu { display:none; }
1798
+ </style>
1799
+ <?php }
1800
+
1801
+ if ( isset ( $get_flag_choices['flag-be'] ) ) { ?>
1802
+ <style type="text/css">
1803
+ #flags a.be { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/belarus.png") 0px 0px no-repeat; }
1804
+ </style>
1805
+ <?php } else { ?>
1806
+ <style type="text/css">
1807
+ #flags a.be { display:none; }
1808
+ </style>
1809
+ <?php }
1810
+
1811
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) { ?>
1812
+ <style type="text/css">
1813
+ #flags a.bn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bangladesh.png") 0px 0px no-repeat; }
1814
+ </style>
1815
+ <?php } else { ?>
1816
+ <style type="text/css">
1817
+ #flags a.bn { display:none; }
1818
+ </style>
1819
+ <?php }
1820
+
1821
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) { ?>
1822
+ <style type="text/css">
1823
+ #flags a.bs { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bosnia.png") 0px 0px no-repeat; }
1824
+ </style>
1825
+ <?php } else { ?>
1826
+ <style type="text/css">
1827
+ #flags a.bs { display:none; }
1828
+ </style>
1829
+ <?php }
1830
+
1831
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) { ?>
1832
+ <style type="text/css">
1833
+ #flags a.bg { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bulgaria.png") 0px 0px no-repeat; }
1834
+ </style>
1835
+ <?php } else { ?>
1836
+ <style type="text/css">
1837
+ #flags a.bg { display:none; }
1838
+ </style>
1839
+ <?php }
1840
+
1841
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) { ?>
1842
+ <style type="text/css">
1843
+ #flags a.ca { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/spain.png") 0px 0px no-repeat; }
1844
+ </style>
1845
+ <?php } else { ?>
1846
+ <style type="text/css">
1847
+ #flags a.ca { display:none; }
1848
+ </style>
1849
+ <?php }
1850
+
1851
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) { ?>
1852
+ <style type="text/css">
1853
+ #flags a.ceb { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/philippines.png") 0px 0px no-repeat; }
1854
+ </style>
1855
+ <?php } else { ?>
1856
+ <style type="text/css">
1857
+ #flags a.ceb { display:none; }
1858
+ </style>
1859
+ <?php }
1860
+
1861
+
1862
+
1863
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) { ?>
1864
+ <style type="text/css">
1865
+ #flags a.zh-TW { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/china.png") 0px 0px no-repeat; }
1866
+ </style>
1867
+ <?php } else { ?>
1868
+ <style type="text/css">
1869
+ #flags a.zh-TW { display:none; }
1870
+ </style>
1871
+ <?php }
1872
+
1873
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) { ?>
1874
+ <style type="text/css">
1875
+ #flags a.cs { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/croatia.png") 0px 0px no-repeat; }
1876
+ </style>
1877
+ <?php } else { ?>
1878
+ <style type="text/css">
1879
+ #flags a.cs { display:none; }
1880
+ </style>
1881
+ <?php }
1882
+
1883
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) { ?>
1884
+ <style type="text/css">
1885
+ #flags a.hr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/czechrepublic.png") 0px 0px no-repeat; }
1886
+ </style>
1887
+ <?php } else { ?>
1888
+ <style type="text/css">
1889
+ #flags a.hr { display:none; }
1890
+ </style>
1891
+ <?php }
1892
+
1893
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) { ?>
1894
+ <style type="text/css">
1895
+ #flags a.nl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/netherlands.png") 0px 0px no-repeat; }
1896
+ </style>
1897
+ <?php } else { ?>
1898
+ <style type="text/css">
1899
+ #flags a.nl { display:none; }
1900
+ </style>
1901
+ <?php }
1902
+
1903
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) { ?>
1904
+ <style type="text/css">
1905
+ #flags a.eo { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/esperanto.png") 0px 0px no-repeat; }
1906
+ </style>
1907
+ <?php } else { ?>
1908
+ <style type="text/css">
1909
+ #flags a.eo { display:none; }
1910
+ </style>
1911
+ <?php }
1912
+
1913
+ if ( isset ( $get_flag_choices['flag-et'] ) ) { ?>
1914
+ <style type="text/css">
1915
+ #flags a.et { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/estonia.png") 0px 0px no-repeat; }
1916
+ </style>
1917
+ <?php } else { ?>
1918
+ <style type="text/css">
1919
+ #flags a.et { display:none; }
1920
+ </style>
1921
+ <?php }
1922
+
1923
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) { ?>
1924
+ <style type="text/css">
1925
+ #flags a.tl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/philippines.png") 0px 0px no-repeat; }
1926
+ </style>
1927
+ <?php } else { ?>
1928
+ <style type="text/css">
1929
+ #flags a.tl { display:none; }
1930
+ </style>
1931
+ <?php }
1932
+
1933
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) { ?>
1934
+ <style type="text/css">
1935
+ #flags a.fi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/finland.png") 0px 0px no-repeat; }
1936
+ </style>
1937
+ <?php } else { ?>
1938
+ <style type="text/css">
1939
+ #flags a.fi { display:none; }
1940
+ </style>
1941
+ <?php }
1942
+
1943
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) { ?>
1944
+ <style type="text/css">
1945
+ #flags a.gl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/galicia.png") 0px 0px no-repeat; }
1946
+ </style>
1947
+ <?php } else { ?>
1948
+ <style type="text/css">
1949
+ #flags a.gl { display:none; }
1950
+ </style>
1951
+ <?php }
1952
+
1953
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) { ?>
1954
+ <style type="text/css">
1955
+ #flags a.ka { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/georgia.png") 0px 0px no-repeat; }
1956
+ </style>
1957
+ <?php } else { ?>
1958
+ <style type="text/css">
1959
+ #flags a.ka { display:none; }
1960
+ </style>
1961
+ <?php }
1962
+
1963
+ if ( isset ( $get_flag_choices['flag-el'] ) ) { ?>
1964
+ <style type="text/css">
1965
+ #flags a.el { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/greece.png") 0px 0px no-repeat; }
1966
+ </style>
1967
+ <?php } else { ?>
1968
+ <style type="text/css">
1969
+ #flags a.el { display:none; }
1970
+ </style>
1971
+ <?php }
1972
+
1973
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) { ?>
1974
+ <style type="text/css">
1975
+ #flags a.gu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/india.png") 0px 0px no-repeat; }
1976
+ </style>
1977
+ <?php } else { ?>
1978
+ <style type="text/css">
1979
+ #flags a.gu { display:none; }
1980
+ </style>
1981
+ <?php }
1982
+
1983
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) { ?>
1984
+ <style type="text/css">
1985
+ #flags a.ht { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/haiti.png") 0px 0px no-repeat; }
1986
+ </style>
1987
+ <?php } else { ?>
1988
+ <style type="text/css">
1989
+ #flags a.ht { display:none; }
1990
+ </style>
1991
+ <?php }
1992
+
1993
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) { ?>
1994
+ <style type="text/css">
1995
+ #flags a.iw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/israel.png") 0px 0px no-repeat; }
1996
+ </style>
1997
+ <?php } else { ?>
1998
+ <style type="text/css">
1999
+ #flags a.iw { display:none; }
2000
+ </style>
2001
+ <?php }
2002
+
2003
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) { ?>
2004
+ <style type="text/css">
2005
+ #flags a.hi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/india.png") 0px 0px no-repeat; }
2006
+ </style>
2007
+ <?php } else { ?>
2008
+ <style type="text/css">
2009
+ #flags a.hi { display:none; }
2010
+ </style>
2011
+ <?php }
2012
+
2013
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) { ?>
2014
+ <style type="text/css">
2015
+ #flags a.hmn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/hmong.png") 0px 0px no-repeat; }
2016
+ </style>
2017
+ <?php } else { ?>
2018
+ <style type="text/css">
2019
+ #flags a.hmn { display:none; }
2020
+ </style>
2021
+ <?php }
2022
+
2023
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) { ?>
2024
+ <style type="text/css">
2025
+ #flags a.hu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/hungary.png") 0px 0px no-repeat; }
2026
+ </style>
2027
+ <?php } else { ?>
2028
+ <style type="text/css">
2029
+ #flags a.hu { display:none; }
2030
+ </style>
2031
+ <?php }
2032
+
2033
+ if ( isset ( $get_flag_choices['flag-is'] ) ) { ?>
2034
+ <style type="text/css">
2035
+ #flags a.is { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/iceland.png") 0px 0px no-repeat; }
2036
+ </style>
2037
+ <?php } else { ?>
2038
+ <style type="text/css">
2039
+ #flags a.is { display:none; }
2040
+ </style>
2041
+ <?php }
2042
+
2043
+ if ( isset ( $get_flag_choices['flag-id'] ) ) { ?>
2044
+ <style type="text/css">
2045
+ #flags a.id { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/indonesia.png") 0px 0px no-repeat; }
2046
+ </style>
2047
+ <?php } else { ?>
2048
+ <style type="text/css">
2049
+ #flags a.id { display:none; }
2050
+ </style>
2051
+ <?php }
2052
+
2053
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) { ?>
2054
+ <style type="text/css">
2055
+ #flags a.ga { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/ireland.png") 0px 0px no-repeat; }
2056
+ </style>
2057
+ <?php } else { ?>
2058
+ <style type="text/css">
2059
+ #flags a.ga { display:none; }
2060
+ </style>
2061
+ <?php }
2062
+
2063
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) { ?>
2064
+ <style type="text/css">
2065
+ #flags a.ja { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/japan.png") 0px 0px no-repeat; }
2066
+ </style>
2067
+ <?php } else { ?>
2068
+ <style type="text/css">
2069
+ #flags a.ja { display:none; }
2070
+ </style>
2071
+ <?php }
2072
+
2073
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) { ?>
2074
+ <style type="text/css">
2075
+ #flags a.jw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/indonesia.png") 0px 0px no-repeat; }
2076
+ </style>
2077
+ <?php } else { ?>
2078
+ <style type="text/css">
2079
+ #flags a.jw { display:none; }
2080
+ </style>
2081
+ <?php }
2082
+
2083
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) { ?>
2084
+ <style type="text/css">
2085
+ #flags a.kn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/kannada.png") 0px 0px no-repeat; }
2086
+ </style>
2087
+ <?php } else { ?>
2088
+ <style type="text/css">
2089
+ #flags a.kn { display:none; }
2090
+ </style>
2091
+ <?php }
2092
+
2093
+ if ( isset ( $get_flag_choices['flag-km'] ) ) { ?>
2094
+ <style type="text/css">
2095
+ #flags a.km { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/cambodia.png") 0px 0px no-repeat; }
2096
+ </style>
2097
+ <?php } else { ?>
2098
+ <style type="text/css">
2099
+ #flags a.km { display:none; }
2100
+ </style>
2101
+ <?php }
2102
+
2103
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) { ?>
2104
+ <style type="text/css">
2105
+ #flags a.ko { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/korea.png") 0px 0px no-repeat; }
2106
+ </style>
2107
+ <?php } else { ?>
2108
+ <style type="text/css">
2109
+ #flags a.ko { display:none; }
2110
+ </style>
2111
+ <?php }
2112
+
2113
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) { ?>
2114
+ <style type="text/css">
2115
+ #flags a.lo { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/laos.png") 0px 0px no-repeat; }
2116
+ </style>
2117
+ <?php } else { ?>
2118
+ <style type="text/css">
2119
+ #flags a.lo { display:none; }
2120
+ </style>
2121
+ <?php }
2122
+
2123
+ if ( isset ( $get_flag_choices['flag-la'] ) ) { ?>
2124
+ <style type="text/css">
2125
+ #flags a.la { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/latin.png") 0px 0px no-repeat; }
2126
+ </style>
2127
+ <?php } else { ?>
2128
+ <style type="text/css">
2129
+ #flags a.la { display:none; }
2130
+ </style>
2131
+ <?php }
2132
+
2133
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) { ?>
2134
+ <style type="text/css">
2135
+ #flags a.lv { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/latvia.png") 0px 0px no-repeat; }
2136
+ </style>
2137
+ <?php } else { ?>
2138
+ <style type="text/css">
2139
+ #flags a.lv { display:none; }
2140
+ </style>
2141
+ <?php }
2142
+
2143
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) { ?>
2144
+ <style type="text/css">
2145
+ #flags a.lt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/lithuania.png") 0px 0px no-repeat; }
2146
+ </style>
2147
+ <?php } else { ?>
2148
+ <style type="text/css">
2149
+ #flags a.lt { display:none; }
2150
+ </style>
2151
+ <?php }
2152
+
2153
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) { ?>
2154
+ <style type="text/css">
2155
+ #flags a.mk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/macedonia.png") 0px 0px no-repeat; }
2156
+ </style>
2157
+ <?php } else { ?>
2158
+ <style type="text/css">
2159
+ #flags a.mk { display:none; }
2160
+ </style>
2161
+ <?php }
2162
+
2163
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) { ?>
2164
+ <style type="text/css">
2165
+ #flags a.ms { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/malaysia.png") 0px 0px no-repeat; }
2166
+ </style>
2167
+ <?php } else { ?>
2168
+ <style type="text/css">
2169
+ #flags a.ms { display:none; }
2170
+ </style>
2171
+ <?php }
2172
+
2173
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) { ?>
2174
+ <style type="text/css">
2175
+ #flags a.mt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/malta.png") 0px 0px no-repeat; }
2176
+ </style>
2177
+ <?php } else { ?>
2178
+ <style type="text/css">
2179
+ #flags a.mt { display:none; }
2180
+ </style>
2181
+ <?php }
2182
+
2183
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) { ?>
2184
+ <style type="text/css">
2185
+ #flags a.mr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/marathi.png") 0px 0px no-repeat; }
2186
+ </style>
2187
+ <?php } else { ?>
2188
+ <style type="text/css">
2189
+ #flags a.mr { display:none; }
2190
+ </style>
2191
+ <?php }
2192
+
2193
+ if ( isset ( $get_flag_choices['flag-no'] ) ) { ?>
2194
+ <style type="text/css">
2195
+ #flags a.no { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/norway.png") 0px 0px no-repeat; }
2196
+ </style>
2197
+ <?php } else { ?>
2198
+ <style type="text/css">
2199
+ #flags a.no { display:none; }
2200
+ </style>
2201
+ <?php }
2202
+
2203
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) { ?>
2204
+ <style type="text/css">
2205
+ #flags a.fa { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/iran.png") 0px 0px no-repeat; }
2206
+ </style>
2207
+ <?php } else { ?>
2208
+ <style type="text/css">
2209
+ #flags a.fa { display:none; }
2210
+ </style>
2211
+ <?php }
2212
+
2213
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) { ?>
2214
+ <style type="text/css">
2215
+ #flags a.pl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/poland.png") 0px 0px no-repeat; }
2216
+ </style>
2217
+ <?php } else { ?>
2218
+ <style type="text/css">
2219
+ #flags a.pl { display:none; }
2220
+ </style>
2221
+ <?php }
2222
+
2223
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) { ?>
2224
+ <style type="text/css">
2225
+ #flags a.pt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/portugal.png") 0px 0px no-repeat; }
2226
+ </style>
2227
+ <?php } else { ?>
2228
+ <style type="text/css">
2229
+ #flags a.pt { display:none; }
2230
+ </style>
2231
+ <?php }
2232
+
2233
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) { ?>
2234
+ <style type="text/css">
2235
+ #flags a.ro { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/romania.png") 0px 0px no-repeat; }
2236
+ </style>
2237
+ <?php } else { ?>
2238
+ <style type="text/css">
2239
+ #flags a.ro { display:none; }
2240
+ </style>
2241
+ <?php }
2242
+
2243
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) { ?>
2244
+ <style type="text/css">
2245
+ #flags a.ru { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/russia.png") 0px 0px no-repeat; }
2246
+ </style>
2247
+ <?php } else { ?>
2248
+ <style type="text/css">
2249
+ #flags a.ru { display:none; }
2250
+ </style>
2251
+ <?php }
2252
+
2253
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) { ?>
2254
+ <style type="text/css">
2255
+ #flags a.sr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/serbia.png") 0px 0px no-repeat; }
2256
+ </style>
2257
+ <?php } else { ?>
2258
+ <style type="text/css">
2259
+ #flags a.sr { display:none; }
2260
+ </style>
2261
+ <?php }
2262
+
2263
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) { ?>
2264
+ <style type="text/css">
2265
+ #flags a.sk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/slovakia.png") 0px 0px no-repeat; }
2266
+ </style>
2267
+ <?php } else { ?>
2268
+ <style type="text/css">
2269
+ #flags a.sk { display:none; }
2270
+ </style>
2271
+ <?php }
2272
+
2273
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) { ?>
2274
+ <style type="text/css">
2275
+ #flags a.sv { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/sweden.png") 0px 0px no-repeat; }
2276
+ </style>
2277
+ <?php } else { ?>
2278
+ <style type="text/css">
2279
+ #flags a.sv { display:none; }
2280
+ </style>
2281
+ <?php }
2282
+
2283
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) { ?>
2284
+ <style type="text/css">
2285
+ #flags a.sw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/kenya.png") 0px 0px no-repeat; }
2286
+ </style>
2287
+ <?php } else { ?>
2288
+ <style type="text/css">
2289
+ #flags a.sw { display:none; }
2290
+ </style>
2291
+ <?php }
2292
+
2293
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) { ?>
2294
+ <style type="text/css">
2295
+ #flags a.sl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/slovenia.png") 0px 0px no-repeat; }
2296
+ </style>
2297
+ <?php } else { ?>
2298
+ <style type="text/css">
2299
+ #flags a.sl { display:none; }
2300
+ </style>
2301
+ <?php }
2302
+
2303
+
2304
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) { ?>
2305
+ <style type="text/css">
2306
+ #flags a.ta { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/tamil.png") 0px 0px no-repeat; }
2307
+ </style>
2308
+ <?php } else { ?>
2309
+ <style type="text/css">
2310
+ #flags a.ta { display:none; }
2311
+ </style>
2312
+ <?php }
2313
+
2314
+ if ( isset ( $get_flag_choices['flag-te'] ) ) { ?>
2315
+ <style type="text/css">
2316
+ #flags a.te { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/telugu.png") 0px 0px no-repeat; }
2317
+ </style>
2318
+ <?php } else { ?>
2319
+ <style type="text/css">
2320
+ #flags a.te { display:none; }
2321
+ </style>
2322
+ <?php }
2323
+
2324
+ if ( isset ( $get_flag_choices['flag-th'] ) ) { ?>
2325
+ <style type="text/css">
2326
+ #flags a.th { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/thailand.png") 0px 0px no-repeat; }
2327
+ </style>
2328
+ <?php } else { ?>
2329
+ <style type="text/css">
2330
+ #flags a.th { display:none; }
2331
+ </style>
2332
+ <?php }
2333
+
2334
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) { ?>
2335
+ <style type="text/css">
2336
+ #flags a.tr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/turkey.png") 0px 0px no-repeat; }
2337
+ </style>
2338
+ <?php } else { ?>
2339
+ <style type="text/css">
2340
+ #flags a.tr { display:none; }
2341
+ </style>
2342
+ <?php }
2343
+
2344
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) { ?>
2345
+ <style type="text/css">
2346
+ #flags a.uk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/ukraine.png") 0px 0px no-repeat; }
2347
+ </style>
2348
+ <?php } else { ?>
2349
+ <style type="text/css">
2350
+ #flags a.uk { display:none; }
2351
+ </style>
2352
+ <?php }
2353
+
2354
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) { ?>
2355
+ <style type="text/css">
2356
+ #flags a.ur { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/pakistan.png") 0px 0px no-repeat; }
2357
+ </style>
2358
+ <?php } else { ?>
2359
+ <style type="text/css">
2360
+ #flags a.ur { display:none; }
2361
+ </style>
2362
+ <?php }
2363
+
2364
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) { ?>
2365
+ <style type="text/css">
2366
+ #flags a.vi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/vietnam.png") 0px 0px no-repeat; }
2367
+ </style>
2368
+ <?php } else { ?>
2369
+ <style type="text/css">
2370
+ #flags a.vi { display:none; }
2371
+ </style>
2372
+ <?php }
2373
+
2374
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) { ?>
2375
+ <style type="text/css">
2376
+ #flags a.cy { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/wales.png") 0px 0px no-repeat; }
2377
+ </style>
2378
+ <?php } else { ?>
2379
+ <style type="text/css">
2380
+ #flags a.cy { display:none; }
2381
+ </style>
2382
+ <?php }
2383
+
2384
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) { ?>
2385
+ <style type="text/css">
2386
+ #flags a.yi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/yiddish.png") 0px 0px no-repeat; }
2387
+ </style>
2388
+ <?php } else { ?>
2389
+ <style type="text/css">
2390
+ #flags a.yi { display:none; }
2391
+ </style>
2392
+ <?php }
2393
+ }
2394
+ add_action('wp_head','googlelanguagetranslator_flags_display');
2395
+
2396
  ?>
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.6
8
- stable tag: 2.3
9
 
10
  Welcome to Google Language Tranlator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
@@ -84,6 +84,12 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
84
 
85
  - Added the "Google Language Translator" widget.
86
 
 
 
 
 
 
 
87
  == Screenshots ==
88
 
89
  1. Settings include: inline or vertical layout, hide/show Google toolbar, display specific languages, and show/hide Google branding. Add the shortcode to pages, posts, and widgets.
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.6
8
+ stable tag: 2.4
9
 
10
  Welcome to Google Language Tranlator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
84
 
85
  - Added the "Google Language Translator" widget.
86
 
87
+ - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
88
+
89
+ 2.4
90
+
91
+ - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
92
+
93
  == Screenshots ==
94
 
95
  1. Settings include: inline or vertical layout, hide/show Google toolbar, display specific languages, and show/hide Google branding. Add the shortcode to pages, posts, and widgets.