Exemple #1
0
 public function loginform($ident = NULL, $permanent = FALSE)
 {
     $html = $this->htmlPage ?: new \Psc\CMS\HTMLPage();
     $formAction = $this->getTodoURL(self::TODO_LOGIN);
     $redirect = $this->getRedirect();
     $errors = $this->errors;
     $html->body->content = TPL::get(array('CMS', 'loginform'), compact('formAction', 'errors', 'ident', 'permanent', 'html', 'redirect'));
     print $html->getHTML();
 }
Exemple #2
0
 public function addMarkup(\Psc\HTML\Page $page, array $vars = array())
 {
     $translator = $this->getContainer()->getTranslationContainer()->getTranslator();
     $page->body->content = TPL::get(array('CMS', 'main'), array_merge(array('page' => $page, 'authController' => $this->getAuthController(), 'user' => $this->getUser(), 'tabs' => $this->getContentTabs(), 'main' => $this, 'trans' => function ($key, array $parameters = array()) use($translator) {
         return $translator->trans($key, $parameters, 'cms');
     }, 'cms' => $this), $vars));
 }