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