本文整理匯總了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();
}