Create contact forms by writing simple tags. Also a plugin for Pico CMS.
mus f270913214 1st commit | 1 yıl önce | |
---|---|---|
lang | 1 yıl önce | |
src | 1 yıl önce | |
wiki | 1 yıl önce | |
.gitignore | 1 yıl önce | |
.htaccess | 1 yıl önce | |
LICENSE | 1 yıl önce | |
PicoContact.php | 1 yıl önce | |
README.md | 1 yıl önce | |
style.css | 1 yıl önce |
Create contact forms by writing simple tags.
For Pico CMS, place the PicoContact
directory in /plugins/
, or clone directly into /plugins/PicoContact
Compatibility : PHP 5.4+
Just write tags in your pages.
This is a default contact form :
(% contact %)
Simple.
Follow the syntax to create custom forms.
(% contact en :
subject => A locked subject,
radio "I'd like to contact you" = a little | a lot |: passionately,
select "Department" (the floor you look for) = Silly walks :| Strange things,
email!,
message =< Bla bla placeholder,
checkbox! "I'm in control",
askcopy
%)
Details about usage as a plugin can be found in the wiki :
The simplest method is to include the script, create a new instance and parse strings containing tags using the syntax.
include 'p01-contact/P01contact.php';
$p01contact = new P01contact();
$content = 'This is a default contact form : (% contact %)'
$content = $p01contact->parse($content);