Ejemplo n.º 1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $target = \XLite\Core\Request::getInstance()->target;
     return parent::isVisible() && ('login' == $target || 'profile' == $target && 'login' == \XLite\Core\Request::getInstance()->mode);
 }
Ejemplo n.º 2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && (bool) $this->getImportFilePath();
 }
Ejemplo n.º 3
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 'delete' === \XLite\Core\Request::getInstance()->pre_action;
 }