private function init_vars_template()
 {
     $this->view->put_all(array('C_REGISTRATION_ENABLED' => UserAccountsConfig::load()->is_registration_enabled(), 'C_USER_LOGIN' => $this->login_type == self::USER_LOGIN && !$this->maintain_config->is_under_maintenance(), 'C_ADMIN_LOGIN' => $this->login_type == self::ADMIN_LOGIN, 'C_HAS_ERROR' => $this->has_error, 'U_REGISTER' => UserUrlBuilder::registration()->rel(), 'U_FORGET_PASSWORD' => UserUrlBuilder::forget_password()->rel(), 'L_FORGET_PASSWORD' => $this->lang['forget-password'], 'LOGIN_FORM' => $this->form->display()));
     if ($this->maintain_config->is_under_maintenance()) {
         $this->init_maintain_delay();
         $this->view->put_all(array('C_MAINTAIN' => true, 'L_MAINTAIN' => FormatingHelper::second_parse($this->maintain_config->get_message())));
     }
 }
 private function build_response(View $view)
 {
     $title = $this->lang['registration'];
     $response = new SiteDisplayResponse($view);
     $graphical_environment = $response->get_graphical_environment();
     $graphical_environment->set_page_title($title, $this->lang['user']);
     $breadcrumb = $graphical_environment->get_breadcrumb();
     $breadcrumb->add($this->lang['user'], UserUrlBuilder::home()->rel());
     $breadcrumb->add($title, UserUrlBuilder::registration()->rel());
     return $response;
 }