From 3ec05a1d121578d6a218453652aa0a6f983a88ca Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 6 Mar 2013 15:04:12 -0800 Subject: [PATCH] Simple 'Contact Us' menu item. Needs security image and other options added. Ajax posting? --- e107_plugins/contact/contact_menu.php | 40 +++++++++++++++++++++++++++ e107_plugins/contact/plugin.xml | 4 +++ 2 files changed, 44 insertions(+) create mode 100644 e107_plugins/contact/contact_menu.php create mode 100644 e107_plugins/contact/plugin.xml diff --git a/e107_plugins/contact/contact_menu.php b/e107_plugins/contact/contact_menu.php new file mode 100644 index 000000000..beabd3267 --- /dev/null +++ b/e107_plugins/contact/contact_menu.php @@ -0,0 +1,40 @@ +'; + + +//XXX Template must conform to Bootstrap specs: http://twitter.github.com/bootstrap/base-css.html#forms +//TODO Security Image. + +$template = ' +
+
+ + {CONTACT_NAME} +
+ +
+ + {CONTACT_EMAIL} +
+
+ + {CONTACT_BODY=rows=5&cols=50} +
+ {CONTACT_SUBMIT_BUTTON} +
+ '; + +$foot = ''; + + +$contact_shortcodes = e107::getScBatch('contact'); +$text = $tp->parseTemplate($head. $template . $foot, true, $contact_shortcodes); + + +$ns->tablerender("Contact Us", $text, 'contact-menu'); + + +?> \ No newline at end of file diff --git a/e107_plugins/contact/plugin.xml b/e107_plugins/contact/plugin.xml new file mode 100644 index 000000000..159cabee3 --- /dev/null +++ b/e107_plugins/contact/plugin.xml @@ -0,0 +1,4 @@ + + + menu + \ No newline at end of file