/** * 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; }
/** * Register JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); if ('1.1' == \XLite\Core\Config::getInstance()->CDev->XPaymentsConnector->xpc_api_version) { $list[] = 'modules/CDev/XPaymentsConnector/checkout/script_old.js'; } else { $list[] = 'modules/CDev/XPaymentsConnector/checkout/script.js'; } return $list; }
/** * Get a list of JavaScript files required to display the widget properly * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = 'modules/CDev/Coupons/cart_coupons.js'; return $list; }