Example #1
0
 /**
  * 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);
     }
 }
Example #2
0
 public function addPageBottomBanner(BASE_CLASS_EventCollector $event)
 {
     $cmp = new ADS_CMP_Ads(array('position' => 'bottom'));
     $event->add($cmp->render());
 }