mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
0b71c5a3b2
CLOSES #4849
40 lines
974 B
PHP
40 lines
974 B
PHP
<?php
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
e107::lan('core','contact');
|
|
|
|
$head = '<form id="contact-menu" action="'.e_HTTP.'contact.php" method="post" >';
|
|
|
|
|
|
//XXX Template must conform to Bootstrap specs: http://twitter.github.com/bootstrap/base-css.html#forms
|
|
//TODO Security Image.
|
|
|
|
|
|
$foot = '</form>';
|
|
|
|
$range = range(00,24);
|
|
$tp = e107::getParser();
|
|
$defs = array();
|
|
|
|
foreach($range as $val)
|
|
{
|
|
$inc = $tp->leadingZeros($val,2);
|
|
$legacy = 'LAN_CONTACT_'.$inc;
|
|
// $defs[$legacy] = 'LANCONTACT_'.$inc;
|
|
$defs['LANCONTACT_'.$inc] = 'LAN_CONTACT_'.$inc;
|
|
}
|
|
|
|
e107::getLanguage()->bcDefs($defs);
|
|
|
|
|
|
$template = e107::getCoreTemplate('contact','menu');
|
|
$contact_shortcodes = e107::getScBatch('contact');
|
|
$contact_shortcodes->wrapper('contact/menu');
|
|
$text = e107::getParser()->parseTemplate($head. $template . $foot, true, $contact_shortcodes);
|
|
|
|
|
|
e107::getRender()->tablerender(defset('LAN_CONTACT_00', 'Contact Us'), $text, 'contact-menu');
|
|
|
|
|