sturple/wpcf7-email-templates

This package is abandoned and no longer maintained. No replacement package was suggested.

Integration into WordPress Contact Form 7 Email Templates Using twig and php templates.

Installs: 77

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:wordpress-plugin

0.0.6 2016-06-09 03:13 UTC

This package is not auto-updated.

Last update: 2021-05-29 01:23:10 UTC


README

By Enabling the Contact Form 7 Email Templates Plugin, the email message areas are added to template variable body_message.

Timber (Twig) Templates

If Timber is installed add the following templates 'wpcf7-email-mail.twig' and 'wpcf7-email-mail-2.twig'.

Twig variables:

  • {{body_message}} - content area of email message (custom text)
  • {{posted.[name-of-field]}} ie if you use [your_email] then it would show up as {{posted.your_email}}

Important only use alpha numeric and underscores for post variables

Php Template

If using PHP templates then add the following templates 'includes/wpcf7/wpcf7-email-mail.php' and 'includes/wpcf7/wpcf7-email-mail-2.php'

    Php templates not implemented
   

Form Fields

Form Fields can now contain shortcodes. This is usefull for loading in a custom template ie

[custom-template template="form-compact.twig" class_label="sr-only" class_input="" ]
[custom-template template="form-inquiry.twig" class_label="col-sm-3" class_input="col-sm-9"]