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