/** * Constructor. */ public function __construct(BASE_CLASS_WidgetParameter $paramObj) { parent::__construct(); $cmp = new ADS_CMP_Ads(array('position' => 'sidebar')); if (!$cmp->isVisible()) { $this->setVisible(false); } else { $this->addComponent('ads', $cmp); } }
public function addPageBottomBanner(BASE_CLASS_EventCollector $event) { $cmp = new ADS_CMP_Ads(array('position' => 'bottom')); $event->add($cmp->render()); }