Ejemplo n.º 1
0
 /**
  * Defines the anonymous title box
  *
  * @return string
  */
 protected function getSigninAnonymousTitle()
 {
     if (!\XLite\Module\CDev\Paypal\Core\Login::isConfigured()) {
         $result = parent::getSigninAnonymousTitle();
     } else {
         $params = array('text_before' => static::t('Register with'), 'text_after' => static::t('or go to checkout as a New customer'), 'buttonStyle' => 'icon');
         $result = $this->getWidget($params, 'XLite\\Module\\CDev\\Paypal\\View\\Login\\Widget')->getContent();
     }
     return $result;
 }
Ejemplo n.º 2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Module\CDev\Paypal\Core\Login::isConfigured() && !\XLite\Core\Auth::getInstance()->isLogged();
 }