You would need to add some custom code to /includes/templates/your_template/templates/tpl_ezpages_bar_header.php.
PHP Code:
<?php if (sizeof($var_linksList) >= 1) { ?>
<div id="navEZPagesTop">
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?>
<a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ($i < $n ? EZPAGES_SEPARATOR_HEADER : '') . "\n"; ?>
<?php } // end FOR loop ?>
</div>
<?php } ?>
Wrap a test around the <a href=" line to check for the ez-page being processed and display the login link only if not logged in and the logoff link only if logged in.
Replace the above code with this:
PHP Code:
<?php if (sizeof($var_linksList) >= 1) { ?>
<div id="navEZPagesTop">
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
if (!($var_linksList[$i]['name'] == 'Login' and $_SESSION['customer_id']) or !($var_linksList[$i]['name'] == 'Logoff' and !$_SESSION['customer_id'])) { ?>
<a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ($i < $n ? EZPAGES_SEPARATOR_HEADER : '') . "\n"; ?>
<?php } //end if
} // end FOR loop ?>
</div>
<?php } ?>
Be sure the names are spelled and capitalized the same in the code and the page title.
Bookmarks