PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/public/views/main/mobileSwitcher.cfm

http://github.com/Lagaffe/MobileMura
ColdFusion | 29 lines | 9 code | 1 blank | 19 comment | 0 complexity | 742a8d1f9efc706660e5e1701e9c2c04 MD5 | raw file
 1<!---
 2
 3MobileMura/public/views/main/mobileSwitcher.cfm
 4
 5Copyright 2011 Guust Nieuwenhuis 
 6
 7Licensed under the Apache License, Version 2.0 (the "License"); 
 8you may not use this file except in compliance with the License. 
 9You may obtain a copy of the License at 
10
11http://www.apache.org/licenses/LICENSE-2.0 
12
13Unless required by applicable law or agreed to in writing, software 
14distributed under the License is distributed on an "AS IS" BASIS, 
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
16See the License for the specific language governing permissions and 
17limitations under the License. 
18
19--->
20
21<cfoutput>
22	<div id="svMobileSwitcher">
23		<cfif cookie.mobileFormat>
24			<a href="#$.content().getUrl('mobileFormat=false', false, '0')#">#$.rbKey("mobile.fullversion")#<!---Go to desktop website---></a>
25		<cfelse>
26			<a href="#$.content().getUrl('mobileFormat=true', false, '0')#">#$.rbKey("mobile.mobileversion")#<!---Go to mobile website---></a>
27		</cfif>
28	</div>
29</cfoutput>