项目作者: nliautaud

项目描述 :
Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
高级语言: PHP
项目地址: git://github.com/nliautaud/p01contact.git
创建时间: 2014-03-26T11:58:15Z
项目社区:https://github.com/nliautaud/p01contact

开源协议:MIT License

下载


p01contact

Create contact forms by writing simple tags.



Installation

Download the files.

For GetSimple CMS, place the p01-contact directory and the file p01-contact_gs.php in plugins/.

For Pico CMS, place the p01-contact directory in plugins/ and rename-it PicoContact.

Compatibility : PHP 5.4+

Usage as a plugin

Just write tags in your pages.

  1. This is a default contact form :
  2. (% contact %)
  3. Simple.

Follow the syntax to create custom forms.

  1. (% contact en :
  2. subject => A locked subject,
  3. radio "I'd like to contact you" = a little | a lot |: passionately,
  4. select "Department" (the floor you look for) = Silly walks :| Strange things,
  5. email!,
  6. message =< Bla bla placeholder,
  7. checkbox! "I'm in control",
  8. askcopy
  9. %)

Details about usage as a plugin can be found in the wiki :

Usage as a PHP script

The simplest method is to include the script, create a new instance and parse strings containing tags using the syntax.

  1. include 'p01-contact/P01contact.php';
  2. $p01contact = new P01contact();
  3. $content = 'This is a default contact form : (% contact %)'
  4. $content = $p01contact->parse($content);