Exemplo n.º 1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->isCategoryVisible() && $this->hasSubcategories();
 }
Exemplo n.º 2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() || $this->isExported();
 }
Exemplo n.º 3
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getBody();
 }
Exemplo n.º 4
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isLogged();
 }
Exemplo n.º 5
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod();
 }
Exemplo n.º 6
0
 /**
  * Check widget visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod() && $this->getPaymentMethod()->getProcessor() && $this->getPaymentMethod()->getProcessor()->getSettingsWidget();
 }
Exemplo n.º 7
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $result = parent::isVisible() && (Paypal\Main::isPaypalCreditEnabled() || Paypal\Main::isPaypalWPSEnabled()) && $this->isValidTarget() && $this->getPublisherId() && $this->getSetting('agreement');
     if ($result) {
         $settingName = 'bannerOn' . ucfirst($this->getParam(static::PARAM_PAGE));
         $result = $this->getParam(static::PARAM_POSITION) == $this->getSetting($settingName);
     }
     return $result;
 }
Exemplo n.º 8
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getCart()->getOrigProfile() && !$this->getCart()->getOrigProfile()->getOrder();
 }
Exemplo n.º 9
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $config = \XLite\Core\Config::getInstance()->CDev->Paypal;
     return parent::isVisible() && $this->isRootAccess() && 1 != \XLite\Core\Session::getInstance()->hide_welcome_block_paypal && 'Y' == $config->show_admin_welcome;
 }