mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +02:00
Added Contact Info Template
This commit is contained in:
11
contact.php
11
contact.php
@@ -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");
|
||||
}
|
||||
|
@@ -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'] = '
|
||||
|
Reference in New Issue
Block a user