Ejemplo n.º 1
0
 /**
  * Check if the widget is visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Request::getInstance()->id;
 }
Ejemplo n.º 2
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getOrderId() && 0 < count($this->getOrderHistoryEventsBlock());
 }
Ejemplo n.º 3
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_OPTION)->isModifier();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getItem()->hasOptions();
 }
Ejemplo n.º 6
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Config::getInstance()->CDev->GoSocial->fb_like_use;
 }
Ejemplo n.º 7
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getEntity() && $this->getEntity()->hasAttributeValues() && $this->getEntity()->isActualAttributes();
 }
Ejemplo n.º 8
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_ITEM)->hasAttributeValues();
 }
Ejemplo n.º 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()));
 }
Ejemplo n.º 10
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 1 < count($this->getNodes());
 }
Ejemplo n.º 11
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getModifier();
 }
Ejemplo n.º 12
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_ORDER) && 0 < count($this->getTransactions());
 }
Ejemplo n.º 13
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Session::getInstance()->iframePaymentData;
 }
Ejemplo n.º 14
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_ITEM)->countProductOptions();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 16
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isAdmin();
 }
Ejemplo n.º 17
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && ($this->getGroup()->getGroupId() || $this->isNew());
 }
Ejemplo n.º 18
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 0 < count($this->getOptions());
 }
Ejemplo n.º 19
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->isAJAXCenterRequest();
 }
Ejemplo n.º 20
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getOrder()->getCapostOffice();
 }
Ejemplo n.º 21
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getInactiveLanguages();
 }
Ejemplo n.º 22
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->checkFieldAccessability();
 }
Ejemplo n.º 23
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getDownloadFiles();
 }
Ejemplo n.º 24
0
 /**
  * Checks whether the widget is visible, or not
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && in_array($this->getCurrentTarget(), $this->getTabTargets());
 }
Ejemplo n.º 25
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getCategory()->getDescription();
 }
Ejemplo n.º 26
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !\XLite\Core\Request::getInstance()->page;
 }
Ejemplo n.º 27
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->getProcessorId();
 }
Ejemplo n.º 28
0
 /**
  * Check visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod();
 }
Ejemplo n.º 29
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct() && $this->getAttachments();
 }
Ejemplo n.º 30
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getParam(self::PARAM_SORT_CRITERIONS);
 }