Google Language Translator - Version 2.5

Version Description

Download this release

Release Info

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

Code changes from version 2.4 to 2.5

Files changed (2) hide show
  1. google-language-translator.php +2397 -2395
  2. readme.txt +7 -1
google-language-translator.php CHANGED
@@ -1,2396 +1,2398 @@
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
  ?>
1
+ <?php
2
+ /*
3
+ Plugin Name: Google Language Translator
4
+ Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 2.5
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?</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,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
+ $defaults = array(
452
+ 'flag-en' => 1
453
+ );
454
+ add_option('flag_display_settings', $defaults);
455
+
456
+ $get_flag_choices = get_option('flag_display_settings');
457
+
458
+ //$get_flag_choices = get_option ('flag_display_settings',array('flag-en' => 1));
459
+
460
+ if (!isset ( $get_flag_choices ['flag-af'] ) ) {
461
+ $get_flag_choices['flag-af'] = 0;
462
+ }
463
+
464
+ if (!isset ( $get_flag_choices ['flag-sq'] ) ) {
465
+ $get_flag_choices['flag-sq'] = 0;
466
+ }
467
+
468
+ if (!isset ( $get_flag_choices ['flag-ar'] ) ) {
469
+ $get_flag_choices['flag-ar'] = 0;
470
+ }
471
+
472
+ if (!isset ( $get_flag_choices ['flag-hy'] ) ) {
473
+ $get_flag_choices['flag-hy'] = 0;
474
+ }
475
+
476
+ if (!isset ( $get_flag_choices ['flag-az'] ) ) {
477
+ $get_flag_choices['flag-az'] = 0;
478
+ }
479
+
480
+ if (!isset ( $get_flag_choices ['flag-eu'] ) ) {
481
+ $get_flag_choices['flag-eu'] = 0;
482
+ }
483
+
484
+ if (!isset ( $get_flag_choices ['flag-be'] ) ) {
485
+ $get_flag_choices['flag-be'] = 0;
486
+ }
487
+
488
+ if (!isset ( $get_flag_choices ['flag-bn'] ) ) {
489
+ $get_flag_choices['flag-bn'] = 0;
490
+ }
491
+
492
+ if (!isset ( $get_flag_choices ['flag-bs'] ) ) {
493
+ $get_flag_choices['flag-bs'] = 0;
494
+ }
495
+
496
+ if (!isset ( $get_flag_choices ['flag-bg'] ) ) {
497
+ $get_flag_choices['flag-bg'] = 0;
498
+ }
499
+
500
+ if (!isset ( $get_flag_choices ['flag-ca'] ) ) {
501
+ $get_flag_choices['flag-ca'] = 0;
502
+ }
503
+
504
+ if (!isset ( $get_flag_choices ['flag-ceb'] ) ) {
505
+ $get_flag_choices['flag-ceb'] = 0;
506
+ }
507
+
508
+ if (!isset ( $get_flag_choices ['flag-zh-CN'] ) ) {
509
+ $get_flag_choices['flag-zh-CN'] = 0;
510
+ }
511
+
512
+ if (!isset ( $get_flag_choices ['flag-zh-TW'] ) ) {
513
+ $get_flag_choices['flag-zh-TW'] = 0;
514
+ }
515
+
516
+ if (!isset ( $get_flag_choices ['flag-hr'] ) ) {
517
+ $get_flag_choices['flag-hr'] = 0;
518
+ }
519
+
520
+ if (!isset ( $get_flag_choices ['flag-cs'] ) ) {
521
+ $get_flag_choices['flag-cs'] = 0;
522
+ }
523
+
524
+ if (!isset ( $get_flag_choices ['flag-da'] ) ) {
525
+ $get_flag_choices['flag-da'] = 0;
526
+ }
527
+
528
+ if (!isset ( $get_flag_choices ['flag-nl'] ) ) {
529
+ $get_flag_choices['flag-nl'] = 0;
530
+ }
531
+
532
+ if (!isset ( $get_flag_choices ['flag-en'] ) ) {
533
+ $get_flag_choices['flag-en'] = 0;
534
+ }
535
+
536
+ if (!isset ( $get_flag_choices ['flag-eo'] ) ) {
537
+ $get_flag_choices['flag-eo'] = 0;
538
+ }
539
+
540
+ if (!isset ( $get_flag_choices ['flag-et'] ) ) {
541
+ $get_flag_choices['flag-et'] = 0;
542
+ }
543
+
544
+ if (!isset ( $get_flag_choices ['flag-tl'] ) ) {
545
+ $get_flag_choices['flag-tl'] = 0;
546
+ }
547
+
548
+ if (!isset ( $get_flag_choices ['flag-fi'] ) ) {
549
+ $get_flag_choices['flag-fi'] = 0;
550
+ }
551
+
552
+ if (!isset ( $get_flag_choices ['flag-fr'] ) ) {
553
+ $get_flag_choices['flag-fr'] = 0;
554
+ }
555
+
556
+ if (!isset ( $get_flag_choices ['flag-gl'] ) ) {
557
+ $get_flag_choices['flag-gl'] = 0;
558
+ }
559
+
560
+ if (!isset ( $get_flag_choices ['flag-ka'] ) ) {
561
+ $get_flag_choices['flag-ka'] = 0;
562
+ }
563
+
564
+ if (!isset ( $get_flag_choices ['flag-de'] ) ) {
565
+ $get_flag_choices['flag-de'] = 0;
566
+ }
567
+
568
+ if (!isset ( $get_flag_choices ['flag-el'] ) ) {
569
+ $get_flag_choices['flag-el'] = 0;
570
+ }
571
+
572
+ if (!isset ( $get_flag_choices ['flag-gu'] ) ) {
573
+ $get_flag_choices['flag-gu'] = 0;
574
+ }
575
+
576
+ if (!isset ( $get_flag_choices ['flag-ht'] ) ) {
577
+ $get_flag_choices['flag-ht'] = 0;
578
+ }
579
+
580
+ if (!isset ( $get_flag_choices ['flag-iw'] ) ) {
581
+ $get_flag_choices['flag-iw'] = 0;
582
+ }
583
+
584
+ if (!isset ( $get_flag_choices ['flag-hi'] ) ) {
585
+ $get_flag_choices['flag-hi'] = 0;
586
+ }
587
+
588
+ if (!isset ( $get_flag_choices ['flag-hmn'] ) ) {
589
+ $get_flag_choices['flag-hmn'] = 0;
590
+ }
591
+
592
+ if (!isset ( $get_flag_choices ['flag-hu'] ) ) {
593
+ $get_flag_choices['flag-hu'] = 0;
594
+ }
595
+
596
+ if (!isset ( $get_flag_choices ['flag-is'] ) ) {
597
+ $get_flag_choices['flag-is'] = 0;
598
+ }
599
+
600
+ if (!isset ( $get_flag_choices ['flag-id'] ) ) {
601
+ $get_flag_choices['flag-id'] = 0;
602
+ }
603
+
604
+ if (!isset ( $get_flag_choices ['flag-ga'] ) ) {
605
+ $get_flag_choices['flag-ga'] = 0;
606
+ }
607
+
608
+ if (!isset ( $get_flag_choices ['flag-it'] ) ) {
609
+ $get_flag_choices['flag-it'] = 0;
610
+ }
611
+
612
+ if (!isset ( $get_flag_choices ['flag-ja'] ) ) {
613
+ $get_flag_choices['flag-ja'] = 0;
614
+ }
615
+
616
+ if (!isset ( $get_flag_choices ['flag-jw'] ) ) {
617
+ $get_flag_choices['flag-jw'] = 0;
618
+ }
619
+
620
+ if (!isset ( $get_flag_choices ['flag-kn'] ) ) {
621
+ $get_flag_choices['flag-kn'] = 0;
622
+ }
623
+
624
+ if (!isset ( $get_flag_choices ['flag-km'] ) ) {
625
+ $get_flag_choices['flag-km'] = 0;
626
+ }
627
+
628
+ if (!isset ( $get_flag_choices ['flag-ko'] ) ) {
629
+ $get_flag_choices['flag-ko'] = 0;
630
+ }
631
+
632
+ if (!isset ( $get_flag_choices ['flag-lo'] ) ) {
633
+ $get_flag_choices['flag-lo'] = 0;
634
+ }
635
+
636
+ if (!isset ( $get_flag_choices ['flag-la'] ) ) {
637
+ $get_flag_choices['flag-la'] = 0;
638
+ }
639
+
640
+ if (!isset ( $get_flag_choices ['flag-lv'] ) ) {
641
+ $get_flag_choices['flag-lv'] = 0;
642
+ }
643
+
644
+ if (!isset ( $get_flag_choices ['flag-lt'] ) ) {
645
+ $get_flag_choices['flag-lt'] = 0;
646
+ }
647
+
648
+ if (!isset ( $get_flag_choices ['flag-mk'] ) ) {
649
+ $get_flag_choices['flag-mk'] = 0;
650
+ }
651
+
652
+ if (!isset ( $get_flag_choices ['flag-ms'] ) ) {
653
+ $get_flag_choices['flag-ms'] = 0;
654
+ }
655
+
656
+ if (!isset ( $get_flag_choices ['flag-mt'] ) ) {
657
+ $get_flag_choices['flag-mt'] = 0;
658
+ }
659
+
660
+ if (!isset ( $get_flag_choices ['flag-mr'] ) ) {
661
+ $get_flag_choices['flag-mr'] = 0;
662
+ }
663
+
664
+ if (!isset ( $get_flag_choices ['flag-no'] ) ) {
665
+ $get_flag_choices['flag-no'] = 0;
666
+ }
667
+
668
+ if (!isset ( $get_flag_choices ['flag-fa'] ) ) {
669
+ $get_flag_choices['flag-fa'] = 0;
670
+ }
671
+
672
+ if (!isset ( $get_flag_choices ['flag-pl'] ) ) {
673
+ $get_flag_choices['flag-pl'] = 0;
674
+ }
675
+
676
+ if (!isset ( $get_flag_choices ['flag-pt'] ) ) {
677
+ $get_flag_choices['flag-pt'] = 0;
678
+ }
679
+
680
+ if (!isset ( $get_flag_choices ['flag-ro'] ) ) {
681
+ $get_flag_choices['flag-ro'] = 0;
682
+ }
683
+
684
+ if (!isset ( $get_flag_choices ['flag-ru'] ) ) {
685
+ $get_flag_choices['flag-ru'] = 0;
686
+ }
687
+
688
+ if (!isset ( $get_flag_choices ['flag-sr'] ) ) {
689
+ $get_flag_choices['flag-sr'] = 0;
690
+ }
691
+
692
+ if (!isset ( $get_flag_choices ['flag-sk'] ) ) {
693
+ $get_flag_choices['flag-sk'] = 0;
694
+ }
695
+
696
+ if (!isset ( $get_flag_choices ['flag-sl'] ) ) {
697
+ $get_flag_choices['flag-sl'] = 0;
698
+ }
699
+
700
+ if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
701
+ $get_flag_choices['flag-es'] = 0;
702
+ }
703
+
704
+ if (!isset ( $get_flag_choices ['flag-sw'] ) ) {
705
+ $get_flag_choices['flag-sw'] = 0;
706
+ }
707
+
708
+ if (!isset ( $get_flag_choices ['flag-sv'] ) ) {
709
+ $get_flag_choices['flag-sv'] = 0;
710
+ }
711
+
712
+ if (!isset ( $get_flag_choices ['flag-ta'] ) ) {
713
+ $get_flag_choices['flag-ta'] = 0;
714
+ }
715
+
716
+ if (!isset ( $get_flag_choices ['flag-te'] ) ) {
717
+ $get_flag_choices['flag-te'] = 0;
718
+ }
719
+
720
+ if (!isset ( $get_flag_choices ['flag-th'] ) ) {
721
+ $get_flag_choices['flag-th'] = 0;
722
+ }
723
+
724
+ if (!isset ( $get_flag_choices ['flag-tr'] ) ) {
725
+ $get_flag_choices['flag-tr'] = 0;
726
+ }
727
+
728
+ if (!isset ( $get_flag_choices ['flag-uk'] ) ) {
729
+ $get_flag_choices['flag-uk'] = 0;
730
+ }
731
+
732
+ if (!isset ( $get_flag_choices ['flag-ur'] ) ) {
733
+ $get_flag_choices['flag-ur'] = 0;
734
+ }
735
+
736
+ if (!isset ( $get_flag_choices ['flag-vi'] ) ) {
737
+ $get_flag_choices['flag-vi'] = 0;
738
+ }
739
+
740
+ if (!isset ( $get_flag_choices ['flag-cy'] ) ) {
741
+ $get_flag_choices['flag-cy'] = 0;
742
+ }
743
+
744
+ if (!isset ( $get_flag_choices ['flag-yi'] ) ) {
745
+ $get_flag_choices['flag-yi'] = 0;
746
+ }
747
+
748
+ ?>
749
+ <div class="flagdisplay" style="width:25%; float:left">
750
+
751
+ <div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?> /> Afrikaans</div>
752
+
753
+
754
+ <div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?> /> Albanian</div>
755
+ <div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?> /> Arabic</div>
756
+ <div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?> /> Armenian</div>
757
+ <div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?> /> Azerbaijani</div>
758
+ <div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?> /> Basque</div>
759
+ <div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?> /> Belarusian</div>
760
+ <div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?> /> Bengali</div>
761
+ <div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?> /> Bosnian</div>
762
+ <div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?> /> Bulgarian</div>
763
+ <div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?> /> Catalan</div>
764
+ <div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?> /> Cebuano</div>
765
+ <div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?> /> Chinese</div>
766
+ <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>
767
+ <div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?> /> Croatian</div>
768
+ <div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?> /> Czech</div>
769
+ <div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?> /> Danish</div>
770
+ <div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?> /> Dutch</div>
771
+ <div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?> /> English</div>
772
+ </div>
773
+
774
+ <div class="flagdisplay" style="width:25%; float:left">
775
+ <div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1"<?php checked( 1,$get_flag_choices['flag-eo']); ?> /> Esperanto</div>
776
+ <div><input type="checkbox" name="flag_display_settings[flag-et]" value="1"<?php checked( 1,$get_flag_choices['flag-et']); ?> /> Estonian</div>
777
+ <div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1"<?php checked( 1,$get_flag_choices['flag-tl']); ?> /> Filipino</div>
778
+ <div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1"<?php checked( 1,$get_flag_choices['flag-fi']); ?> /> Finnish</div>
779
+ <div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1"<?php checked( 1,$get_flag_choices['flag-fr']); ?> /> French</div>
780
+ <div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1"<?php checked( 1,$get_flag_choices['flag-gl']); ?> /> Galician</div>
781
+ <div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1"<?php checked( 1,$get_flag_choices['flag-ka']); ?> /> Georgian</div>
782
+ <div><input type="checkbox" name="flag_display_settings[flag-de]" value="1"<?php checked( 1,$get_flag_choices['flag-de']); ?> /> German</div>
783
+ <div><input type="checkbox" name="flag_display_settings[flag-el]" value="1"<?php checked( 1,$get_flag_choices['flag-el']); ?> /> Greek</div>
784
+ <div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1"<?php checked( 1,$get_flag_choices['flag-gu']); ?> /> Gujarati</div>
785
+ <div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1"<?php checked( 1,$get_flag_choices['flag-ht']); ?> /> Haitian</div>
786
+ <div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1"<?php checked( 1,$get_flag_choices['flag-iw']); ?> /> Hebrew</div>
787
+ <div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1"<?php checked( 1,$get_flag_choices['flag-hi']); ?> /> Hindi</div>
788
+ <div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1"<?php checked( 1,$get_flag_choices['flag-hmn']); ?> /> Hmong</div>
789
+ <div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1"<?php checked( 1,$get_flag_choices['flag-hu']); ?> /> Hungarian</div>
790
+ <div><input type="checkbox" name="flag_display_settings[flag-is]" value="1"<?php checked( 1,$get_flag_choices['flag-is']); ?> /> Icelandic</div>
791
+ <div><input type="checkbox" name="flag_display_settings[flag-id]" value="1"<?php checked( 1,$get_flag_choices['flag-id']); ?> /> Indonesian</div>
792
+ <div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1"<?php checked( 1,$get_flag_choices['flag-ga']); ?> /> Irish</div>
793
+ <div><input type="checkbox" name="flag_display_settings[flag-it]" value="1"<?php checked( 1,$get_flag_choices['flag-it']); ?> /> Italian</div>
794
+ </div>
795
+
796
+ <div class="flagdisplay" style="width:25%; float:left">
797
+ <div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1"<?php checked( 1,$get_flag_choices['flag-ja']); ?> /> Japanese</div>
798
+ <div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1"<?php checked( 1,$get_flag_choices['flag-jw']); ?> /> Javanese</div>
799
+ <div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1"<?php checked( 1,$get_flag_choices['flag-kn']); ?> /> Kannada</div>
800
+ <div><input type="checkbox" name="flag_display_settings[flag-km]" value="1"<?php checked( 1,$get_flag_choices['flag-km']); ?> /> Khmer</div>
801
+ <div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1"<?php checked( 1,$get_flag_choices['flag-ko']); ?> /> Korean</div>
802
+ <div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1"<?php checked( 1,$get_flag_choices['flag-lo']); ?> /> Lao</div>
803
+ <div><input type="checkbox" name="flag_display_settings[flag-la]" value="1"<?php checked( 1,$get_flag_choices['flag-la']); ?> /> Latin</div>
804
+ <div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1"<?php checked( 1,$get_flag_choices['flag-lv']); ?> /> Latvian</div>
805
+ <div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1"<?php checked( 1,$get_flag_choices['flag-lt']); ?> /> Lithuanian</div>
806
+ <div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1"<?php checked( 1,$get_flag_choices['flag-mk']); ?> /> Macedonian</div>
807
+ <div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1"<?php checked( 1,$get_flag_choices['flag-ms']); ?> /> Malay</div>
808
+ <div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1"<?php checked( 1,$get_flag_choices['flag-mt']); ?> /> Maltese</div>
809
+ <div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1"<?php checked( 1,$get_flag_choices['flag-mr']); ?> /> Marathi</div>
810
+ <div><input type="checkbox" name="flag_display_settings[flag-no]" value="1"<?php checked( 1,$get_flag_choices['flag-no']); ?> /> Norwegian</div>
811
+ <div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1"<?php checked( 1,$get_flag_choices['flag-fa']); ?> /> Persian</div>
812
+ <div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1"<?php checked( 1,$get_flag_choices['flag-pl']); ?> /> Polish</div>
813
+ <div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1"<?php checked( 1,$get_flag_choices['flag-pt']); ?> /> Portuguese</div>
814
+ <div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1"<?php checked( 1,$get_flag_choices['flag-ro']); ?> /> Romanian</div>
815
+ <div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1"<?php checked( 1,$get_flag_choices['flag-ru']); ?> /> Russian</div>
816
+ </div>
817
+
818
+ <div class="flagdisplay" style="width:25%; float:left">
819
+ <div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1"<?php checked( 1,$get_flag_choices['flag-sr']); ?> /> Serbian</div>
820
+ <div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1"<?php checked( 1,$get_flag_choices['flag-sk']); ?> /> Slovak</div>
821
+ <div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1"<?php checked( 1,$get_flag_choices['flag-sl']); ?> /> Slovenian</div>
822
+ <div><input type="checkbox" name="flag_display_settings[flag-es]" value="1"<?php checked( 1,$get_flag_choices['flag-es']); ?> /> Spanish</div>
823
+ <div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1"<?php checked( 1,$get_flag_choices['flag-sw']); ?> /> Swahili</div>
824
+ <div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1"<?php checked( 1,$get_flag_choices['flag-sv']); ?> /> Swedish</div>
825
+ <div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1"<?php checked( 1,$get_flag_choices['flag-ta']); ?> /> Tamil</div>
826
+ <div><input type="checkbox" name="flag_display_settings[flag-te]" value="1"<?php checked( 1,$get_flag_choices['flag-te']); ?> /> Telugu</div>
827
+ <div><input type="checkbox" name="flag_display_settings[flag-th]" value="1"<?php checked( 1,$get_flag_choices['flag-th']); ?> /> Thai</div>
828
+ <div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1"<?php checked( 1,$get_flag_choices['flag-tr']); ?> /> Turkish</div>
829
+ <div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1"<?php checked( 1,$get_flag_choices['flag-uk']); ?> /> Ukranian</div>
830
+ <div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1"<?php checked( 1,$get_flag_choices['flag-ur']); ?> /> Urdu</div>
831
+ <div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1"<?php checked( 1,$get_flag_choices['flag-vi']); ?> /> Vietnamese</div>
832
+ <div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1"<?php checked( 1,$get_flag_choices['flag-cy']); ?> /> Welsh</div>
833
+ <div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1"<?php checked( 1,$get_flag_choices['flag-yi']); ?> /> Yiddish</div>
834
+
835
+
836
+ </div>
837
+ <div style="clear:both"></div>
838
+ <?php }
839
+
840
+ function googlelanguagetranslator_translatebox_cb() {
841
+ $options = get_option('googlelanguagetranslator_translatebox'); ?>
842
+
843
+ <select name="googlelanguagetranslator_translatebox" id="googlelanguagetranslator_translatebox" style="width:170px">
844
+ <option value="yes" <?php if($options=='yes'){echo "selected";}?>>Yes, show language box</option>
845
+ <option value="no" <?php if($options=='no'){echo "selected";}?>>No, hide language box</option>
846
+ </select>
847
+ <?php }
848
+
849
+ function googlelanguagetranslator_display_cb() {
850
+ $options = get_option('googlelanguagetranslator_display'); ?>
851
+ <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:170px;">
852
+ <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
853
+ <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
854
+ </select>
855
+ <?php }
856
+
857
+ function googlelanguagetranslator_toolbar_cb() {
858
+ $options = get_option('googlelanguagetranslator_toolbar'); ?>
859
+ <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:170px;">
860
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
861
+ <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
862
+ </select>
863
+ <?php }
864
+
865
+ function googlelanguagetranslator_showbranding_cb() {
866
+ $options = get_option('googlelanguagetranslator_showbranding'); ?>
867
+ <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:170px;">
868
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
869
+ <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
870
+ </select>
871
+ <?php }
872
+
873
+ function googlelanguagetranslator_flags_alignment_cb() {
874
+
875
+
876
+
877
+ $options = get_option('googlelanguagetranslator_flags_alignment','flags_left');
878
+
879
+
880
+
881
+ ?>
882
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="googlelanguagetranslator_flags_alignment" value="flags_left" <?php if($options=='flags_left'){echo "checked";}?>/> Align Left<br/>
883
+ <input type="radio" name="googlelanguagetranslator_flags_alignment" id="googlelanguagetranslator_flags_alignment" value="flags_right" <?php if($options=='flags_right'){echo "checked";}?>/> Align Right
884
+ <?php }
885
+
886
+
887
+
888
+
889
+ } //End initialize_settings()
890
+ add_action('admin_init', 'initialize_settings');
891
+
892
+
893
+ // Functions for frontend display
894
+
895
+ function googlelanguagetranslator_included_languages() {
896
+ if ( get_option('googlelanguagetranslator_language_option')=='specific') {
897
+ $get_language_choices = get_option ('language_display_settings');
898
+ //print_r($get_language_choices);
899
+
900
+ foreach ($get_language_choices as $key=>$value) {
901
+ if($value == 1) {
902
+ $items[] = $key;
903
+ }
904
+ }
905
+ $comma_separated = implode(",",array_values($items));
906
+
907
+ if ( get_option('googlelanguagetranslator_display') == 'Vertical') {
908
+ $lang .= 'includedLanguages:\''.$comma_separated.'\',';
909
+ return $lang;
910
+ } elseif ( get_option('googlelanguagetranslator_display') == 'Horizontal') {
911
+ $lang .= 'includedLanguages:\''.$comma_separated.'\',';
912
+ return $lang;
913
+ }
914
+ }
915
+ }
916
+
917
+ function googlelanguagetranslator_vertical(){
918
+ $language_choices = googlelanguagetranslator_included_languages();
919
+ if(get_option('googlelanguagetranslator_active')==1){
920
+ $get_flag_choices = get_option ('flag_display_settings');
921
+ foreach ($get_flag_choices as $key) {
922
+ //print_r($key);
923
+ }
924
+
925
+
926
+
927
+ $str='<div id="flags">';
928
+
929
+
930
+ if ($key == '1') {
931
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
932
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="flag af"></a>';
933
+ }
934
+
935
+
936
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
937
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="flag sq"></a>';
938
+ }
939
+
940
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
941
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="flag ar"></a>';
942
+ }
943
+
944
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
945
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
946
+ }
947
+
948
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
949
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="flag az"></a>';
950
+ }
951
+
952
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
953
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="flag eu"></a>';
954
+ }
955
+
956
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
957
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="flag be"></a>';
958
+ }
959
+
960
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
961
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="flag bn"></a>';
962
+ }
963
+
964
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
965
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="flag bs"></a>';
966
+ }
967
+
968
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
969
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="flag bg"></a>';
970
+ }
971
+
972
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
973
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="flag ca"></a>';
974
+ }
975
+
976
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
977
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="flag ceb"></a>';
978
+ }
979
+
980
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
981
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="flag zh-CN"></a>';
982
+ }
983
+
984
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
985
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="flag zh-TW"></a>';
986
+ }
987
+
988
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
989
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech Republic" class="flag cs"></a>';
990
+ }
991
+
992
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
993
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="flag hr"></a>';
994
+ }
995
+
996
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
997
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="flag da"></a>';
998
+ }
999
+
1000
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
1001
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Netherlands" class="flag nl"></a>';
1002
+ }
1003
+
1004
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
1005
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="flag en"></a>';
1006
+ }
1007
+
1008
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1009
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="flag eo"></a>';
1010
+ }
1011
+
1012
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
1013
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="flag et"></a>';
1014
+ }
1015
+
1016
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1017
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="flag tl"></a>';
1018
+ }
1019
+
1020
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1021
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="flag fi"></a>';
1022
+ }
1023
+
1024
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1025
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="flag fr"></a>';
1026
+ }
1027
+
1028
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1029
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="flag gl"></a>';
1030
+ }
1031
+
1032
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1033
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="flag ka"></a>';
1034
+ }
1035
+
1036
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
1037
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="flag de"></a>';
1038
+ }
1039
+
1040
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
1041
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="flag el"></a>';
1042
+ }
1043
+
1044
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1045
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="flag gu"></a>';
1046
+ }
1047
+
1048
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1049
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="flag ht"></a>';
1050
+ }
1051
+
1052
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1053
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="flag iw"></a>';
1054
+ }
1055
+
1056
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1057
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="flag hi"></a>';
1058
+ }
1059
+
1060
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1061
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="flag hmn"></a>';
1062
+ }
1063
+
1064
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1065
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="flag hu"></a>';
1066
+ }
1067
+
1068
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
1069
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Iceland" class="flag is"></a>';
1070
+ }
1071
+
1072
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
1073
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="flag id"></a>';
1074
+ }
1075
+
1076
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1077
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="flag ga"></a>';
1078
+ }
1079
+
1080
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
1081
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="flag it"></a>';
1082
+ }
1083
+
1084
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1085
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="flag ja"></a>';
1086
+ }
1087
+
1088
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1089
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="flag jw"></a>';
1090
+ }
1091
+
1092
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1093
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="flag kn"></a>';
1094
+ }
1095
+
1096
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1097
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="flag km"></a>';
1098
+ }
1099
+
1100
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1101
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="flag ko"></a>';
1102
+ }
1103
+
1104
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1105
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="flag lo"></a>';
1106
+ }
1107
+
1108
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1109
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="flag la"></a>';
1110
+ }
1111
+
1112
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1113
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="flag lv"></a>';
1114
+ }
1115
+
1116
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1117
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="flag lt"></a>';
1118
+ }
1119
+
1120
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1121
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="flag mk"></a>';
1122
+ }
1123
+
1124
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1125
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="flag ms"></a>';
1126
+ }
1127
+
1128
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1129
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="flag mt"></a>';
1130
+ }
1131
+
1132
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1133
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="flag mr"></a>';
1134
+ }
1135
+
1136
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1137
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="flag no"></a>';
1138
+ }
1139
+
1140
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1141
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="flag fa"></a>';
1142
+ }
1143
+
1144
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1145
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="flag pl"></a>';
1146
+ }
1147
+
1148
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1149
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="flag pt"></a>';
1150
+ }
1151
+
1152
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1153
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="flag ro"></a>';
1154
+ }
1155
+
1156
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1157
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="flag ru"></a>';
1158
+ }
1159
+
1160
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1161
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="flag sr"></a>';
1162
+ }
1163
+
1164
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1165
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="flag sk"></a>';
1166
+ }
1167
+
1168
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1169
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="flag sl"></a>';
1170
+ }
1171
+
1172
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1173
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="flag es"></a>';
1174
+ }
1175
+
1176
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1177
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="flag sw"></a>';
1178
+ }
1179
+
1180
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1181
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="flag sv"></a>';
1182
+ }
1183
+
1184
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1185
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="flag ta"></a>';
1186
+ }
1187
+
1188
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1189
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="flag te"></a>';
1190
+ }
1191
+
1192
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1193
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="haiT" class="flag th"></a>';
1194
+ }
1195
+
1196
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1197
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="flag tr"></a>';
1198
+ }
1199
+
1200
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1201
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="flag uk"></a>';
1202
+ }
1203
+
1204
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1205
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="flag ur"></a>';
1206
+ }
1207
+
1208
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1209
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="flag vi"></a>';
1210
+ }
1211
+
1212
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1213
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1214
+ }
1215
+
1216
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1217
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="flag cy"></a>';
1218
+ }
1219
+
1220
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1221
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="flag yi"></a>';
1222
+ }
1223
+
1224
+
1225
+ // }
1226
+
1227
+ $str.='<div class="glt-clear"></div>';
1228
+
1229
+ $str.='</div>';
1230
+
1231
+ $str.='<script type="text/javascript">
1232
+ function GoogleLanguageTranslatorInit() {
1233
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.'autoDisplay: false }, \'google_language_translator\');}
1234
+ </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1235
+ <div id="google_language_translator"></div>';
1236
+ return $str;
1237
+ }
1238
+ }
1239
+ }
1240
+
1241
+ function googlelanguagetranslator_horizontal(){
1242
+ $language_choices = googlelanguagetranslator_included_languages();
1243
+ if(get_option('googlelanguagetranslator_active')==1){
1244
+ $get_flag_choices = get_option ('flag_display_settings');
1245
+
1246
+ $str = '<div id="flags">';
1247
+
1248
+ foreach ($get_flag_choices as $key) {
1249
+ //print_r($key);
1250
+ }
1251
+ if ($key == '1') {
1252
+ if ( isset ( $get_flag_choices['flag-af'] ) ) {
1253
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="flag af"></a>';
1254
+ }
1255
+
1256
+
1257
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) {
1258
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="flag sq"></a>';
1259
+ }
1260
+
1261
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) {
1262
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="flag ar"></a>';
1263
+ }
1264
+
1265
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1266
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1267
+ }
1268
+
1269
+ if ( isset ( $get_flag_choices['flag-az'] ) ) {
1270
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|az\'); return false;" title="Azerbaijani" class="flag az"></a>';
1271
+ }
1272
+
1273
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) {
1274
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eu\'); return false;" title="Basque" class="flag eu"></a>';
1275
+ }
1276
+
1277
+ if ( isset ( $get_flag_choices['flag-be'] ) ) {
1278
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|be\'); return false;" title="Belarusian" class="flag be"></a>';
1279
+ }
1280
+
1281
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) {
1282
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bn\'); return false;" title="Bengali" class="flag bn"></a>';
1283
+ }
1284
+
1285
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) {
1286
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bs\'); return false;" title="Bosnian" class="flag bs"></a>';
1287
+ }
1288
+
1289
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) {
1290
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|bg\'); return false;" title="Bulgarian" class="flag bg"></a>';
1291
+ }
1292
+
1293
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) {
1294
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ca\'); return false;" title="Catalan" class="flag ca"></a>';
1295
+ }
1296
+
1297
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) {
1298
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ceb\'); return false;" title="Cebuano" class="flag ceb"></a>';
1299
+ }
1300
+
1301
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
1302
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="flag zh-CN"></a>';
1303
+ }
1304
+
1305
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
1306
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="flag zh-TW"></a>';
1307
+ }
1308
+
1309
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) {
1310
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cs\'); return false;" title="Czech Republic" class="flag cs"></a>';
1311
+ }
1312
+
1313
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) {
1314
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hr\'); return false;" title="Croatian" class="flag hr"></a>';
1315
+ }
1316
+
1317
+ if ( isset ( $get_flag_choices['flag-da'] ) ) {
1318
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|da\'); return false;" title="Danish" class="flag da"></a>';
1319
+ }
1320
+
1321
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) {
1322
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|nl\'); return false;" title="Netherlands" class="flag nl"></a>';
1323
+ }
1324
+
1325
+ if ( isset ( $get_flag_choices['flag-en'] ) ) {
1326
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|en\'); return false;" title="English" class="flag en"></a>';
1327
+ }
1328
+
1329
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) {
1330
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|eo\'); return false;" title="Esperanto" class="flag eo"></a>';
1331
+ }
1332
+
1333
+ if ( isset ( $get_flag_choices['flag-et'] ) ) {
1334
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|et\'); return false;" title="Estonian" class="flag et"></a>';
1335
+ }
1336
+
1337
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) {
1338
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tl\'); return false;" title="Filipino" class="flag tl"></a>';
1339
+ }
1340
+
1341
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) {
1342
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fi\'); return false;" title="Finnish" class="flag fi"></a>';
1343
+ }
1344
+
1345
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) {
1346
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fr\'); return false;" title="French" class="flag fr"></a>';
1347
+ }
1348
+
1349
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) {
1350
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gl\'); return false;" title="Galician" class="flag gl"></a>';
1351
+ }
1352
+
1353
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) {
1354
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ka\'); return false;" title="Georgian" class="flag ka"></a>';
1355
+ }
1356
+
1357
+ if ( isset ( $get_flag_choices['flag-de'] ) ) {
1358
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|de\'); return false;" title="German" class="flag de"></a>';
1359
+ }
1360
+
1361
+ if ( isset ( $get_flag_choices['flag-el'] ) ) {
1362
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|el\'); return false;" title="Greek" class="flag el"></a>';
1363
+ }
1364
+
1365
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) {
1366
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|gu\'); return false;" title="Gujarati" class="flag gu"></a>';
1367
+ }
1368
+
1369
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) {
1370
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ht\'); return false;" title="Haitian" class="flag ht"></a>';
1371
+ }
1372
+
1373
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) {
1374
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|iw\'); return false;" title="Hebrew" class="flag iw"></a>';
1375
+ }
1376
+
1377
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) {
1378
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hi\'); return false;" title="Hindi" class="flag hi"></a>';
1379
+ }
1380
+
1381
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) {
1382
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hmn\'); return false;" title="Hmong" class="flag hmn"></a>';
1383
+ }
1384
+
1385
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) {
1386
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hu\'); return false;" title="Hungarian" class="flag hu"></a>';
1387
+ }
1388
+
1389
+ if ( isset ( $get_flag_choices['flag-is'] ) ) {
1390
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|is\'); return false;" title="Iceland" class="flag is"></a>';
1391
+ }
1392
+
1393
+ if ( isset ( $get_flag_choices['flag-id'] ) ) {
1394
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|id\'); return false;" title="Indonesian" class="flag id"></a>';
1395
+ }
1396
+
1397
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) {
1398
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ga\'); return false;" title="Irish" class="flag ga"></a>';
1399
+ }
1400
+
1401
+ if ( isset ( $get_flag_choices['flag-it'] ) ) {
1402
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|it\'); return false;" title="Italian" class="flag it"></a>';
1403
+ }
1404
+
1405
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) {
1406
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ja\'); return false;" title="Japanese" class="flag ja"></a>';
1407
+ }
1408
+
1409
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) {
1410
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|jw\'); return false;" title="Javanese" class="flag jw"></a>';
1411
+ }
1412
+
1413
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) {
1414
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|kn\'); return false;" title="Kannada" class="flag kn"></a>';
1415
+ }
1416
+
1417
+ if ( isset ( $get_flag_choices['flag-km'] ) ) {
1418
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|km\'); return false;" title="Khmer" class="flag km"></a>';
1419
+ }
1420
+
1421
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) {
1422
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ko\'); return false;" title="Korean" class="flag ko"></a>';
1423
+ }
1424
+
1425
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) {
1426
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lo\'); return false;" title="Lao" class="flag lo"></a>';
1427
+ }
1428
+
1429
+ if ( isset ( $get_flag_choices['flag-la'] ) ) {
1430
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|la\'); return false;" title="Latin" class="flag la"></a>';
1431
+ }
1432
+
1433
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) {
1434
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lv\'); return false;" title="Latvian" class="flag lv"></a>';
1435
+ }
1436
+
1437
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) {
1438
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|lt\'); return false;" title="Lithuanian" class="flag lt"></a>';
1439
+ }
1440
+
1441
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) {
1442
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mk\'); return false;" title="Macedonian" class="flag mk"></a>';
1443
+ }
1444
+
1445
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) {
1446
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ms\'); return false;" title="Malay" class="flag ms"></a>';
1447
+ }
1448
+
1449
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) {
1450
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mt\'); return false;" title="Maltese" class="flag mt"></a>';
1451
+ }
1452
+
1453
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) {
1454
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|mr\'); return false;" title="Marathi" class="flag mr"></a>';
1455
+ }
1456
+
1457
+ if ( isset ( $get_flag_choices['flag-no'] ) ) {
1458
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|no\'); return false;" title="Norwegian" class="flag no"></a>';
1459
+ }
1460
+
1461
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) {
1462
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|fa\'); return false;" title="Persian" class="flag fa"></a>';
1463
+ }
1464
+
1465
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) {
1466
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pl\'); return false;" title="Polish" class="flag pl"></a>';
1467
+ }
1468
+
1469
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) {
1470
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|pt\'); return false;" title="Portuguese" class="flag pt"></a>';
1471
+ }
1472
+
1473
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) {
1474
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ro\'); return false;" title="Romanian" class="flag ro"></a>';
1475
+ }
1476
+
1477
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) {
1478
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ru\'); return false;" title="Russian" class="flag ru"></a>';
1479
+ }
1480
+
1481
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) {
1482
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sr\'); return false;" title="Serbian" class="flag sr"></a>';
1483
+ }
1484
+
1485
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) {
1486
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sk\'); return false;" title="Slovak" class="flag sk"></a>';
1487
+ }
1488
+
1489
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) {
1490
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sl\'); return false;" title="Slovenian" class="flag sl"></a>';
1491
+ }
1492
+
1493
+ if ( isset ( $get_flag_choices['flag-es'] ) ) {
1494
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|es\'); return false;" title="Spanish" class="flag es"></a>';
1495
+ }
1496
+
1497
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) {
1498
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sw\'); return false;" title="Swahili" class="flag sw"></a>';
1499
+ }
1500
+
1501
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) {
1502
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sv\'); return false;" title="Swedish" class="flag sv"></a>';
1503
+ }
1504
+
1505
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) {
1506
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ta\'); return false;" title="Tamil" class="flag ta"></a>';
1507
+ }
1508
+
1509
+ if ( isset ( $get_flag_choices['flag-te'] ) ) {
1510
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|te\'); return false;" title="Telugu" class="flag te"></a>';
1511
+ }
1512
+
1513
+ if ( isset ( $get_flag_choices['flag-th'] ) ) {
1514
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|th\'); return false;" title="haiT" class="flag th"></a>';
1515
+ }
1516
+
1517
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) {
1518
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|tr\'); return false;" title="Turkish" class="flag tr"></a>';
1519
+ }
1520
+
1521
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) {
1522
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|uk\'); return false;" title="Ukranian" class="flag uk"></a>';
1523
+ }
1524
+
1525
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) {
1526
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ur\'); return false;" title="Urdu" class="flag ur"></a>';
1527
+ }
1528
+
1529
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) {
1530
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|vi\'); return false;" title="Vietnamese" class="flag vi"></a>';
1531
+ }
1532
+
1533
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) {
1534
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|hy\'); return false;" title="Armenian" class="flag hy"></a>';
1535
+ }
1536
+
1537
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) {
1538
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|cy\'); return false;" title="Welsh" class="flag cy"></a>';
1539
+ }
1540
+
1541
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) {
1542
+ $str.='<a href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="flag yi"></a>';
1543
+ }
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+ $str.='</div>';
1550
+ $str.='<script type="text/javascript">
1551
+ function GoogleLanguageTranslatorInit() {
1552
+ new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.' layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,autoDisplay: false }, \'google_language_translator\'); }
1553
+ </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1554
+ <div id="google_language_translator"></div>';
1555
+ return $str;
1556
+ }
1557
+ }
1558
+ }
1559
+
1560
+
1561
+ function googlelanguagetranslator_toolbar_yes(){
1562
+ if(get_option('googlelanguagetranslator_active')==1) {
1563
+ $str='<style type="text/css">';
1564
+ $str.='#google_language_translator {color: transparent;}';
1565
+ $str.='.goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}';
1566
+ $str.='.goog-tooltip {display: none !important;}';
1567
+ $str.='.goog-tooltip:hover {display: none !important;}';
1568
+ $str.='.goog-text-highlight {background-color: transparent !important; border: none !important;box-shadow: none !important;}';
1569
+ $str.='</style>';
1570
+ return $str;
1571
+ }
1572
+ }
1573
+
1574
+ function googlelanguagetranslator_toolbar_no(){
1575
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
1576
+ <style type="text/css">
1577
+ .goog-te-banner-frame{visibility:hidden !important;}
1578
+ body {top:0px !important;}
1579
+ </style>
1580
+ <?php
1581
+ }
1582
+ }
1583
+
1584
+
1585
+ function googlelanguagetranslator_showbranding_yes() {
1586
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
1587
+ <style type="text/css">
1588
+ #google_language_translator { width:auto !important; }
1589
+ .goog-te-gadget .goog-te-combo {margin: 4px 0px !important;}
1590
+ .goog-tooltip {display: none !important;}
1591
+ .goog-tooltip:hover {display: none !important;}
1592
+ .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
1593
+ </style>
1594
+ <?php
1595
+ }
1596
+ }
1597
+
1598
+ function googlelanguagetranslator_flags() {
1599
+ if(get_option('googlelanguagetranslator_active') ==1) { ?>
1600
+ <style type="text/css">
1601
+ #flags { display:none; }
1602
+ </style>
1603
+ <?php
1604
+ }
1605
+ }
1606
+
1607
+ function googlelanguagetranslator_translatebox() {
1608
+ if(get_option('googlelanguagetranslator_active') ==1) { ?>
1609
+ <style type="text/css">
1610
+ #google_language_translator { display:none; }
1611
+ </style>
1612
+ <?php
1613
+ }
1614
+ }
1615
+
1616
+ function googlelanguagetranslator_showbranding_no() {
1617
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
1618
+ <style type="text/css">
1619
+ #google_language_translator a {display: none !important; }
1620
+ .goog-te-gadget {color:transparent !important;}
1621
+ .goog-te-gadget { font-size:0px !important; }
1622
+ .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
1623
+ .goog-tooltip {display: none !important;}
1624
+ .goog-tooltip:hover {display: none !important;}
1625
+ .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
1626
+
1627
+ </style>
1628
+ <?php
1629
+ }
1630
+ }
1631
+
1632
+ function googlelanguagetranslator_flags_display() { ?>
1633
+ <style type="text/css">
1634
+ <?php if(get_option('googlelanguagetranslator_display')=='Vertical') { ?>
1635
+ <?php if (get_option('googlelanguagetranslator_language_option')=='specific') { ?>
1636
+ #flags {display:none !important; }
1637
+ <?php } ?>
1638
+ p.hello { font-size:12px; color:darkgray; }
1639
+ <?php } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') { ?>
1640
+ <?php if (get_option('googlelanguagetranslator_language_option')=='specific') { ?>
1641
+ #flags {display:none !important; }
1642
+ <?php } ?>
1643
+ <?php if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') { ?>
1644
+ #google_language_translator { text-align:left !important; }
1645
+ select.goog-te-combo { float:right; }
1646
+ .goog-te-gadget { padding-top:13px; }
1647
+ .goog-te-gadget .goog-te-combo { margin-top:-7px !important; }
1648
+ <?php } ?>
1649
+ .goog-te-gadget { margin-top:2px !important; }
1650
+ p.hello { font-size:12px; color:#666; }
1651
+ <?php } ?>
1652
+ <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
1653
+ #google_language_translator { clear:both; width:auto !important; text-align:right; }
1654
+ #flags { text-align:right; width:150px; float:right; clear:right; }
1655
+ p.hello { text-align:right; float:right; clear:both; color:#666; }
1656
+ .glt-clear { height:0px; clear:both; margin:0px; padding:0px; }
1657
+ <?php } ?>
1658
+ <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') { ?>
1659
+ #google_language_translator { clear:both; }
1660
+ #flags { width:150px; }
1661
+ #flags a { display:inline-block; width:16px; height:12px; margin-right:2px; }
1662
+ p.hello { font-size:12px; color:#666; }
1663
+ <?php } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
1664
+ #flags { width:150px; }
1665
+ #flags a { display:inline-block; width:16px; height:12px; margin-left:2px; } ?>
1666
+ <?php } ?>
1667
+ </style>
1668
+ <?php
1669
+ $get_flag_choices = get_option ('flag_display_settings');
1670
+
1671
+ if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) { ?>
1672
+ <style type="text/css">
1673
+ #flags a.zh-CN { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/china.png") 0px 0px no-repeat; }
1674
+ </style>
1675
+ <?php } else { ?>
1676
+ <style type="text/css">
1677
+ #flags a.zh-CN { display:none; }
1678
+ </style>
1679
+ <?php }
1680
+
1681
+ if ( isset ( $get_flag_choices['flag-de'] ) ) { ?>
1682
+ <style type="text/css">
1683
+ #flags a.de { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/germany.png") 0px 0px no-repeat; }
1684
+ </style>
1685
+ <?php } else { ?>
1686
+ <style type="text/css">
1687
+ #flags a.de { display:none; }
1688
+ </style>
1689
+ <?php }
1690
+
1691
+ if ( isset ( $get_flag_choices['flag-da'] ) ) { ?>
1692
+ <style type="text/css">
1693
+ #flags a.da { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/denmark.png") 0px 0px no-repeat; }
1694
+ </style>
1695
+ <?php } else { ?>
1696
+ <style type="text/css">
1697
+ #flags a.da { display:none; }
1698
+ </style>
1699
+ <?php }
1700
+
1701
+ if ( isset ( $get_flag_choices['flag-fr'] ) ) { ?>
1702
+ <style type="text/css">
1703
+ #flags a.fr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/france.png") 0px 0px no-repeat; }
1704
+ </style>
1705
+ <?php } else { ?>
1706
+ <style type="text/css">
1707
+ #flags a.fr { display:none; }
1708
+ </style>
1709
+ <?php }
1710
+
1711
+ if ( isset ( $get_flag_choices['flag-en'] ) ) { ?>
1712
+ <style type="text/css">
1713
+ #flags a.en { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/united-kingdom.png") 0px 0px no-repeat; }
1714
+ </style>
1715
+ <?php } else { ?>
1716
+ <style type="text/css">
1717
+ #flags a.en { display:none; }
1718
+ </style>
1719
+ <?php }
1720
+
1721
+ if ( isset ( $get_flag_choices['flag-it'] ) ) { ?>
1722
+ <style type="text/css">
1723
+ #flags a.it { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/italy.png") 0px 0px no-repeat; }
1724
+ </style>
1725
+ <?php } else { ?>
1726
+ <style type="text/css">
1727
+ #flags a.it { display:none; }
1728
+ </style>
1729
+ <?php }
1730
+
1731
+ if ( isset ( $get_flag_choices['flag-es'] ) ) { ?>
1732
+ <style type="text/css">
1733
+ #flags a.es { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/spain.png") 0px 0px no-repeat; }
1734
+ </style>
1735
+ <?php } else { ?>
1736
+ <style type="text/css">
1737
+ #flags a.es { display:none; }
1738
+ </style>
1739
+ <?php }
1740
+
1741
+
1742
+
1743
+ if ( isset ( $get_flag_choices['flag-af'] ) ) { ?>
1744
+ <style type="text/css">
1745
+ #flags a.af { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/southafrica.png") 0px 0px no-repeat; }
1746
+ </style>
1747
+ <?php } else { ?>
1748
+ <style type="text/css">
1749
+ #flags a.af { display:none; }
1750
+ </style>
1751
+ <?php }
1752
+
1753
+ if ( isset ( $get_flag_choices['flag-sq'] ) ) { ?>
1754
+ <style type="text/css">
1755
+ #flags a.sq { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/albania.png") 0px 0px no-repeat; }
1756
+ </style>
1757
+ <?php } else { ?>
1758
+ <style type="text/css">
1759
+ #flags a.sq { display:none; }
1760
+ </style>
1761
+ <?php }
1762
+
1763
+ if ( isset ( $get_flag_choices['flag-ar'] ) ) { ?>
1764
+ <style type="text/css">
1765
+ #flags a.ar { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/saudiarabia.png") 0px 0px no-repeat; }
1766
+ </style>
1767
+ <?php } else { ?>
1768
+ <style type="text/css">
1769
+ #flags a.ar { display:none; }
1770
+ </style>
1771
+ <?php }
1772
+
1773
+ if ( isset ( $get_flag_choices['flag-hy'] ) ) { ?>
1774
+ <style type="text/css">
1775
+ #flags a.hy { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/armenia.png") 0px 0px no-repeat; }
1776
+ </style>
1777
+ <?php } else { ?>
1778
+ <style type="text/css">
1779
+ #flags a.hy { display:none; }
1780
+ </style>
1781
+ <?php }
1782
+
1783
+ if ( isset ( $get_flag_choices['flag-az'] ) ) { ?>
1784
+ <style type="text/css">
1785
+ #flags a.az { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/azerbaijan.png") 0px 0px no-repeat; }
1786
+ </style>
1787
+ <?php } else { ?>
1788
+ <style type="text/css">
1789
+ #flags a.az { display:none; }
1790
+ </style>
1791
+ <?php }
1792
+
1793
+ if ( isset ( $get_flag_choices['flag-eu'] ) ) { ?>
1794
+ <style type="text/css">
1795
+ #flags a.eu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/basque.png") 0px 0px no-repeat; }
1796
+ </style>
1797
+ <?php } else { ?>
1798
+ <style type="text/css">
1799
+ #flags a.eu { display:none; }
1800
+ </style>
1801
+ <?php }
1802
+
1803
+ if ( isset ( $get_flag_choices['flag-be'] ) ) { ?>
1804
+ <style type="text/css">
1805
+ #flags a.be { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/belarus.png") 0px 0px no-repeat; }
1806
+ </style>
1807
+ <?php } else { ?>
1808
+ <style type="text/css">
1809
+ #flags a.be { display:none; }
1810
+ </style>
1811
+ <?php }
1812
+
1813
+ if ( isset ( $get_flag_choices['flag-bn'] ) ) { ?>
1814
+ <style type="text/css">
1815
+ #flags a.bn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bangladesh.png") 0px 0px no-repeat; }
1816
+ </style>
1817
+ <?php } else { ?>
1818
+ <style type="text/css">
1819
+ #flags a.bn { display:none; }
1820
+ </style>
1821
+ <?php }
1822
+
1823
+ if ( isset ( $get_flag_choices['flag-bs'] ) ) { ?>
1824
+ <style type="text/css">
1825
+ #flags a.bs { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bosnia.png") 0px 0px no-repeat; }
1826
+ </style>
1827
+ <?php } else { ?>
1828
+ <style type="text/css">
1829
+ #flags a.bs { display:none; }
1830
+ </style>
1831
+ <?php }
1832
+
1833
+ if ( isset ( $get_flag_choices['flag-bg'] ) ) { ?>
1834
+ <style type="text/css">
1835
+ #flags a.bg { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/bulgaria.png") 0px 0px no-repeat; }
1836
+ </style>
1837
+ <?php } else { ?>
1838
+ <style type="text/css">
1839
+ #flags a.bg { display:none; }
1840
+ </style>
1841
+ <?php }
1842
+
1843
+ if ( isset ( $get_flag_choices['flag-ca'] ) ) { ?>
1844
+ <style type="text/css">
1845
+ #flags a.ca { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/spain.png") 0px 0px no-repeat; }
1846
+ </style>
1847
+ <?php } else { ?>
1848
+ <style type="text/css">
1849
+ #flags a.ca { display:none; }
1850
+ </style>
1851
+ <?php }
1852
+
1853
+ if ( isset ( $get_flag_choices['flag-ceb'] ) ) { ?>
1854
+ <style type="text/css">
1855
+ #flags a.ceb { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/philippines.png") 0px 0px no-repeat; }
1856
+ </style>
1857
+ <?php } else { ?>
1858
+ <style type="text/css">
1859
+ #flags a.ceb { display:none; }
1860
+ </style>
1861
+ <?php }
1862
+
1863
+
1864
+
1865
+ if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) { ?>
1866
+ <style type="text/css">
1867
+ #flags a.zh-TW { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/china.png") 0px 0px no-repeat; }
1868
+ </style>
1869
+ <?php } else { ?>
1870
+ <style type="text/css">
1871
+ #flags a.zh-TW { display:none; }
1872
+ </style>
1873
+ <?php }
1874
+
1875
+ if ( isset ( $get_flag_choices['flag-cs'] ) ) { ?>
1876
+ <style type="text/css">
1877
+ #flags a.cs { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/croatia.png") 0px 0px no-repeat; }
1878
+ </style>
1879
+ <?php } else { ?>
1880
+ <style type="text/css">
1881
+ #flags a.cs { display:none; }
1882
+ </style>
1883
+ <?php }
1884
+
1885
+ if ( isset ( $get_flag_choices['flag-hr'] ) ) { ?>
1886
+ <style type="text/css">
1887
+ #flags a.hr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/czechrepublic.png") 0px 0px no-repeat; }
1888
+ </style>
1889
+ <?php } else { ?>
1890
+ <style type="text/css">
1891
+ #flags a.hr { display:none; }
1892
+ </style>
1893
+ <?php }
1894
+
1895
+ if ( isset ( $get_flag_choices['flag-nl'] ) ) { ?>
1896
+ <style type="text/css">
1897
+ #flags a.nl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/netherlands.png") 0px 0px no-repeat; }
1898
+ </style>
1899
+ <?php } else { ?>
1900
+ <style type="text/css">
1901
+ #flags a.nl { display:none; }
1902
+ </style>
1903
+ <?php }
1904
+
1905
+ if ( isset ( $get_flag_choices['flag-eo'] ) ) { ?>
1906
+ <style type="text/css">
1907
+ #flags a.eo { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/esperanto.png") 0px 0px no-repeat; }
1908
+ </style>
1909
+ <?php } else { ?>
1910
+ <style type="text/css">
1911
+ #flags a.eo { display:none; }
1912
+ </style>
1913
+ <?php }
1914
+
1915
+ if ( isset ( $get_flag_choices['flag-et'] ) ) { ?>
1916
+ <style type="text/css">
1917
+ #flags a.et { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/estonia.png") 0px 0px no-repeat; }
1918
+ </style>
1919
+ <?php } else { ?>
1920
+ <style type="text/css">
1921
+ #flags a.et { display:none; }
1922
+ </style>
1923
+ <?php }
1924
+
1925
+ if ( isset ( $get_flag_choices['flag-tl'] ) ) { ?>
1926
+ <style type="text/css">
1927
+ #flags a.tl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/philippines.png") 0px 0px no-repeat; }
1928
+ </style>
1929
+ <?php } else { ?>
1930
+ <style type="text/css">
1931
+ #flags a.tl { display:none; }
1932
+ </style>
1933
+ <?php }
1934
+
1935
+ if ( isset ( $get_flag_choices['flag-fi'] ) ) { ?>
1936
+ <style type="text/css">
1937
+ #flags a.fi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/finland.png") 0px 0px no-repeat; }
1938
+ </style>
1939
+ <?php } else { ?>
1940
+ <style type="text/css">
1941
+ #flags a.fi { display:none; }
1942
+ </style>
1943
+ <?php }
1944
+
1945
+ if ( isset ( $get_flag_choices['flag-gl'] ) ) { ?>
1946
+ <style type="text/css">
1947
+ #flags a.gl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/galicia.png") 0px 0px no-repeat; }
1948
+ </style>
1949
+ <?php } else { ?>
1950
+ <style type="text/css">
1951
+ #flags a.gl { display:none; }
1952
+ </style>
1953
+ <?php }
1954
+
1955
+ if ( isset ( $get_flag_choices['flag-ka'] ) ) { ?>
1956
+ <style type="text/css">
1957
+ #flags a.ka { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/georgia.png") 0px 0px no-repeat; }
1958
+ </style>
1959
+ <?php } else { ?>
1960
+ <style type="text/css">
1961
+ #flags a.ka { display:none; }
1962
+ </style>
1963
+ <?php }
1964
+
1965
+ if ( isset ( $get_flag_choices['flag-el'] ) ) { ?>
1966
+ <style type="text/css">
1967
+ #flags a.el { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/greece.png") 0px 0px no-repeat; }
1968
+ </style>
1969
+ <?php } else { ?>
1970
+ <style type="text/css">
1971
+ #flags a.el { display:none; }
1972
+ </style>
1973
+ <?php }
1974
+
1975
+ if ( isset ( $get_flag_choices['flag-gu'] ) ) { ?>
1976
+ <style type="text/css">
1977
+ #flags a.gu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/india.png") 0px 0px no-repeat; }
1978
+ </style>
1979
+ <?php } else { ?>
1980
+ <style type="text/css">
1981
+ #flags a.gu { display:none; }
1982
+ </style>
1983
+ <?php }
1984
+
1985
+ if ( isset ( $get_flag_choices['flag-ht'] ) ) { ?>
1986
+ <style type="text/css">
1987
+ #flags a.ht { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/haiti.png") 0px 0px no-repeat; }
1988
+ </style>
1989
+ <?php } else { ?>
1990
+ <style type="text/css">
1991
+ #flags a.ht { display:none; }
1992
+ </style>
1993
+ <?php }
1994
+
1995
+ if ( isset ( $get_flag_choices['flag-iw'] ) ) { ?>
1996
+ <style type="text/css">
1997
+ #flags a.iw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/israel.png") 0px 0px no-repeat; }
1998
+ </style>
1999
+ <?php } else { ?>
2000
+ <style type="text/css">
2001
+ #flags a.iw { display:none; }
2002
+ </style>
2003
+ <?php }
2004
+
2005
+ if ( isset ( $get_flag_choices['flag-hi'] ) ) { ?>
2006
+ <style type="text/css">
2007
+ #flags a.hi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/india.png") 0px 0px no-repeat; }
2008
+ </style>
2009
+ <?php } else { ?>
2010
+ <style type="text/css">
2011
+ #flags a.hi { display:none; }
2012
+ </style>
2013
+ <?php }
2014
+
2015
+ if ( isset ( $get_flag_choices['flag-hmn'] ) ) { ?>
2016
+ <style type="text/css">
2017
+ #flags a.hmn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/hmong.png") 0px 0px no-repeat; }
2018
+ </style>
2019
+ <?php } else { ?>
2020
+ <style type="text/css">
2021
+ #flags a.hmn { display:none; }
2022
+ </style>
2023
+ <?php }
2024
+
2025
+ if ( isset ( $get_flag_choices['flag-hu'] ) ) { ?>
2026
+ <style type="text/css">
2027
+ #flags a.hu { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/hungary.png") 0px 0px no-repeat; }
2028
+ </style>
2029
+ <?php } else { ?>
2030
+ <style type="text/css">
2031
+ #flags a.hu { display:none; }
2032
+ </style>
2033
+ <?php }
2034
+
2035
+ if ( isset ( $get_flag_choices['flag-is'] ) ) { ?>
2036
+ <style type="text/css">
2037
+ #flags a.is { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/iceland.png") 0px 0px no-repeat; }
2038
+ </style>
2039
+ <?php } else { ?>
2040
+ <style type="text/css">
2041
+ #flags a.is { display:none; }
2042
+ </style>
2043
+ <?php }
2044
+
2045
+ if ( isset ( $get_flag_choices['flag-id'] ) ) { ?>
2046
+ <style type="text/css">
2047
+ #flags a.id { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/indonesia.png") 0px 0px no-repeat; }
2048
+ </style>
2049
+ <?php } else { ?>
2050
+ <style type="text/css">
2051
+ #flags a.id { display:none; }
2052
+ </style>
2053
+ <?php }
2054
+
2055
+ if ( isset ( $get_flag_choices['flag-ga'] ) ) { ?>
2056
+ <style type="text/css">
2057
+ #flags a.ga { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/ireland.png") 0px 0px no-repeat; }
2058
+ </style>
2059
+ <?php } else { ?>
2060
+ <style type="text/css">
2061
+ #flags a.ga { display:none; }
2062
+ </style>
2063
+ <?php }
2064
+
2065
+ if ( isset ( $get_flag_choices['flag-ja'] ) ) { ?>
2066
+ <style type="text/css">
2067
+ #flags a.ja { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/japan.png") 0px 0px no-repeat; }
2068
+ </style>
2069
+ <?php } else { ?>
2070
+ <style type="text/css">
2071
+ #flags a.ja { display:none; }
2072
+ </style>
2073
+ <?php }
2074
+
2075
+ if ( isset ( $get_flag_choices['flag-jw'] ) ) { ?>
2076
+ <style type="text/css">
2077
+ #flags a.jw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/indonesia.png") 0px 0px no-repeat; }
2078
+ </style>
2079
+ <?php } else { ?>
2080
+ <style type="text/css">
2081
+ #flags a.jw { display:none; }
2082
+ </style>
2083
+ <?php }
2084
+
2085
+ if ( isset ( $get_flag_choices['flag-kn'] ) ) { ?>
2086
+ <style type="text/css">
2087
+ #flags a.kn { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/kannada.png") 0px 0px no-repeat; }
2088
+ </style>
2089
+ <?php } else { ?>
2090
+ <style type="text/css">
2091
+ #flags a.kn { display:none; }
2092
+ </style>
2093
+ <?php }
2094
+
2095
+ if ( isset ( $get_flag_choices['flag-km'] ) ) { ?>
2096
+ <style type="text/css">
2097
+ #flags a.km { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/cambodia.png") 0px 0px no-repeat; }
2098
+ </style>
2099
+ <?php } else { ?>
2100
+ <style type="text/css">
2101
+ #flags a.km { display:none; }
2102
+ </style>
2103
+ <?php }
2104
+
2105
+ if ( isset ( $get_flag_choices['flag-ko'] ) ) { ?>
2106
+ <style type="text/css">
2107
+ #flags a.ko { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/korea.png") 0px 0px no-repeat; }
2108
+ </style>
2109
+ <?php } else { ?>
2110
+ <style type="text/css">
2111
+ #flags a.ko { display:none; }
2112
+ </style>
2113
+ <?php }
2114
+
2115
+ if ( isset ( $get_flag_choices['flag-lo'] ) ) { ?>
2116
+ <style type="text/css">
2117
+ #flags a.lo { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/laos.png") 0px 0px no-repeat; }
2118
+ </style>
2119
+ <?php } else { ?>
2120
+ <style type="text/css">
2121
+ #flags a.lo { display:none; }
2122
+ </style>
2123
+ <?php }
2124
+
2125
+ if ( isset ( $get_flag_choices['flag-la'] ) ) { ?>
2126
+ <style type="text/css">
2127
+ #flags a.la { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/latin.png") 0px 0px no-repeat; }
2128
+ </style>
2129
+ <?php } else { ?>
2130
+ <style type="text/css">
2131
+ #flags a.la { display:none; }
2132
+ </style>
2133
+ <?php }
2134
+
2135
+ if ( isset ( $get_flag_choices['flag-lv'] ) ) { ?>
2136
+ <style type="text/css">
2137
+ #flags a.lv { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/latvia.png") 0px 0px no-repeat; }
2138
+ </style>
2139
+ <?php } else { ?>
2140
+ <style type="text/css">
2141
+ #flags a.lv { display:none; }
2142
+ </style>
2143
+ <?php }
2144
+
2145
+ if ( isset ( $get_flag_choices['flag-lt'] ) ) { ?>
2146
+ <style type="text/css">
2147
+ #flags a.lt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/lithuania.png") 0px 0px no-repeat; }
2148
+ </style>
2149
+ <?php } else { ?>
2150
+ <style type="text/css">
2151
+ #flags a.lt { display:none; }
2152
+ </style>
2153
+ <?php }
2154
+
2155
+ if ( isset ( $get_flag_choices['flag-mk'] ) ) { ?>
2156
+ <style type="text/css">
2157
+ #flags a.mk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/macedonia.png") 0px 0px no-repeat; }
2158
+ </style>
2159
+ <?php } else { ?>
2160
+ <style type="text/css">
2161
+ #flags a.mk { display:none; }
2162
+ </style>
2163
+ <?php }
2164
+
2165
+ if ( isset ( $get_flag_choices['flag-ms'] ) ) { ?>
2166
+ <style type="text/css">
2167
+ #flags a.ms { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/malaysia.png") 0px 0px no-repeat; }
2168
+ </style>
2169
+ <?php } else { ?>
2170
+ <style type="text/css">
2171
+ #flags a.ms { display:none; }
2172
+ </style>
2173
+ <?php }
2174
+
2175
+ if ( isset ( $get_flag_choices['flag-mt'] ) ) { ?>
2176
+ <style type="text/css">
2177
+ #flags a.mt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/malta.png") 0px 0px no-repeat; }
2178
+ </style>
2179
+ <?php } else { ?>
2180
+ <style type="text/css">
2181
+ #flags a.mt { display:none; }
2182
+ </style>
2183
+ <?php }
2184
+
2185
+ if ( isset ( $get_flag_choices['flag-mr'] ) ) { ?>
2186
+ <style type="text/css">
2187
+ #flags a.mr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/marathi.png") 0px 0px no-repeat; }
2188
+ </style>
2189
+ <?php } else { ?>
2190
+ <style type="text/css">
2191
+ #flags a.mr { display:none; }
2192
+ </style>
2193
+ <?php }
2194
+
2195
+ if ( isset ( $get_flag_choices['flag-no'] ) ) { ?>
2196
+ <style type="text/css">
2197
+ #flags a.no { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/norway.png") 0px 0px no-repeat; }
2198
+ </style>
2199
+ <?php } else { ?>
2200
+ <style type="text/css">
2201
+ #flags a.no { display:none; }
2202
+ </style>
2203
+ <?php }
2204
+
2205
+ if ( isset ( $get_flag_choices['flag-fa'] ) ) { ?>
2206
+ <style type="text/css">
2207
+ #flags a.fa { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/iran.png") 0px 0px no-repeat; }
2208
+ </style>
2209
+ <?php } else { ?>
2210
+ <style type="text/css">
2211
+ #flags a.fa { display:none; }
2212
+ </style>
2213
+ <?php }
2214
+
2215
+ if ( isset ( $get_flag_choices['flag-pl'] ) ) { ?>
2216
+ <style type="text/css">
2217
+ #flags a.pl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/poland.png") 0px 0px no-repeat; }
2218
+ </style>
2219
+ <?php } else { ?>
2220
+ <style type="text/css">
2221
+ #flags a.pl { display:none; }
2222
+ </style>
2223
+ <?php }
2224
+
2225
+ if ( isset ( $get_flag_choices['flag-pt'] ) ) { ?>
2226
+ <style type="text/css">
2227
+ #flags a.pt { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/portugal.png") 0px 0px no-repeat; }
2228
+ </style>
2229
+ <?php } else { ?>
2230
+ <style type="text/css">
2231
+ #flags a.pt { display:none; }
2232
+ </style>
2233
+ <?php }
2234
+
2235
+ if ( isset ( $get_flag_choices['flag-ro'] ) ) { ?>
2236
+ <style type="text/css">
2237
+ #flags a.ro { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/romania.png") 0px 0px no-repeat; }
2238
+ </style>
2239
+ <?php } else { ?>
2240
+ <style type="text/css">
2241
+ #flags a.ro { display:none; }
2242
+ </style>
2243
+ <?php }
2244
+
2245
+ if ( isset ( $get_flag_choices['flag-ru'] ) ) { ?>
2246
+ <style type="text/css">
2247
+ #flags a.ru { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/russia.png") 0px 0px no-repeat; }
2248
+ </style>
2249
+ <?php } else { ?>
2250
+ <style type="text/css">
2251
+ #flags a.ru { display:none; }
2252
+ </style>
2253
+ <?php }
2254
+
2255
+ if ( isset ( $get_flag_choices['flag-sr'] ) ) { ?>
2256
+ <style type="text/css">
2257
+ #flags a.sr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/serbia.png") 0px 0px no-repeat; }
2258
+ </style>
2259
+ <?php } else { ?>
2260
+ <style type="text/css">
2261
+ #flags a.sr { display:none; }
2262
+ </style>
2263
+ <?php }
2264
+
2265
+ if ( isset ( $get_flag_choices['flag-sk'] ) ) { ?>
2266
+ <style type="text/css">
2267
+ #flags a.sk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/slovakia.png") 0px 0px no-repeat; }
2268
+ </style>
2269
+ <?php } else { ?>
2270
+ <style type="text/css">
2271
+ #flags a.sk { display:none; }
2272
+ </style>
2273
+ <?php }
2274
+
2275
+ if ( isset ( $get_flag_choices['flag-sv'] ) ) { ?>
2276
+ <style type="text/css">
2277
+ #flags a.sv { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/sweden.png") 0px 0px no-repeat; }
2278
+ </style>
2279
+ <?php } else { ?>
2280
+ <style type="text/css">
2281
+ #flags a.sv { display:none; }
2282
+ </style>
2283
+ <?php }
2284
+
2285
+ if ( isset ( $get_flag_choices['flag-sw'] ) ) { ?>
2286
+ <style type="text/css">
2287
+ #flags a.sw { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/kenya.png") 0px 0px no-repeat; }
2288
+ </style>
2289
+ <?php } else { ?>
2290
+ <style type="text/css">
2291
+ #flags a.sw { display:none; }
2292
+ </style>
2293
+ <?php }
2294
+
2295
+ if ( isset ( $get_flag_choices['flag-sl'] ) ) { ?>
2296
+ <style type="text/css">
2297
+ #flags a.sl { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/slovenia.png") 0px 0px no-repeat; }
2298
+ </style>
2299
+ <?php } else { ?>
2300
+ <style type="text/css">
2301
+ #flags a.sl { display:none; }
2302
+ </style>
2303
+ <?php }
2304
+
2305
+
2306
+ if ( isset ( $get_flag_choices['flag-ta'] ) ) { ?>
2307
+ <style type="text/css">
2308
+ #flags a.ta { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/tamil.png") 0px 0px no-repeat; }
2309
+ </style>
2310
+ <?php } else { ?>
2311
+ <style type="text/css">
2312
+ #flags a.ta { display:none; }
2313
+ </style>
2314
+ <?php }
2315
+
2316
+ if ( isset ( $get_flag_choices['flag-te'] ) ) { ?>
2317
+ <style type="text/css">
2318
+ #flags a.te { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/telugu.png") 0px 0px no-repeat; }
2319
+ </style>
2320
+ <?php } else { ?>
2321
+ <style type="text/css">
2322
+ #flags a.te { display:none; }
2323
+ </style>
2324
+ <?php }
2325
+
2326
+ if ( isset ( $get_flag_choices['flag-th'] ) ) { ?>
2327
+ <style type="text/css">
2328
+ #flags a.th { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/thailand.png") 0px 0px no-repeat; }
2329
+ </style>
2330
+ <?php } else { ?>
2331
+ <style type="text/css">
2332
+ #flags a.th { display:none; }
2333
+ </style>
2334
+ <?php }
2335
+
2336
+ if ( isset ( $get_flag_choices['flag-tr'] ) ) { ?>
2337
+ <style type="text/css">
2338
+ #flags a.tr { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/turkey.png") 0px 0px no-repeat; }
2339
+ </style>
2340
+ <?php } else { ?>
2341
+ <style type="text/css">
2342
+ #flags a.tr { display:none; }
2343
+ </style>
2344
+ <?php }
2345
+
2346
+ if ( isset ( $get_flag_choices['flag-uk'] ) ) { ?>
2347
+ <style type="text/css">
2348
+ #flags a.uk { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/ukraine.png") 0px 0px no-repeat; }
2349
+ </style>
2350
+ <?php } else { ?>
2351
+ <style type="text/css">
2352
+ #flags a.uk { display:none; }
2353
+ </style>
2354
+ <?php }
2355
+
2356
+ if ( isset ( $get_flag_choices['flag-ur'] ) ) { ?>
2357
+ <style type="text/css">
2358
+ #flags a.ur { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/pakistan.png") 0px 0px no-repeat; }
2359
+ </style>
2360
+ <?php } else { ?>
2361
+ <style type="text/css">
2362
+ #flags a.ur { display:none; }
2363
+ </style>
2364
+ <?php }
2365
+
2366
+ if ( isset ( $get_flag_choices['flag-vi'] ) ) { ?>
2367
+ <style type="text/css">
2368
+ #flags a.vi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/vietnam.png") 0px 0px no-repeat; }
2369
+ </style>
2370
+ <?php } else { ?>
2371
+ <style type="text/css">
2372
+ #flags a.vi { display:none; }
2373
+ </style>
2374
+ <?php }
2375
+
2376
+ if ( isset ( $get_flag_choices['flag-cy'] ) ) { ?>
2377
+ <style type="text/css">
2378
+ #flags a.cy { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/wales.png") 0px 0px no-repeat; }
2379
+ </style>
2380
+ <?php } else { ?>
2381
+ <style type="text/css">
2382
+ #flags a.cy { display:none; }
2383
+ </style>
2384
+ <?php }
2385
+
2386
+ if ( isset ( $get_flag_choices['flag-yi'] ) ) { ?>
2387
+ <style type="text/css">
2388
+ #flags a.yi { background:url("<?php echo plugins_url(); ?>/google-language-translator/images/yiddish.png") 0px 0px no-repeat; }
2389
+ </style>
2390
+ <?php } else { ?>
2391
+ <style type="text/css">
2392
+ #flags a.yi { display:none; }
2393
+ </style>
2394
+ <?php }
2395
+ }
2396
+ add_action('wp_head','googlelanguagetranslator_flags_display');
2397
+
2398
  ?>
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.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
 
@@ -90,6 +90,12 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
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.
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.5
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
 
90
 
91
  - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
92
 
93
+ 2.5
94
+
95
+ - Eliminated an internal Wordpress error being generated from a coding mistake.
96
+
97
+ - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
98
+
99
  == Screenshots ==
100
 
101
  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.