google-language-translator
Last commit date
css
12 years ago
images
12 years ago
admin.js
12 years ago
flags.js
12 years ago
glt_activate.php
12 years ago
glt_css.php
12 years ago
glt_horizontal.php
12 years ago
glt_scripts.php
12 years ago
glt_settings_display.php
12 years ago
glt_settings_init.php
12 years ago
glt_vertical.php
12 years ago
glt_widget.php
12 years ago
google-language-translator.php
12 years ago
readme.txt
12 years ago
glt_css.php
102 lines
| 1 | <style type="text/css"> |
| 2 | <?php |
| 3 | |
| 4 | $glt_css = get_option("googlelanguagetranslator_css"); |
| 5 | echo $glt_css; |
| 6 | |
| 7 | if (get_option('googlelanguagetranslator_flags') == 'show_flags') { |
| 8 | |
| 9 | if(get_option('googlelanguagetranslator_display')=='Vertical') { |
| 10 | if (get_option('googlelanguagetranslator_language_option')=='specific') { |
| 11 | echo '#flags {display:none !important; }'; |
| 12 | } |
| 13 | |
| 14 | echo 'p.hello { font-size:12px; color:darkgray; }'; |
| 15 | echo '#google_language_translator, #flags { text-align:left; }'; |
| 16 | } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') { |
| 17 | |
| 18 | if (get_option('googlelanguagetranslator_language_option')=='specific') { |
| 19 | echo '#flags {display:none !important; }'; |
| 20 | } |
| 21 | |
| 22 | if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') { |
| 23 | echo '#google_language_translator { text-align:left !important; }'; |
| 24 | echo 'select.goog-te-combo { float:right; }'; |
| 25 | echo '.goog-te-gadget { padding-top:13px; }'; |
| 26 | echo '.goog-te-gadget .goog-te-combo { margin-top:-7px !important; }'; |
| 27 | } |
| 28 | |
| 29 | echo '.goog-te-gadget { margin-top:2px !important; }'; |
| 30 | echo 'p.hello { font-size:12px; color:#666; }'; |
| 31 | } |
| 32 | |
| 33 | if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { |
| 34 | echo '#google_language_translator, #language { clear:both; width:auto !important; text-align:right; }'; |
| 35 | echo '#language { float:right; }'; |
| 36 | echo '#flags { text-align:right; width:165px; float:right; clear:right; }'; |
| 37 | echo 'p.hello { text-align:right; float:right; clear:both; }'; |
| 38 | echo '.glt-clear { height:0px; clear:both; margin:0px; padding:0px; }'; |
| 39 | } |
| 40 | |
| 41 | if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') { |
| 42 | echo '#google_language_translator { clear:both; }'; |
| 43 | echo '#flags { width:165px; }'; |
| 44 | echo '#flags a { display:inline-block; margin-right:2px; }'; |
| 45 | } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { |
| 46 | echo '#flags { width:165px; }'; |
| 47 | echo '#flags a { display:inline-block; margin-left:2px; }'; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | if (get_option('googlelanguagetranslator_manage_translations') == 0) { |
| 52 | if(get_option('googlelanguagetranslator_active')==1) { |
| 53 | echo '.goog-tooltip {display: none !important;}'; |
| 54 | echo '.goog-tooltip:hover {display: none !important;}'; |
| 55 | echo '.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}'; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | if (get_option('googlelanguagetranslator_showbranding')=='Yes') { |
| 60 | if(get_option('googlelanguagetranslator_active')==1) { |
| 61 | echo '#google_language_translator { width:auto !important; }'; |
| 62 | } |
| 63 | |
| 64 | } elseif(get_option('googlelanguagetranslator_showbranding')=='No') { |
| 65 | if(get_option('googlelanguagetranslator_active')==1) { |
| 66 | echo '#google_language_translator a {display: none !important; }'; |
| 67 | echo '.goog-te-gadget {color:transparent !important;}'; |
| 68 | echo '.goog-te-gadget { font-size:0px !important; }'; |
| 69 | echo '.goog-tooltip {display: none !important;}'; |
| 70 | echo '.goog-tooltip:hover {display: none !important;}'; |
| 71 | echo '.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}'; |
| 72 | echo '.goog-branding { display:none; }'; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | if (get_option('googlelanguagetranslator_translatebox') == 'no') { |
| 77 | if(get_option('googlelanguagetranslator_active')==1) { |
| 78 | echo '#google_language_translator { display:none; }'; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | if (get_option('googlelanguagetranslator_flags') == 'hide_flags') { |
| 83 | if(get_option('googlelanguagetranslator_active') ==1) { |
| 84 | echo '#flags { display:none; }'; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | if(get_option('googlelanguagetranslator_toolbar')=='Yes') { |
| 89 | if(get_option('googlelanguagetranslator_active')==1) { |
| 90 | echo '#google_language_translator {color: transparent;}'; |
| 91 | echo 'body { top:0px !important; }'; |
| 92 | } |
| 93 | } elseif(get_option('googlelanguagetranslator_toolbar')=='No') { |
| 94 | if(get_option('googlelanguagetranslator_active')==1) { |
| 95 | echo '.goog-te-banner-frame{visibility:hidden !important;}'; |
| 96 | echo 'body { top:0px !important;}'; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | ?> |
| 101 | </style> |
| 102 |