1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

Added Contact Info Template

This commit is contained in:
Cameron
2013-04-30 03:07:24 -07:00
parent a8a257f8d2
commit 163a5e5ade
2 changed files with 14 additions and 6 deletions

View File

@@ -22,10 +22,6 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
require_once(HEADERF);
if (!vartrue($CONTACT_FORM))
{
if (file_exists(THEME."contact_template.php"))
@@ -156,8 +152,13 @@ if(isset($_POST['send-contactus']))
}
if(SITECONTACTINFO && $CONTACT_INFO)
if(SITECONTACTINFO)
{
if(!isset($CONTACT_INFO))
{
$CONTACT_INFO = e107::getCoreTemplate('contact','info');
}
$text = $tp->parseTemplate($CONTACT_INFO, TRUE, vartrue($contact_shortcodes));
$ns -> tablerender(LANCONTACT_01, $text,"contact");
}

View File

@@ -2,8 +2,8 @@
// $Id$
if (!defined('e107_INIT')) { exit; }
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:97%"); }
/*
if(!isset($CONTACT_INFO))
{
$CONTACT_INFO = "
@@ -16,8 +16,15 @@ if(!isset($CONTACT_INFO))
</tr>
</table>";
}
*/
$CONTACT_TEMPLATE['info'] = "
<div class='contact-info' >
<address>{SITECONTACTINFO}</address>
</div>
";
$CONTACT_TEMPLATE['menu'] = '