Hello,
i'm trying to have tabs (tpl_top_nav.php) for 2 languages, can you advise your solution?
This is how my tpl_top_nav.php looks like:
HTML Code:
<?php
/**
* Template designed by zen-cart-power.net*
* Power your Zen Cart!
* @copyright Copyright 2008-2010 Newlement
*/
?>
<div id="top_nav">
<div class="top-nav-left"></div>
<div class="top-nav-right"></div>
<ul class="list-style-none float-left">
<?php
if ($this_is_home_page) { $active = 'id="tab_active"';
} else { $active = '';
}?>
<li <?php echo $active;?>><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php
if ($current_page_base == 'products_new') { $active = 'tab_active';
} else { $active = '';
}?>
<li <?php echo $active;?>><a href="http://chequesplus.com/index.php?main_page=index&cPath=1"><?php echo 'Computer Cheques';?></a></li>
<?php
if ($current_page_base == 'products_new') { $active = 'tab_active';
} else { $active = '';
}?>
<li <?php echo $active;?>><a href="http://chequesplus.com/index.php?main_page=index&cPath=2"><?php echo 'Manual Cheques' ;?></a></li>
<?php
if ($current_page_base == 'specials') { $active = 'tab_active';
} else { $active = '';
}?>
<li <?php echo $active;?>><a href="http://chequesplus.com/index.php?main_page=index&cPath=7"><?php echo 'Blank Cheque Stock';?></a></li>
<?php
if ($current_page_base == 'specials') { $active = 'tab_active';
} else { $active = '';
}?>
<li <?php echo $active;?>><a href="http://chequesplus.com/index.php?main_page=index&cPath=6"><?php echo 'Envelopes';?></a></li>
<?php
//if ($current_page_base == 'featured_products') { $active = 'tab_active';
//} else { $active = '';
//}?>
<!--li <?php //echo $active;?>><a href="index.php?main_page=featured_products"><?php //echo TOP_MENU_FEATURED_PRODUCTS;?></a></li-->
<?php
if ($current_page_base == 'account' || $current_page_base == 'login' || $current_page_base == 'account_edit' || $current_page_base == 'address_book' || $current_page_base == 'account_password' || $current_page_base == 'account_newsletters' || $current_page_base == 'account_notifications') { $active = 'tab_active';
} else { $active = '';
}?>
<!--li <?php //echo $active;?>><a href="<?php // echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php// echo TOP_MENU_MY_ACCOUNT;?></a></li-->
<?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?> <li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li> <?php } ?>
<?php
//if ($current_page_base == 'shopping_cart') { $active = 'tab_active';
//} else { $active = '';
//}?>
<!--li <?php //echo $active;?>><a href="<?php //echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php //echo TOP_MENU_VIEW_CART;?></a></li-->
</ul>
<div class="languages-wrapper float-right">
<?php
$languges_object = new language;
// if (count ($languges_object->catalog_languages) > 1){
?>
<div class="languages float-right">
<?php require($template->get_template_dir('tpl_header_languages.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_header_languages.php');
echo $content;?>
</div>
<?php
// }
?>
<?php
if (isset($currencies) && is_object($currencies) && count ($currencies->currencies) > 1){
?>
<div class="currency float-right">
<?php require($template->get_template_dir('tpl_header_currencies.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_header_currencies.php');
echo $content;?>
</div>
<?php
}
?>
</div>
<div class="clearBoth"></div>
</div>
Bookmarks