/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return $this->isBlockEnabled() && parent::isVisible(); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { $result = parent::isVisible(); if (!\XLite\Core\CMSConnector::isCMSStarted() && !$this->isAJAX()) { if (self::WIDGET_TYPE_SIDEBAR == $this->getParam(self::PARAM_WIDGET_TYPE)) { $result = $result && 'sidebar.first' == $this->viewListName; } else { $result = $result && 'center.bottom' == $this->viewListName; } } return $result; }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getCategory() && $this->getCategory()->isVisible(); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return \XLite\Core\Config::getInstance()->CDev->ProductAdvisor->cs_enabled && parent::isVisible(); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { $result = parent::isVisible(); if (!\XLite\Core\CMSConnector::isCMSStarted() && !$this->isAJAX()) { if (static::WIDGET_TYPE_SIDEBAR == $this->getParam(static::PARAM_WIDGET_TYPE)) { $result = $result && in_array($this->viewListName, array(static::SIDEBAR_LIST, static::SIDEBAR_SINGLE)); } else { $result = $result && static::CENTER_LIST == $this->viewListName; } } return $result; }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { $result = \XLite\Core\Config::getInstance()->CDev->ProductAdvisor->rv_enabled && \XLite\Module\CDev\ProductAdvisor\Main::getProductIds() && parent::isVisible(); if ($result) { if (!\XLite\Core\CMSConnector::isCMSStarted()) { if (self::WIDGET_TYPE_SIDEBAR == $this->getParam(self::PARAM_WIDGET_TYPE)) { $result = in_array($this->viewListName, array('sidebar.second', 'sidebar.single')); } elseif (self::WIDGET_TYPE_CENTER == $this->getParam(self::PARAM_WIDGET_TYPE)) { $result = 'center.bottom' == $this->viewListName; } } } return $result; }