When accessing a demo site with my mobile I found that the 'Log In' and 'Log Out' links are somewhat hidden withing the menu. I found them eventually...
To make it a bit easier for customers I modified the file
includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php
Around line 91 we find
PHP Code:
<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" class="mcontact"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
Right after that line I added
PHP Code:
<?php if ($_SESSION['customer_id']) { // bof log in / log out addition to mobile menu - added by frank18 ?>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo TITLE_NEWSLETTERS; ?></a></li>
<?php } else { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
<?php } // eof log in / log out addition to mobile menu - added by frank18 ?>
The next line is the closing </ul> tag.
The original lines 47 to 54 of this file could be deleted so we avoid duplication of the links ....
Just a thought for consideration to make it easier for customers.
Demo/development site here: isonetwork [DOT] net [DOT] au [SLASH] velagiftz [SLASH]
Cheers / Frank
Bookmarks