Skip to content

Instantly share code, notes, and snippets.

View uschmelzer's full-sized avatar

Uwe Schmelzer uschmelzer

View GitHub Profile
@uschmelzer
uschmelzer / Simple language switcher
Created May 10, 2015 01:28
Simple language switcher
<f:layout name="Page"/>
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:section name="SimpleLanguageSwitcher">
<!-- Get current language id, e.g. 0, 1 -->
<!-- In my case 0 = German, 1 = English -->
<f:if condition="{v:page.language(normalWhenNoLanguage: 1)} == 1">
@uschmelzer
uschmelzer / gist:5597784
Created May 17, 2013 08:38
IOS Shorter App title for homescreen -Available as of IOS6 -Undocumented, thus, throws (ignorable) errors in W3C Validator (as of MAY-2013) -Max. 13 chars LINKS http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers http://stackoverflow.com/questions/4883795/what-can-i-do-to-prevent-iphone-4-from-cutting-off-my-title-when-adding-to-home
<meta name="apple-mobile-web-app-title" content="App-Name here">