php ve jquery cookie karışımı?

0 Cevap php

hey guys, i'm confused, i have the following jquery script in my header:

forceAnim: <?php echo ($iphone || is_singular()) ? 0 : 1; ?>

which meanst, that either on the iphone or on a singular-type page forceAnim is 0. However i want to include an additional query if a jquery cookie is saved.

jquery.cookie var (ve gerçek eşittir) VEYA bu iPhone veya tekil bir tip yazı üzerine inceledi eğer forceAnim gerçek olmalıdır.

i bu durumda jquery ile php karıştırmak için nasıl sadece hiçbir fikrim yok. jquery.cookie true döndürür sorgulamak için ben sadece kullanabilirsiniz:

if($.cookie('animate') == 'true'){
   //yes the cookie returns true.
}

any idea how i can query all three things? thank you for your help.

0 Cevap