-
Notifications
You must be signed in to change notification settings - Fork 15
GetSimple plugin
Nicolas Liautaud edited this page Oct 31, 2017
·
4 revisions
p01contact is natively a plugin for GetSimple CMS.
Download or clone the repository, then place the p01-contact/
directory and the file p01-contact_gs.php
in plugins/
.
Just write tags in your pages according to the syntax.
This is a default contact form :
(% contact %)
Simple.
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.
You can use it in components, themes 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 %)');
?>
The plugin settings are accessible in the GetSimple administration.
When Debug is enabled in the plugin settings, a debug report is shown before the pages.