Bug in Gavern Framework desktop/mobile code switch?

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.6.00 out of 6 based on 1 vote(s)
GK User
Fri Apr 27, 2012 4:30 pm
Hi,

I'm trying to create a mobile K2 site and am using the Gavern framework for the mobile/desktop switch.
For some it seams to go alright but some I can't get to work.

I'm currently working on the K2/catagory.php and catagory_item.php and it looks like the Gavern framewrk is showing my mobile and desktop code at once.

I've added some HTML comments to my catagory.php and it looks like this:
Code: Select all
DIRECT ACCESS AND DEFAULT IMAGE SIZE PHP CODE

<!-- xiphias/catagory_item -->
<!-- gavern:mobile -->
<gavern:mobile>
<!-- Start K2 Item Mobile Layout -->
MOBILE CODE
<!-- End K2 Item Mobile Layout -->
</gavern:mobile>
<!-- /gavern:mobile -->

<!-- gavern:desktop -->
<gavern:desktop>
<!-- Start K2 Item Desktop Layout -->
DESKTOP CODE
<!-- End K2 Item Desktop Layout -->
</gavern:desktop>
<!-- /gavern:desktop -->


When I set Firefox to Android and view the site, http://j25.xiphias.net/index.php?option ... Itemid=430, the generated code looks like this:
Code: Select all
HTML CODE UPTO K2

<!-- xiphias/catagory -->

<!-- Start K2 Category Mobile Layout -->
HTML
<!-- End K2 Category Mobile Layout -->

<!-- Start K2 Item Desktop Layout -->
HTML
<!-- End K2 Item Desktop Layout -->
</gavern:desktop>

HTML
                 
<!-- xiphias/catagory_item -->

<!-- Start K2 Item Mobile Layout -->
<!-- End K2 Item Mobile Layout -->

HTML

<!-- xiphias/catagory_item -->

<!-- Start K2 Item Mobile Layout -->
HTML
<!-- End K2 Item Mobile Layout -->

HTML                 

<!-- xiphias/catagory_item -->

<!-- Start K2 Item Mobile Layout -->
HTML
<!-- End K2 Item Desktop Layout -->

HTML

<!-- xiphias/catagory_item -->

<!-- Start K2 Item Mobile Layout -->
HTML
<!-- End K2 Item Desktop Layout -->


HTML
                 
<!-- xiphias/catagory_item -->

<!-- Start K2 Item Mobile Layout -->
HTML
<!-- End K2 Item Desktop Layout -->


HTML

<!-- xiphiass/catagory_item_links -->
<!-- Start K2 Item Layout (links) -->
HTML
<!-- End K2 Item Layout (links) -->

HTML

<!-- End K2 Category Desktop Layout -->
</gavern:desktop>

HTML


Looks like the complete code is shown in catagory.php while it should only load the mobile code.

Any help is welcome.

-XiP
User avatar
Junior Boarder

GK User
Fri Apr 27, 2012 5:30 pm
Viewing same page in Chrome also shows same mobile + desktop code.
User avatar
Junior Boarder

GK User
Mon Jul 07, 2014 12:56 pm
having a similar problem.
I installed Jtouch extension to create my mobile version of the site.
My basic template is eSports that is not responsive.
Now I get for some pages,
double content.
The code looks like:
<gavern:desktop>
... the page....
</gavern:desktop>
<gavern:mobile>
... the page again !!...
</gavern:mobile>

Any help will be appreciated !
User avatar
Fresh Boarder


cron