1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-12 00:19:46 +01:00
php-e107/e107_core/templates/contact_template.php

149 lines
4.5 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2016 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Contact Template
*/
// $Id$
2006-12-02 04:36:16 +00:00
if (!defined('e107_INIT')) { exit; }
$CONTACT_WRAPPER['info']['CONTACT_INFO'] = "<div>{---}</div>";
2021-02-16 09:22:12 -08:00
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=organization'] = "<h4>{---}</h4>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=message'] = "<p>{---}</p>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=address'] = "<address>{GLYPH=fa-map-marker} {---}</address>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=email1'] = "<div>{GLYPH=fa-envelope} {---}</div>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=email2'] = "<div>{GLYPH=fa-envelope} {---}</div>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=phone1'] = "<div>{GLYPH=fas-phone-alt} {---}</div>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=phone2'] = "<div>{GLYPH=fas-phone-alt} {---}</div>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=phone3'] = "<div>{GLYPH=fas-phone-alt} {---}</div>";
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=fax'] = "<div>{GLYPH=fa-fax} {---}</div>";
2021-02-16 09:22:12 -08:00
$CONTACT_WRAPPER['info']['CONTACT_INFO: type=hours'] = "<div>{GLYPH=fa-clock} {---}</div>";
2006-12-02 04:36:16 +00:00
2013-04-30 03:07:24 -07:00
$CONTACT_TEMPLATE['info'] = "
2006-12-02 04:36:16 +00:00
2013-04-30 03:09:06 -07:00
<div id='contactInfo' >
<!-- Backward Compat. Contact Info -->
{SITECONTACTINFO}
<!-- New Contact Info -->
2021-02-16 09:22:12 -08:00
{CONTACT_INFO: type=organization}
{CONTACT_INFO: type=message}
<div class='row'>
2021-02-16 09:22:12 -08:00
<div class ='col-md-6 col-lg-4'>
{CONTACT_INFO: type=address}
<div class='form-group'>
{CONTACT_INFO: type=phone1}
{CONTACT_INFO: type=phone2}
{CONTACT_INFO: type=phone3}
{CONTACT_INFO: type=fax}
</div>
{CONTACT_INFO: type=email1}
{CONTACT_INFO: type=email2}
2021-02-16 09:22:12 -08:00
<br />
{CONTACT_INFO: type=hours}
</div>
2021-02-16 09:22:12 -08:00
<div class ='col-md-6 col-lg-8 flex-row'>
{CONTACT_MAP: zoom=city}
</div>
</div>
2013-04-30 03:07:24 -07:00
</div>
";
2006-12-02 04:36:16 +00:00
2013-03-09 01:08:43 -08:00
$CONTACT_TEMPLATE['menu'] = '
2013-04-30 03:09:06 -07:00
<div class="contactMenuForm">
<div class="control-group form-group mb-3">
<label for="contactName">'.LANCONTACT_03.'</label>
{CONTACT_NAME}
2013-03-09 01:08:43 -08:00
</div>
<div class="control-group form-group mb-3">
<label class="control-label" for="contactEmail">'.LANCONTACT_04.'</label>
2013-03-09 01:08:43 -08:00
{CONTACT_EMAIL}
</div>
<div class="control-group form-group mb-3">
<label for="contactBody" >'.LANCONTACT_06.'</label>
{CONTACT_BODY=rows=5&cols=30}
2013-03-09 01:08:43 -08:00
</div>
<div class="form-group mb-3"><label for="gdpr">'.LANCONTACT_24.'</label>
<div class="checkbox form-check">
<label>{CONTACT_GDPR_CHECK} '.LANCONTACT_21.'</label>
<div class="help-block">{CONTACT_GDPR_LINK}</div>
</div>
</div>
{CONTACT_SUBMIT_BUTTON: class=btn btn-sm btn-small btn-primary button}
2013-03-09 01:08:43 -08:00
</div>
';
2013-03-09 01:08:43 -08:00
// Shortcode wrappers.
$CONTACT_WRAPPER['form']['CONTACT_IMAGECODE'] = "<div class='control-group form-group'><label for='code-verify'>{CONTACT_IMAGECODE_LABEL}</label> {---}";
$CONTACT_WRAPPER['form']['CONTACT_IMAGECODE_INPUT'] = "{---}</div>";
$CONTACT_WRAPPER['form']['CONTACT_EMAIL_COPY'] = "<div class='control-group form-group'>{---}".LANCONTACT_07."</div>";
$CONTACT_WRAPPER['form']['CONTACT_PERSON'] = "<div class='control-group form-group'><label for='contactPerson'>".LANCONTACT_14."</label>{---}</div>";
$CONTACT_TEMPLATE['form'] = "
2006-12-02 04:36:16 +00:00
<form action='".e_SELF."' method='post' id='contactForm' >
2006-12-02 04:36:16 +00:00
{CONTACT_PERSON}
<div class='control-group form-group'><label for='contactName'>".LANCONTACT_03."</label>
{CONTACT_NAME}
</div>
<div class='control-group form-group'><label for='contactEmail'>".LANCONTACT_04."</label>
{CONTACT_EMAIL}
</div>
<div class='control-group form-group'><label for='contactSubject'>".LANCONTACT_05."</label>
{CONTACT_SUBJECT}
</div>
{CONTACT_EMAIL_COPY}
<div class='control-group form-group'><label for='contactBody'>".LANCONTACT_06."</label>
{CONTACT_BODY}
</div>
2006-12-02 04:36:16 +00:00
{CONTACT_IMAGECODE}
{CONTACT_IMAGECODE_INPUT}
<div class='form-group'><label for='gdpr'>".LANCONTACT_24."</label>
<div class='checkbox'>
<label>{CONTACT_GDPR_CHECK} ".LANCONTACT_21."</label>
<div class='help-block'>{CONTACT_GDPR_LINK}</div>
</div>
</div>
<div class='form-group'>
2012-06-20 01:12:33 +00:00
{CONTACT_SUBMIT_BUTTON}
</div>
2006-12-02 04:36:16 +00:00
</form>";
// Set the layout and order of the info and form.
$CONTACT_TEMPLATE['layout'] = '{---CONTACT-INFO---}
{---CONTACT-FORM---}
';
// Customize the email subject
// Variables: CONTACT_SUBJECT and CONTACT_PERSON as well as any custom fields set in the form. )
$CONTACT_TEMPLATE['email']['subject'] = "{CONTACT_SUBJECT}";
2006-12-02 04:36:16 +00:00