<ul class="links si_ac">
<?php
$signout =$baseurl.'customer/account/logout';
if(!Mage::getSingleton('customer/session')->isLoggedIn()) {
$signinUrl =$baseurl.'customer/account/login';
$signup =$baseurl.'customer/account/create';
$linkks = "<li><a href='$signinUrl'>".$this->__("Sign In")."</a></li>
<li class='last'><a href='$signup'>".$this->__("Create an Account")."</a></li>";
}else{
$linkks = "<li class='last'><a href='$signout'>".$this->__("Sign Out")."</a></li>";
}
echo $linkks;
?>
</ul>
<?php
$signout =$baseurl.'customer/account/logout';
if(!Mage::getSingleton('customer/session')->isLoggedIn()) {
$signinUrl =$baseurl.'customer/account/login';
$signup =$baseurl.'customer/account/create';
$linkks = "<li><a href='$signinUrl'>".$this->__("Sign In")."</a></li>
<li class='last'><a href='$signup'>".$this->__("Create an Account")."</a></li>";
}else{
$linkks = "<li class='last'><a href='$signout'>".$this->__("Sign Out")."</a></li>";
}
echo $linkks;
?>
</ul>
No comments:
Post a Comment