Conditional Log in , Log out
<?php
<ul class="list-inline textright">
<?php if ($this->helper('customer')->isLoggedIn()): ?>
<li> <a title="<?php echo $this->__('My Account') ?>" href="<?php echo $this->getUrl('customer/account') ?>"> <?php echo $this->__('My Account') ?> </a> </li>
<li> <a title="Log Out" href="<?php echo $this->getUrl('customer/account/logout') ?>"> <?php echo $this->__('Logout') ?></a> </li>
<?php else: ?>
<li><a href="<?php echo $this->getUrl('customer/account/login/')?>"> <?php echo $this->__('Login') ?></a></li>
<li><a href="<?php echo $this->getUrl('customer/account/create/')?>"> <?php echo $this->__('Create Account') ?></a></li>
<?php endif;?>
</ul>