Skip to content

wdburgdorf/p01contact

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

p01contact

Create contact forms by writing simple tags.

p01-contact is natively a plugin for GetSimple CMS.

Live examples, syntax and settings are documented in the Wiki

Installation

Download the last stable release or the development code.

For GetSimple CMS, unzip it in the plugins/ directory.

Use

As a PHP script

Include the script, create a new instance, define a default email address and parse a string containing tags using the syntax.

include 'path/to/p01-contact/p01-contact.php';

$p01contact = new P01contact();
$p01contact->default_email = '[email protected]';

$content = 'This is a default contact form : (% contact %)'
$content = $p01contact->parse($content);

As a GetSimple plugin

Just write tags in your pages according to the syntax. Reminds you to fill the Meta Description accessible in page options. If you don't, GetSimple will show the tag source in the source code of the output page.

This is a default contact form :

(% contact %)

Simple.

You can also use it in components or templates by manipulating the variable $p01contact, already initialized. For example, to add a default contact form in your sidebar :

<?php
get_component('sidebar');
echo $p01contact->parse('(% contact %)');
?>

About

Create contact forms by writing simple tags

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%