Additional options for the iPhone and other handheld devices layouts

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Sat Oct 30, 2010 8:16 pm
Hi,

I've been testing the Postnote template on the iPhone and other handheld devices and there is always a button in the top right-hand corner to login and the a label for the breadcrumb bar "You are here:" at the bottom of these layout. I don't have a login or breadcrumb modules for my website. Can options be added to the template so that I can disable showing these options from the iPhone and other handheld devices templates?

Thanks,
Dave.
User avatar
Senior Boarder

GK User
Sat Oct 30, 2010 9:47 pm
you will need to play with these files:

gk_postnotelayoutsblockshandheldfooter.php
gk_postnotelayoutsblockshandheldmainnav.php
gk_postnotelayoutsblocksiphonefooter.php
gk_postnotelayoutsblocksiphonemainnav.php


Code: Select all
<div class="gk-breadcrumbs clearfix">
   <div><strong>You are here:</strong> <jdoc:include type="module" name="breadcrumbs" /></div>
</div>

Code: Select all
   <a id="login-btn" href="index.php?option=com_user&view=login"><?php echo JText::_('LOGIN'); ?></a>
User avatar
Platinum Boarder

GK User
Fri Nov 05, 2010 5:09 am
Here's what I've done to hide the login button from the handheld and iphone templates:

Edit the following file for the handheld layout:
gk_postnotelayoutsblockshandheldmainnav.php

Replace:
Code: Select all
<a id="login-btn" href="index.php?option=com_user&view=login"><?php echo JText::_('LOGIN'); ?></a>

with:
Code: Select all
<?php if($this->countModules('login')) : ?>
<a id="login-btn" href="index.php?option=com_user&view=login"><?php echo JText::_('LOGIN'); ?>
<?php endif; ?>


Edit the following file for the iphone layout:
gk_postnotelayoutsblocksiphonemainnav.php

Replace:
Code: Select all
<a class="toggle ip-button button-login" href="#gk-login" title="Login">Login</a>

with:
Code: Select all
<?php if($this->countModules('login')) : ?>
<a class="toggle ip-button button-login" href="#gk-login" title="Login">Login</a>
<?php endif; ?>

Replace:
Code: Select all
<div id="gk-login" title="Login" class="toolbox">
<jdoc:include type="module" name="login" />
</div>

with:
Code: Select all
<?php if($this->countModules('login')) : ?>
<div id="gk-login" title="Login" class="toolbox">
<jdoc:include type="module" name="login" />
</div>
<?php endif; ?>


I believe these are useful changes that can be added back to the template.

Kind regards,
Dave.
User avatar
Senior Boarder

GK User
Fri Nov 05, 2010 5:13 am
I've also done one additional modification for the handheld template:

Edit the following file for the handheld layout:
gk_postnotelayoutsblockshandheldmainnav.php

Wrap the following div block:
Code: Select all
<div id="gk-mainnav" class="main clearfix">

with the following php if block:
Code: Select all
<?php if($this->countModules('search') || $this->countModules('login')) : ?>


gk-mainnav only appears if there is a search and/or login module. If both of these modules are not published, gk-mainnav is omitted.

Kind regards,
Dave.
User avatar
Senior Boarder

GK User
Fri Nov 05, 2010 5:21 am
Here's what I've done to hide the breadcrumb bar from the handheld and iphone templates:

Edit the following file for the iphone layout:
gk_postnotelayoutsblockshandheldfooter.php
gk_postnotelayoutsblocksiphonefooter.php

Wrap the following div block:
Code: Select all
<div class="gk-breadcrumbs clearfix">
   <div><strong>You are here:</strong> <jdoc:include type="module" name="breadcrumbs" /></div>
</div>

with the following php if block:
Code: Select all
<?php if($this->countModules('breadcrumb')) : ?>


I also believe these are useful changes that can be added back to the template.

Kind regards,
Dave.
User avatar
Senior Boarder

teitbite
Sat Nov 06, 2010 1:16 pm
Hi

You're a real hacker :) Nice solution.
User avatar
Moderator

GK User
Sat Nov 06, 2010 7:52 pm
I'm all for helping the community - love the template by the way :)
User avatar
Senior Boarder


cron