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

Contact Menu template fix.

This commit is contained in:
Cameron
2013-03-09 01:08:43 -08:00
parent ce8ea83915
commit 72ae2c6fe8
3 changed files with 26 additions and 22 deletions

View File

@@ -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 = "

View File

@@ -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);

View File

@@ -321,7 +321,7 @@ 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>";
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>";