public function pageProfil($user, $message = '') { $avatar = $user->get('avatar'); $notifsMP = $user->get('notifMP'); if ($notifsMP && $notifsMP == 'n') { $notifsMP = false; } else { $notifsMP = true; } if ($avatar) { $avatar = '<img class="avatar" src="' . $user->get('avatar') . '" alt="Votre Avatar" title="Votre Avatar"></img>'; } else { $avatar = '<div><i>aucun avatar pour le moment </i></div>'; } $sign = $user->get('sign'); $html = $this->creerFormProfil($avatar, $sign, $notifsMP); $this->body = SiteConfig::forgerBlock('Profil', $message . $html); $this->head = '<title>' . $this->siteName . ' - Profil </title>' . PHP_EOL; }
public function pageBase() { $this->body = SiteConfig::forgerBlock('Contact ', $this->mailVierge . $this->getContactForm()); $this->head = '<title>' . $this->nomSite . ' - Contact </title>' . PHP_EOL; }
public function pageOptions($user, $message = '') { $this->head = '<title>' . $this->nomSite . ' - Options du raidplanner </title>' . PHP_EOL; if ($message) { $message = '<div class="alert alert-success" role="alert">' . $message . '</div>'; } $notifEvent = $user->get('notifEvent'); if ($notifEvent && $notifEvent == 'n') { $notifEvent = false; } else { $notifEvent = true; } $notifComEvent = $user->get('notifComEvent'); if ($notifComEvent && $notifComEvent == 'n') { $notifComEvent = false; } else { $notifComEvent = true; } $html = $this->craftFormOptions($notifEvent, $notifComEvent); $this->body = SiteConfig::forgerBlock('Options', $message . $html); }
private function displayReponseForm() { $content = ' <div id="contact"> ' . $this->formInfos . ' </div>'; return SiteConfig::forgerBlock('Réagissez à cet article', $content); }
public function pageProfil($user, $message = '') { $mail = $user->get('mail'); $notifEvent = $user->get('notifEvent'); if ($notifEvent && $notifEvent == 'n') { $notifEvent = false; } else { $notifEvent = true; } $notifComEvent = $user->get('notifComEvent'); if ($notifComEvent && $notifComEvent == 'n') { $notifComEvent = false; } else { $notifComEvent = true; } $html = '<div class="text-right" ><a href="./?mod=auth&action=pageSuppress" class="btn btn-default">Supprimer mon compte</a></div>'; $html .= $this->creerFormProfil($mail, $notifEvent, $notifComEvent); $this->body = SiteConfig::forgerBlock('Compte', $message . $html); $this->head = '<title>' . $this->nomSite . ' - Compte </title>' . PHP_EOL; $this->addCkeLibs(); }