mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Contact Menu template fix.
This commit is contained in:
@@ -30,6 +30,28 @@ $sc_style['CONTACT_IMAGECODE_INPUT']['pre'] = "";
|
||||
$sc_style['CONTACT_IMAGECODE_INPUT']['post'] = "</td></tr>";
|
||||
|
||||
|
||||
|
||||
$CONTACT_TEMPLATE['menu'] = '
|
||||
<div>
|
||||
<div class="control-group">
|
||||
<label >Name</label>
|
||||
{CONTACT_NAME}
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="contactEmail">Email</label>
|
||||
{CONTACT_EMAIL}
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label>Comments</label>
|
||||
{CONTACT_BODY=rows=5&cols=50}
|
||||
</div>
|
||||
{CONTACT_SUBMIT_BUTTON}
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
|
||||
if(!isset($CONTACT_FORM))
|
||||
{
|
||||
$CONTACT_FORM = "
|
||||
|
@@ -10,28 +10,10 @@ $head = '<form id="contact-menu" action="'.e_BASE.'contact.php" method="post" >'
|
||||
//XXX Template must conform to Bootstrap specs: http://twitter.github.com/bootstrap/base-css.html#forms
|
||||
//TODO Security Image.
|
||||
|
||||
$template = '
|
||||
<div>
|
||||
<div class="control-group">
|
||||
<label >Name</label>
|
||||
{CONTACT_NAME}
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="contactEmail">Email</label>
|
||||
{CONTACT_EMAIL}
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label>Comments</label>
|
||||
{CONTACT_BODY=rows=5&cols=50}
|
||||
</div>
|
||||
{CONTACT_SUBMIT_BUTTON}
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
$foot = '</form>';
|
||||
|
||||
|
||||
$template = e107::getCoreTemplate('contact','menu');
|
||||
$contact_shortcodes = e107::getScBatch('contact');
|
||||
$text = $tp->parseTemplate($head. $template . $foot, true, $contact_shortcodes);
|
||||
|
||||
|
@@ -320,8 +320,8 @@ unset($uclist, $bcache);
|
||||
|
||||
if(!deftrue('e_POWEREDBY_DISABLE'))
|
||||
{
|
||||
// No IDs or Classes - hinder js disable.
|
||||
echo "<div style='margin:20px; text-align:center;position: display:block; position: relative; bottom: 90px; z-index:30000; opacity:1.0; color: silver'>Proudly powered by <a style='color:silver' href='http://e107.org/' title='e107 Content Management System'>e107</a></div>";
|
||||
// No IDs or Classes - hinder js disable.
|
||||
echo "<div style='text-align:center; display:block; position: absolute; width:100%;height:20px; margin-top:-30px; z-index:30000; opacity:1.0; color: silver'>Proudly powered by <a style='color:silver' href='http://e107.org/' title='e107 Content Management System'>e107</a></div>";
|
||||
}
|
||||
echo "\n</body>\n</html>";
|
||||
|
||||
|
Reference in New Issue
Block a user