Esempio n. 1
0
 function getBlockCode_ViewComments()
 {
     if ($this->_oConfig->isCommentsAllowed() && $this->_oSites->oPrivacy->check('comments', $this->_aSite['id'], $this->_oSites->iOwnerId)) {
         $o = new BxSitesCmts('bx_sites', $this->_aSite['id']);
         if ($o->isEnabled()) {
             return $o->getCommentsFirst();
         }
     }
     return '';
 }