예제 #1
0
파일: Video.php 프로젝트: xiaoguizhidao/bb
 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();
 }
예제 #2
0
 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;
 }