/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Controller\Admin\Promotions::getPagesStatic(); }