public function _toHtml() { // If default template was overridden, save for use later when outputting images gallery. $this->_oldTemplate = $this->getTemplate() ? $this->getTemplate() : 'catalog/product/view/media.phtml'; // Change template to videogallery template. $this->setTemplate(Mage::helper('videogallery')->getVideoTemplate()); return parent::_toHtml(); }
public function _toHtml() { if (Mage::getStoreConfig('niveus_productvideo/settings/enable')) { $html = parent::_toHtml(); $html .= $this->getChildHtml('media_video'); return $html; } else { $html = parent::_toHtml(); } return $html; }