Version Description
Download this release
Release Info
| Developer | rm2773 |
| Plugin | |
| Version | 1.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3 to 1.4
- google-language-translator.php +274 -254
- readme.txt +4 -2
google-language-translator.php
CHANGED
|
@@ -1,266 +1,286 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
|
| 4 |
/*
|
| 5 |
-
|
| 6 |
Plugin Name: Google Language Translator
|
| 7 |
-
|
| 8 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
| 9 |
-
|
| 10 |
-
Version: 1.
|
| 11 |
-
Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Setting options include: layout style, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
|
| 12 |
|
| 13 |
Author: Rob Myrick
|
| 14 |
-
|
| 15 |
-
Author URI: http://www.studio88design.com/
|
| 16 |
|
| 17 |
*/
|
| 18 |
|
| 19 |
-
|
| 20 |
add_filter('widget_text', 'do_shortcode');
|
| 21 |
-
|
| 22 |
-
add_action('admin_menu', 'googlelanguagetranslator_menu_options');
|
| 23 |
-
|
| 24 |
-
add_option("googlelanguagetranslator_active","0");
|
| 25 |
-
|
| 26 |
-
add_shortcode( 'google-translator', 'google_translator_shortcode');
|
| 27 |
-
|
| 28 |
-
function google_translator_shortcode() {
|
| 29 |
-
if (get_option('googlelanguagetranslator_display')=='Vertical'){
|
| 30 |
-
return googlelanguagetranslator_vertical();
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
|
| 34 |
-
return googlelanguagetranslator_horizontal();
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
if (get_option('googlelanguagetranslator_toolbar')=='Yes'){
|
| 38 |
-
return googlelanguagetranslator_toolbar_yes();
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
elseif(get_option('googlelanguagetranslator_toolbar')=='No'){
|
| 42 |
-
return googlelanguagetranslator_toolbar_no();
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
<
|
| 108 |
-
<
|
| 109 |
-
<
|
| 110 |
-
</
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
<
|
| 119 |
-
<
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
<
|
| 177 |
-
<
|
| 178 |
-
</
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
</
|
| 182 |
-
</div></div>
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
}
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
}
|
| 265 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
?>
|
| 1 |
<?php
|
| 2 |
|
| 3 |
+
|
| 4 |
/*
|
| 5 |
+
|
| 6 |
Plugin Name: Google Language Translator
|
| 7 |
+
|
| 8 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
| 9 |
+
|
| 10 |
+
Version: 1.4
|
| 11 |
+
Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Setting options include: layout style, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
|
| 12 |
|
| 13 |
Author: Rob Myrick
|
| 14 |
+
|
| 15 |
+
Author URI: http://www.studio88design.com/
|
| 16 |
|
| 17 |
*/
|
| 18 |
|
| 19 |
+
|
| 20 |
add_filter('widget_text', 'do_shortcode');
|
| 21 |
+
|
| 22 |
+
add_action('admin_menu', 'googlelanguagetranslator_menu_options');
|
| 23 |
+
|
| 24 |
+
add_option("googlelanguagetranslator_active","0");
|
| 25 |
+
|
| 26 |
+
add_shortcode( 'google-translator', 'google_translator_shortcode');
|
| 27 |
+
|
| 28 |
+
function google_translator_shortcode() {
|
| 29 |
+
if (get_option('googlelanguagetranslator_display')=='Vertical'){
|
| 30 |
+
return googlelanguagetranslator_vertical();
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
|
| 34 |
+
return googlelanguagetranslator_horizontal();
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
if (get_option('googlelanguagetranslator_toolbar')=='Yes'){
|
| 38 |
+
return googlelanguagetranslator_toolbar_yes();
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
elseif(get_option('googlelanguagetranslator_toolbar')=='No'){
|
| 42 |
+
return googlelanguagetranslator_toolbar_no();
|
| 43 |
+
add_action ('wp_head','googlelanguagetranslator_toolbar_no');
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
if (get_option('googlelanguagetranslator_showbranding')=='Yes'){
|
| 47 |
+
return googlelanguagetranslator_showbranding_yes();
|
| 48 |
+
add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
elseif(get_option('googlelanguagetranslator_showbranding')=='No'){
|
| 52 |
+
return googlelanguagetranslator_showbranding_no();
|
| 53 |
+
add_action ('wp_head','googlelanguagetranslator_showbranding_no');
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
if (get_option('googlelanguagetranslator_toolbar')=='Yes') {
|
| 60 |
+
add_action ('wp_head','googlelanguagetranslator_toolbar_yes');
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
if (get_option('googlelanguagetranslator_toolbar')=='No') {
|
| 64 |
+
add_action ('wp_head','googlelanguagetranslator_toolbar_no');
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
|
| 68 |
+
add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
if (get_option('googlelanguagetranslator_showbranding')=='No') {
|
| 72 |
+
add_action ('wp_head','googlelanguagetranslator_showbranding_no');
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
function googlelanguagetranslator_menu_options(){
|
| 76 |
+
add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'googlelanguagetranslator-menu-options', 'googlelanguagetranslator_menu');
|
| 77 |
+
|
| 78 |
+
if(isset($_POST['googlelanguagetranslator_update_options'])){
|
| 79 |
+
update_option('googlelanguagetranslator_display',$_POST['googlelanguagetranslator_display']);
|
| 80 |
+
update_option('googlelanguagetranslator_toolbar',$_POST['googlelanguagetranslator_toolbar']);
|
| 81 |
+
update_option('googlelanguagetranslator_showbranding',$_POST['googlelanguagetranslator_showbranding']);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
function googlelanguagetranslator_menu(){
|
| 87 |
+
if (!current_user_can('manage_options')) {
|
| 88 |
+
wp_die( __('You do not have sufficient permissions to access this page.') );
|
| 89 |
+
}
|
| 90 |
+
?>
|
| 91 |
+
<div class="wrap" style="width:65%">
|
| 92 |
+
<div id="icon-options-general" class="icon32"></div>
|
| 93 |
+
<h2>Google Language Translator</h2>
|
| 94 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar" >
|
| 95 |
+
<div class="postbox" style="width: 100%">
|
| 96 |
+
<h3>Settings</h3>
|
| 97 |
+
<form method="post" action="options.php">
|
| 98 |
+
<?php wp_nonce_field('update-options');?>
|
| 99 |
+
<table width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
|
| 100 |
+
<tr>
|
| 101 |
+
<td>Plugin Status:</td>
|
| 102 |
+
<td><input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" <?php if(get_option('googlelanguagetranslator_active')==1){echo "checked";}?> />
|
| 103 |
+
Click Here to Activate Google Language Translator</td>
|
| 104 |
+
</tr>
|
| 105 |
+
|
| 106 |
+
<tr>
|
| 107 |
+
<td width="25%">Display options:</td>
|
| 108 |
+
<td width="75%">
|
| 109 |
+
<select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:100px;">
|
| 110 |
+
<option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
|
| 111 |
+
<option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
|
| 112 |
+
</select> </td>
|
| 113 |
+
</tr>
|
| 114 |
+
|
| 115 |
+
<tr>
|
| 116 |
+
<td width="25%">Show Google Toolbar?</td>
|
| 117 |
+
<td width="75%">
|
| 118 |
+
<select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:100px;">
|
| 119 |
+
<option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
|
| 120 |
+
<option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
|
| 121 |
+
</select> </td>
|
| 122 |
+
</tr>
|
| 123 |
+
|
| 124 |
+
<tr>
|
| 125 |
+
<td width="25%">Show Google Branding?</td>
|
| 126 |
+
<td width="75%">
|
| 127 |
+
<select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:100px;">
|
| 128 |
+
<option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
|
| 129 |
+
<option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
|
| 130 |
+
</select> </td>
|
| 131 |
+
</tr>
|
| 132 |
+
|
| 133 |
+
<tr>
|
| 134 |
+
<td> </td>
|
| 135 |
+
<td><input type="submit" class="button-primary" value="<?php _e('Update Option')?>" name="googlelanguagetranslator_update_options" /></td>
|
| 136 |
+
</tr>
|
| 137 |
+
<tr>
|
| 138 |
+
<td> </td>
|
| 139 |
+
<td> </td>
|
| 140 |
+
</tr>
|
| 141 |
+
|
| 142 |
+
<tr>
|
| 143 |
+
<td width="25%">Copy/Paste This Shortcode:</td>
|
| 144 |
+
<td width="75%">
|
| 145 |
+
[google-translator]
|
| 146 |
+
</td>
|
| 147 |
+
</tr>
|
| 148 |
+
|
| 149 |
+
</table>
|
| 150 |
+
<input type="hidden" name="action" value="update" />
|
| 151 |
+
<input type="hidden" name="page_options" value="googlelanguagetranslator_active" />
|
| 152 |
+
</form>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<div id="poststuff" class="metabox-holder" style="float: left; width: 48%;">
|
| 157 |
+
<div class="postbox">
|
| 158 |
+
<h3>Another Plugin You Might Like:</h3>
|
| 159 |
+
<table class="form-table" width="100%">
|
| 160 |
+
<tr><td align="left" valign="top">
|
| 161 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="4">
|
| 162 |
+
|
| 163 |
+
<tr>
|
| 164 |
+
<td>
|
| 165 |
+
<div>
|
| 166 |
+
<div>
|
| 167 |
+
<div>
|
| 168 |
+
<a href="http://wordpress.org/extend/plugins/malware-finder/" target="_blank">Malware Finder</a>
|
| 169 |
+
This plugin enables you to look inside all your WordPress files at once to find malicious code.<br>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
</td>
|
| 174 |
+
</tr>
|
| 175 |
+
|
| 176 |
+
<tr>
|
| 177 |
+
<td><strong>You can also download this plugin at <a href="http://www.studio88design.com" target="_blank">www.studio88design.com</a></strong></td>
|
| 178 |
+
</tr>
|
| 179 |
+
</table>
|
| 180 |
+
</td>
|
| 181 |
+
</tr>
|
| 182 |
+
</table></div></div>
|
| 183 |
+
<div id="poststuff" class="metabox-holder" style="float: right; width: 48%;">
|
| 184 |
+
<div class="postbox">
|
| 185 |
+
<h3>Please Consider A Donation</h3>
|
| 186 |
+
<div class="inside">
|
| 187 |
+
If you like this plugin and find it useful, help keep this plugin actively developed by clicking the donate button <br /><br />
|
| 188 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
| 189 |
+
<input type="hidden" name="cmd" value="_donations">
|
| 190 |
+
<input type="hidden" name="business" value="robertmyrick@hotmail.com">
|
| 191 |
+
<input type="hidden" name="lc" value="US">
|
| 192 |
+
<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!">
|
| 193 |
+
<input type="hidden" name="no_note" value="0">
|
| 194 |
+
<input type="hidden" name="currency_code" value="USD">
|
| 195 |
+
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
|
| 196 |
+
<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!">
|
| 197 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
| 198 |
+
</form>
|
| 199 |
+
|
| 200 |
+
<br /><br />
|
| 201 |
+
</div>
|
| 202 |
+
</div></div>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<?php
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
function googlelanguagetranslator_vertical(){
|
| 209 |
+
if(get_option('googlelanguagetranslator_active')==1){
|
| 210 |
+
$str.='<div id="google_translate_element"></div><script>
|
| 211 |
+
function googleTranslateElementInit() {
|
| 212 |
+
new google.translate.TranslateElement({
|
| 213 |
+
pageLanguage: \'en\'
|
| 214 |
+
}, \'google_translate_element\');
|
| 215 |
+
}
|
| 216 |
+
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
|
| 217 |
+
return '<div>'.$str.'</div>';
|
| 218 |
+
}
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
function googlelanguagetranslator_horizontal(){
|
| 222 |
+
if(get_option('googlelanguagetranslator_active')==1){
|
| 223 |
+
$str.='<div id="google_translate_element"></div><script>
|
| 224 |
+
function googleTranslateElementInit() {
|
| 225 |
+
new google.translate.TranslateElement({
|
| 226 |
+
pageLanguage: \'en\', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL
|
| 227 |
+
}, \'google_translate_element\');
|
| 228 |
+
}
|
| 229 |
+
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
|
| 230 |
+
return '<div>'.$str.'</div>';
|
| 231 |
+
}
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
function googlelanguagetranslator_toolbar_yes(){
|
| 235 |
+
if(get_option('googlelanguagetranslator_active')==1) { ?>
|
| 236 |
+
<style type="text/css">
|
| 237 |
+
#google_translate_element {color: transparent;}
|
| 238 |
+
.goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
|
| 239 |
+
.goog-tooltip {display: none !important;}
|
| 240 |
+
.goog-tooltip:hover {display: none !important;}
|
| 241 |
+
.goog-text-highlight {background-color: transparent !important; border: none !important;box-shadow: none !important;}
|
| 242 |
+
</style>
|
| 243 |
+
<?php
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
function googlelanguagetranslator_toolbar_no(){
|
| 248 |
+
if(get_option('googlelanguagetranslator_active')==1) { ?>
|
| 249 |
+
<style type="text/css">
|
| 250 |
+
.goog-te-banner-frame{visibility:hidden !important;}
|
| 251 |
+
body {top:0px !important;}
|
| 252 |
+
</style>
|
| 253 |
+
<?php
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
function googlelanguagetranslator_showbranding_yes() {
|
| 259 |
+
if(get_option('googlelanguagetranslator_active')==1) { ?>
|
| 260 |
+
<style type="text/css">
|
| 261 |
+
.goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
|
| 262 |
+
.goog-tooltip {display: none !important;}
|
| 263 |
+
.goog-tooltip:hover {display: none !important;}
|
| 264 |
+
.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
|
| 265 |
+
</style>
|
| 266 |
+
<?php
|
| 267 |
+
}
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
function googlelanguagetranslator_showbranding_no() {
|
| 273 |
+
if(get_option('googlelanguagetranslator_active')==1) { ?>
|
| 274 |
+
<style type="text/css">
|
| 275 |
+
#google_translate_element a {display: none !important;}
|
| 276 |
+
.goog-te-gadget {color:transparent !important;}
|
| 277 |
+
.goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
|
| 278 |
+
.goog-tooltip {display: none !important;}
|
| 279 |
+
.goog-tooltip:hover {display: none !important;}
|
| 280 |
+
.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
|
| 281 |
+
</style>
|
| 282 |
+
<?php
|
| 283 |
+
}
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
?>
|
readme.txt
CHANGED
|
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=c6aycTLE
|
|
| 4 |
Plugin link: http://www.studio88design.com/plugins/google-language-translator
|
| 5 |
Tags: language translator, language translate, google language translator, translation, translate, multi language
|
| 6 |
Requires at least: 2.9
|
| 7 |
-
Tested up to: 3.
|
| 8 |
-
stable tag: 1.
|
| 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 |
|
|
@@ -32,6 +32,8 @@ Settings include: inline or vertical layout, hide/show Google toolbar, and hide/
|
|
| 32 |
|
| 33 |
1.3 HTML display problem in the sidebar area now fixed. Previously, inserting the [google-translator] plugin into a text widget caused it to display above the widget, instead of inside of it.
|
| 34 |
|
|
|
|
|
|
|
| 35 |
== Screenshots ==
|
| 36 |
|
| 37 |
1. Settings include: inline or vertical layout, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
|
| 4 |
Plugin link: http://www.studio88design.com/plugins/google-language-translator
|
| 5 |
Tags: language translator, language translate, google language translator, translation, translate, multi language
|
| 6 |
Requires at least: 2.9
|
| 7 |
+
Tested up to: 3.51
|
| 8 |
+
stable tag: 1.4
|
| 9 |
|
| 10 |
Welcome to Google Language Tranlator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
|
| 11 |
|
| 32 |
|
| 33 |
1.3 HTML display problem in the sidebar area now fixed. Previously, inserting the [google-translator] plugin into a text widget caused it to display above the widget, instead of inside of it.
|
| 34 |
|
| 35 |
+
1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
|
| 36 |
+
|
| 37 |
== Screenshots ==
|
| 38 |
|
| 39 |
1. Settings include: inline or vertical layout, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
|
