예제 #1
0
파일: Links.php 프로젝트: quyip8818/Mag
 /**
  * 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');
     }
 }
예제 #2
0
 /**
  * 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();
     }
 }
예제 #3
0
 /**
  * Set link title, label and url
  */
 public function __construct()
 {
     parent::__construct();
     $this->initLinkProperties();
 }