From 3f260ab22c4b5a43bdc30f073c0a1ee3f234b430 Mon Sep 17 00:00:00 2001
From: franck
Date: Sat, 6 Mar 2021 09:52:15 +0100
Subject: [PATCH] Add publicContactMeFormBeforeContent and
publicContactMeFormAfterContent behaviors, closes #4
---
_define.php | 13 +++++++------
default-templates/currywurst/contact_me.html | 4 ++++
default-templates/dotty/contact_me.html | 4 ++++
default-templates/mustek/contact_me.html | 4 ++++
4 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/_define.php b/_define.php
index 39e62d2..95a9408 100644
--- a/_define.php
+++ b/_define.php
@@ -10,14 +10,15 @@
* @copyright Olivier Meunier
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
-
-if (!defined('DC_RC_PATH')) {return;}
+if (!defined('DC_RC_PATH')) {
+ return;
+}
$this->registerModule(
- "ContactMe", // Name
- "Add a simple contact form on your blog", // Description
- "Olivier Meunier and contributors", // Author
- '1.11.1', // Version
+ 'ContactMe', // Name
+ 'Add a simple contact form on your blog', // Description
+ 'Olivier Meunier and contributors', // Author
+ '1.12', // Version
[
'requires' => [['core', '2.16']], // Dependencies
'permissions' => 'admin', // Permissions
diff --git a/default-templates/currywurst/contact_me.html b/default-templates/currywurst/contact_me.html
index 676e507..ca8b7ee 100644
--- a/default-templates/currywurst/contact_me.html
+++ b/default-templates/currywurst/contact_me.html
@@ -29,6 +29,8 @@ {{tpl:ContactMePageTitle encode_html="1"}}
{{tpl:ContactMeFormCaption}}
+
+ {{tpl:SysBehavior behavior="publicContactMeFormAfterContent"}}
diff --git a/default-templates/dotty/contact_me.html b/default-templates/dotty/contact_me.html
index a69ae23..85192d6 100644
--- a/default-templates/dotty/contact_me.html
+++ b/default-templates/dotty/contact_me.html
@@ -29,6 +29,8 @@ {{tpl:ContactMePageTitle encode_html="1"}}
{{tpl:ContactMeFormCaption}}