Returns true if it is ok to show some advertising in the Piwik UI.
public areAdsForProfessionalServicesEnabled ( ) : boolean | ||
return | boolean |
public function test_areAdsForProfessionalServicesEnabled_UsingPreviousSettingName() { $this->config->General = array('piwik_pro_ads_enabled' => '1'); $enabled = $this->advertising->areAdsForProfessionalServicesEnabled(); $this->assertTrue($enabled); }
protected function init() { if ($this->advertising->areAdsForProfessionalServicesEnabled()) { $this->addWidget('ProfessionalServices_WidgetProfessionalServicesForPiwik', 'promoServices'); } }