コード例 #1
0
ファイル: Subcategories.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->isCategoryVisible() && $this->hasSubcategories();
 }
コード例 #2
0
ファイル: AModel.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() || $this->isExported();
 }
コード例 #3
0
ファイル: SimpleDialog.php プロジェクト: kingsj/core
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getBody();
 }
コード例 #4
0
ファイル: SelectAddress.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isLogged();
 }
コード例 #5
0
ファイル: Settings.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod();
 }
コード例 #6
0
ファイル: Method.php プロジェクト: kingsj/core
 /**
  * Check widget visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod() && $this->getPaymentMethod()->getProcessor() && $this->getPaymentMethod()->getProcessor()->getSettingsWidget();
 }
コード例 #7
0
ファイル: Banner.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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;
 }
コード例 #8
0
ファイル: SelectAddress.php プロジェクト: kingsj/core
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getCart()->getOrigProfile() && !$this->getCart()->getOrigProfile()->getOrder();
 }
コード例 #9
0
ファイル: AdminWelcome.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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;
 }