Пример #1
0
 /**
  * Check if the widget is visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Request::getInstance()->id;
 }
Пример #2
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getOrderId() && 0 < count($this->getOrderHistoryEventsBlock());
 }
Пример #3
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_OPTION)->isModifier();
 }
Пример #4
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $result = parent::isVisible();
     if ($result) {
         if ($this->checkImage()) {
             $this->processImage();
         } elseif ($this->checkDefaultImage()) {
             $this->processDefaultImage();
         } else {
             $result = false;
         }
     }
     return $result;
 }
Пример #5
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getItem()->hasOptions();
 }
Пример #6
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Config::getInstance()->CDev->GoSocial->fb_like_use;
 }
Пример #7
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getEntity() && $this->getEntity()->hasAttributeValues() && $this->getEntity()->isActualAttributes();
 }
Пример #8
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_ITEM)->hasAttributeValues();
 }
Пример #9
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && (!\XLite::isAdminZone() && 0 < count($this->getParam(self::PARAM_ITEM)->getSoldPinCodes()) || \XLite::isAdminZone() && 0 < count($this->getParam(self::PARAM_ITEM)->getPinCodes()));
 }
Пример #10
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 1 < count($this->getNodes());
 }
Пример #11
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getModifier();
 }
Пример #12
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_ORDER) && 0 < count($this->getTransactions());
 }
Пример #13
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Session::getInstance()->iframePaymentData;
 }
Пример #14
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_ITEM)->countProductOptions();
 }
Пример #15
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isLogged() && !$this->getWidget(array(), '\\XLite\\View\\CoreVersion')->isVisible();
 }
Пример #16
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isAdmin();
 }
Пример #17
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && ($this->getGroup()->getGroupId() || $this->isNew());
 }
Пример #18
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 0 < count($this->getOptions());
 }
Пример #19
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->isAJAXCenterRequest();
 }
Пример #20
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getOrder()->getCapostOffice();
 }
Пример #21
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getInactiveLanguages();
 }
Пример #22
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->checkFieldAccessability();
 }
Пример #23
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getDownloadFiles();
 }
Пример #24
0
 /**
  * Checks whether the widget is visible, or not
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && in_array($this->getCurrentTarget(), $this->getTabTargets());
 }
Пример #25
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getCategory()->getDescription();
 }
Пример #26
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !\XLite\Core\Request::getInstance()->page;
 }
Пример #27
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->getProcessorId();
 }
Пример #28
0
 /**
  * Check visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod();
 }
Пример #29
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct() && $this->getAttachments();
 }
Пример #30
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_SORT_CRITERIONS);
 }