Created
April 6, 2017 15:20
-
-
Save Digi92/4d352566ceed8f04500e2afb236538b1 to your computer and use it in GitHub Desktop.
HTML5-Boilerplate html-Tag mit Conditional Comments
From http://wiki.wowa-webdesign.de/typo3/html5-boilerplate-html-tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Lang = de, falls de default-Sprache | |
| page { | |
| config { | |
| htmlTag_stdWrap { | |
| cObject = TEXT | |
| cObject.value ( | |
| <!--[if lt IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html lang="de" class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="de" class="no-js"> <!--<![endif]--> | |
| ) | |
| } | |
| } | |
| } | |
| ## fuer jede weitere Sprache muss ein entsprechender Block eingefuegt werden | |
| ## in der Condition bei L=x die ID der jeweiligen Sprache einsetzen | |
| ## Lang = en | |
| [globalVar = GP:L=1] | |
| page { | |
| config { | |
| htmlTag_stdWrap { | |
| cObject = TEXT | |
| cObject.value ( | |
| <!--[if lt IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html lang="en" class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
| ) | |
| } | |
| } | |
| } | |
| [global] | |
| ## Lang = fr | |
| [globalVar = GP:L=2] | |
| page { | |
| config { | |
| htmlTag_stdWrap { | |
| cObject = TEXT | |
| cObject.value ( | |
| <!--[if lt IE 7]> <html lang="fr" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html lang="fr" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html lang="fr" class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="fr" class="no-js"> <!--<![endif]--> | |
| ) | |
| } | |
| } | |
| } | |
| [global] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment