* @copyright 2020 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ class RetailcrmBaseTemplate extends RetailcrmAbstractTemplate { protected function buildParams() { switch ($this->getCurrentLanguageISO()) { case 'ru': $promoVideoUrl = 'VEatkEGJfGw'; $registerUrl = 'https://account.simla.com/lead-form/?cp=https%3A%2F%2Faccount.simla.com%2Flead-form%2F'; $supportEmail = 'help@simla.com'; break; case 'es': $promoVideoUrl = 'LdJFoqOkLj8'; $registerUrl = 'https://account.simla.com/lead-form/?cp=https%3A%2F%2Faccount.simla.com%2Flead-form%2F'; $supportEmail = 'help@simla.com'; break; default: $promoVideoUrl = 'wLjtULfZvOw'; $registerUrl = 'https://account.simla.com/lead-form/?cp=https%3A%2F%2Faccount.simla.com%2Flead-form%2F'; $supportEmail = 'help@simla.com'; break; } $this->data = array( 'assets' => $this->assets, 'apiUrl' => RetailCRM::API_URL, 'apiKey' => RetailCRM::API_KEY, 'promoVideoUrl' => $promoVideoUrl, 'registerUrl' => $registerUrl, 'supportEmail' => $supportEmail ); } /** * Set template data */ protected function setTemplate() { $this->template = "index.tpl"; } }