<p dir="ltr">In addition or in replacement to the detectskin cookbook you can also consider using responsive design in your CSS, which would detect your screen size. </p>
<p dir="ltr">See <a href="http://en.m.wikipedia.org/wiki/Responsive_web_design">http://en.m.wikipedia.org/wiki/Responsive_web_design</a></p>
<p dir="ltr">You can also have a look at a PmWiki skin I made this way: <a href="http://wiki.txt2tags.org/demos/pmwiki-efo/">http://wiki.txt2tags.org/demos/pmwiki-efo/</a></p>
<div class="gmail_quote">Le 26 oct. 2013 09:11, "Ian MacGregor" <<a href="mailto:ardchoille42@me.com">ardchoille42@me.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am designing two different skins for my website; a desktop skin and a mobile skin. I tried using the Detect Skin recipe but it won't work because it doesn't differentiate between iPads and iPhones - it considers them both mobile devices but the screen sizes are very different.<br>

<br>
What I'd like to do is include a conditional statement in my website header that allows visitors to toggle between a desktop skin and a mobile skin. I have installed the Set Skin recipe that allows users to switch to a different skin simply by adding ?setskin=skinname to the end of a page url. What I need to be able to do is detect which skin is currently being used.<br>

<br>
How would I do this?<br>
<br>
(:if $Skin desktopskin:)<br>
[[{*$FullName}?setskin=mobileskin | Mobile View]]<br>
(:else:)<br>
[[{*$FullName}?setskin=desktopskin | Desktop View]]<br>
(:ifend:)<br>
<br>
Which variable is used for the skin and how do I use this variable in a conditional statement?<br>
<br>
Regards,<br>
Rev. Ian MacGregor<br>
<a href="http://www.ianmacgregor.net" target="_blank">http://www.ianmacgregor.net</a><br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>