1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-15 10:02:02 +02:00

#3684 - contact style ID

Create consistency (template name and template key)

e.g.
$CONTACT_TEMPLATE['menu'] = contact-menu
$FORUM_VIEWTOPIC_TEMPLATE['replies']  = forum-viewtopic-replies
This commit is contained in:
Tijn Kuyper 2019-09-17 14:59:25 +02:00
parent b45b25bad1
commit 2db9df45b1
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -263,7 +263,7 @@ if(SITECONTACTINFO)
}
$text = $tp->parseTemplate($CONTACT_INFO, true, vartrue($contact_shortcodes));
$ns -> tablerender(LANCONTACT_01, $text,"contact");
$ns->tablerender(LANCONTACT_01, $text,"contact-info");
}
@ -277,7 +277,7 @@ if(check_class($active) && isset($pref['sitecontacts']) && $pref['sitecontacts']
if(trim($text) != "")
{
$ns -> tablerender(LANCONTACT_02, $text, "contact");
$ns->tablerender(LANCONTACT_02, $text, "contact-form");
}
}
elseif($active == e_UC_MEMBER && ($pref['sitecontacts'] != e_UC_NOBODY))
@ -286,7 +286,7 @@ elseif($active == e_UC_MEMBER && ($pref['sitecontacts'] != e_UC_NOBODY))
$repl = array("<a class='alert-link' href='".e_SIGNUP."'>","</a>");
$message = LANCONTACT_16; // "You must be [registered] and signed-in to use this form.";
$ns -> tablerender(LANCONTACT_02, "<div class='alert alert-info'>".str_replace($srch, $repl, $message)."</div>", "contact");
$ns->tablerender(LANCONTACT_02, "<div class='alert alert-info'>".str_replace($srch, $repl, $message)."</div>", "contact");
}