isAllow())
{
$html .= '
' . $this->__('Add to Wishlist') . '';
}
if ($_compareUrl)
{
$html .= '' . $this->__('Add to Compare') . '';
}
//If any link rendered
if (!empty($html))
{
return '';
}
return $html;
}
/**
* Render "Add to" links for category view. Use "feature" box.
*
* @param product object
* @param URL of the "Add to compare" link
* @param additional CSS class name
* @return string
*/
public function getCategoryAddtoLinksComplex($_product, $_compareUrl, $wrapperClasses = '')
{
$html = '';
if (Mage::helper('wishlist')->isAllow())
{
$html .= '
' . $this->__('Add to Wishlist') . '
';
}
if ($_compareUrl)
{
$html .= '
' . $this->__('Add to Compare') . '
';
}
//If any link rendered
if (!empty($html))
{
return '';
}
return $html;
}
/**
* Render "Add to" links for category view using only icons
*
* @param product object
* @param URL of the "Add to compare" link
* @param additional CSS class name
* @return string
*/
public function getCategoryAddtoLinksComplex_2($_product, $_compareUrl, $wrapperClasses = '')
{
$html = '';
if (Mage::helper('wishlist')->isAllow())
{
$html .= '
';
}
if ($_compareUrl)
{
$html .= '
';
}
//If any link rendered
if (!empty($html))
{
return '';
}
return $html;
}
}