![]() |
|
Code for enabling image swiping in iOs - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Code for enabling image swiping in iOs (/thread-10119.html) |
Code for enabling image swiping in iOs - risottto - 2012-06-29 After some work and failed experiments I got my zenphoto gallery working with swipes on iOs devices (image mode only). Here's how it works: First you need to load the jQuery mobile framework, I put it in a subfolder of my theme directory called scripts. I also only have it active if you are on an iOs device (some things get messed up on regular browsers if it's active on a computer). Use the PHP code in the head: ` Code for enabling image swiping in iOs - risottto - 2012-06-29 i forgot, don't forget to include the jQuery Mobile stylesheet as well: http://jquerymobile.com/download/ direct links to your head are: and `` it sais you are supposed to use jQuery 1.6.4, even through the latest version included with zenphoto is 1.7, seems to work ok, a few things turned blue, but that can be fixed with some css fiddling. Code for enabling image swiping in iOs - acrylian - 2012-06-29 FYI, Zenphoto 1.4.3 will include a new specific jQuery mobile theme which can be previewed in the beta naturally. Code for enabling image swiping in iOs - risottto - 2012-06-29 Good news, I was waiting for the final release, only 2 days left! Code for enabling image swiping in iOs - darkufo - 2013-02-03 Thank you for this, just implementing it now |