本文整理汇总了PHP中SiteConfig::forgerBlock方法的典型用法代码示例。如果您正苦于以下问题:PHP SiteConfig::forgerBlock方法的具体用法?PHP SiteConfig::forgerBlock怎么用?PHP SiteConfig::forgerBlock使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SiteConfig
的用法示例。
在下文中一共展示了SiteConfig::forgerBlock方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pageProfil
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;
}
示例2: pageBase
public function pageBase()
{
$this->body = SiteConfig::forgerBlock('Contact ', $this->mailVierge . $this->getContactForm());
$this->head = '<title>' . $this->nomSite . ' - Contact </title>' . PHP_EOL;
}
示例3: pageOptions
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);
}
示例4: displayReponseForm
private function displayReponseForm()
{
$content = '
<div id="contact">
' . $this->formInfos . '
</div>';
return SiteConfig::forgerBlock('Réagissez à cet article', $content);
}
示例5: pageProfil
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();
}