function getBlockCode_Rate() { bx_store_import('Voting'); $o = new BxStoreVoting('bx_store', (int) $this->aDataEntry['id']); if (!$o->isEnabled()) { return ''; } return $o->getBigVoting($this->_oMain->isAllowedRate($this->aDataEntry)); }