Giter Club home page Giter Club logo

cf-statifier's Introduction

CF7 Static Form & Mail Content

Contributors: herooutoftime Donate link: http://www.herooutoftime.com Tags: contact form, contact form 7, cf7 Requires at least: 3.0.1 Tested up to: 3.4 Stable tag: 4.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Make CF7 (ContactForm 7) form & emails served via static files

Special thanks

Description

This plugin was written to ease the work with Contact Form 7, one of the most popular Wordpress plugins, by making all HTML related content available through static files. By placing additional settings in each form you can decide to statify your form & email contents.

  • Your forms and mails will be available through your filesystem and therefore easy to edit.
  • You can enable premailer to inline all your CSS automatically for each email you want to send.
  • With premailer enabled your emails will be multipart: HTML & plain text

This plugin is in an early stage. Please use with caution

Requirements

You will either need

PHP extension installed and enabled to use Premailer service.

Installation

  • Clone cf7-statifier to the /wp-content/plugins/ directory: git clone [email protected]:herooutoftime/cf-statifier.git
  • Or download the ZIP and upload to wp-content/plugins/
  • Activate the plugin through the 'Plugins' menu in WordPress

Usage

CF7-Statifier settings

static_file_enabled: yes
static_file_form: yes
static_file_mail: yes
static_file_mail_premailer: yes
static_file_mail_2: yes
static_file_mail_2_premailer: yes

Premailer settings

CF7-Statifier implements all options available through Premailer-API Add like above to *Additional settings`

static_file_premailer_fetchresult: yes | no
static_file_premailer_adaptor: nokogiri | hpricot
static_file_premailer_base_url: http://www.example.com
static_file_premailer_line_length: 75
static_file_premailer_link_query_string: ?utm_source=newsletter&utm_medium=email&utm_campaign=mycampaign
static_file_premailer_preserve_styles: yes | no
static_file_premailer_remove_ids: no | yes
static_file_premailer_remove_classes: no | yes
static_file_premailer_remove_comments: no | yes

Static files

Files will be written to the following directories (depending on your settings):

  • Form & unprocessed mail(s): [STYLESHEET_DIRECTORY]/cf_static
  • Processed mail(s): [STYLESHEET_DIRECTORY]/cf_static/cf7_proc
    • These files are regenerated when saving a CF7-entry!

Frequently Asked Questions

  • Q: Where should I store my static files for CF7?
  • A: The plugin searches for static files in your theme's directory via get_stylesheet_directory()

Changelog

1.0

  • Basic version

Upgrade Notice

cf-statifier's People

Watchers

Andreas Bilz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.