function getBlockCode_Comments()
 {
     bx_import('BxTemplCmtsView');
     $this->oTemplate->addCss('cmts.css');
     $oCmtsView = new BxTemplCmtsView($this->oConfig->getMainPrefix() . '_albums', $this->aInfo['ID']);
     if (!$oCmtsView->isEnabled()) {
         return '';
     }
     return $oCmtsView->getCommentsFirst();
 }
Beispiel #2
0
 function getBlockCode_ViewComments()
 {
     bx_import('BxTemplCmtsView');
     $this->oTemplate->addCss('cmts.css');
     $oCmtsView = new BxTemplCmtsView('bx_files', $this->aFileInfo['medID']);
     if (!$oCmtsView->isEnabled()) {
         return '';
     }
     return $oCmtsView->getCommentsFirst();
 }
 function getBlockCode_ViewComments()
 {
     if ($this->_oConfig->isCommentsAllowed() && $this->_oSites->oPrivacy->check('comments', $this->_aSite['id'], $this->_oSites->iOwnerId)) {
         bx_import('BxTemplCmtsView');
         $o = new BxTemplCmtsView('bx_sites', $this->_aSite['id']);
         if ($o->isEnabled()) {
             return $o->getCommentsFirst();
         }
     }
     return '';
 }