Public Member Functions | |
addWishlistLink () |
Definition at line 35 of file Links.php.
addWishlistLink | ( | ) |
Add link on wishlist page in parent block
Definition at line 42 of file Links.php.
00043 { 00044 $parentBlock = $this->getParentBlock(); 00045 if ($parentBlock && $this->helper('wishlist')->isAllow()) { 00046 $count = $this->helper('wishlist')->getItemCount(); 00047 if( $count > 1 ) { 00048 $text = $this->__('My Wishlist (%d items)', $count); 00049 } elseif( $count == 1 ) { 00050 $text = $this->__('My Wishlist (%d item)', $count); 00051 } else { 00052 $text = $this->__('My Wishlist'); 00053 } 00054 $parentBlock->addLink($text, 'wishlist', $text, true, array(), 30, null, 'class="top-link-wishlist"'); 00055 } 00056 return $this; 00057 }