/** * Set link title, label and url */ public function __construct() { if (!Mage::getSingleton('customer/session')->isLoggedIn()) { parent::__construct(); $this->_label = $this->__('Orders and Returns'); $this->_title = $this->__('Orders and Returns'); $this->_url = $this->getUrl('sales/guest/form'); } }
/** * Set link title, label and url */ public function __construct() { if ($this->helper('wishlist')->isAllow()) { $count = $this->helper('wishlist')->getItemCount(); if ($count > 1) { $text = $this->__('My Wishlist (%d items)', $count); } else { if ($count == 1) { $text = $this->__('My Wishlist (%d item)', $count); } else { $text = $this->__('My Wishlist'); } } $this->_label = $text; $this->_title = $text; $this->_url = $this->getUrl('wishlist'); parent::__construct(); } }
/** * Set link title, label and url */ public function __construct() { parent::__construct(); $this->initLinkProperties(); }