Skip to content

Commit

Permalink
Merge pull request #2 from katzwebservices/develop
Browse files Browse the repository at this point in the history
I forgot I removed `functions.php` on purpose
  • Loading branch information
zackkatz authored Feb 2, 2017
2 parents dff86fc + ece1fa0 commit 7c6361b
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 156 deletions.
69 changes: 0 additions & 69 deletions functions.php

This file was deleted.

10 changes: 1 addition & 9 deletions hidden.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@
Description: Add hidden fields to the popular Contact Form 7 plugin.
Author: Katz Web Services, Inc.
Author URI: http://www.katz.co
Version: 2.0.1
Version: 2.0.2
Text Domain: cf7_modules
Domain Path: languages
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

add_action( 'plugins_loaded', 'contact_form_7_hidden_fields_load_functions' );

function contact_form_7_hidden_fields_load_functions() {
if ( ! function_exists( 'contact_form_7_modules_promo_message' ) ) {
include_once plugin_dir_path( __FILE__ ) . 'functions.php';
}
}

add_action('plugins_loaded', 'contact_form_7_hidden_fields', 11);

function contact_form_7_hidden_fields() {
Expand Down
Binary file modified languages/en_US.mo
Binary file not shown.
97 changes: 29 additions & 68 deletions languages/en_US.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Contact Form 7 Modules: Send All Fields\n"
"POT-Creation-Date: 2017-02-01 18:38-0700\n"
"PO-Revision-Date: 2017-02-01 18:38-0700\n"
"POT-Creation-Date: 2017-02-01 18:49-0700\n"
"PO-Revision-Date: 2017-02-01 18:49-0700\n"
"Last-Translator: Katz Web Services, Inc. <[email protected]>\n"
"Language-Team: Zack Katz <[email protected]>\n"
"Language: en_US\n"
Expand All @@ -13,158 +13,119 @@ msgstr ""
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SearchPath-0: .\n"

#: functions.php:46
msgid "Hide this message"
msgstr ""

#: functions.php:47
msgid "Want to integrate your form with a newsletter?"
msgstr ""

#: functions.php:48
msgid "Don't have a Constant Contact account?"
msgstr ""

#: functions.php:49
msgid "Try Constant Contact for free"
msgstr ""

#: functions.php:50
msgid "for 15 days!"
msgstr ""

#: functions.php:51
msgid ""
"The Contact Form 7 Constant Contact Module makes it super-simple to add your "
"contacts to an email newsletter. Simply sign up for a free trial at Constant "
"Contact, enter your details, and you're ready to rock."
msgstr ""

#: functions.php:52
msgid "Add Newsletter Support"
msgstr ""

#: functions.php:53
msgid "Install Contact Form 7 - Constant Contact Module"
msgstr ""

#: functions.php:54
msgid "It&rsquo;s easy!"
msgstr ""

#: hidden.php:46
#: hidden.php:38
msgid ""
"The Contact Form 7 is installed, but you must activate Contact Form 7 below "
"for the Hidden Fields Module to work."
msgstr ""

#: hidden.php:48
#: hidden.php:40
msgid ""
"The Contact Form 7 plugin must be installed for the Hidden Fields Module to "
"work."
msgstr ""

#: hidden.php:50
#: hidden.php:42
msgid "Install Now."
msgstr ""

#: hidden.php:285
#: hidden.php:277
msgctxt "the name of the field button in CF7"
msgid "hidden"
msgstr ""

#: hidden.php:294
#: hidden.php:286
#, php-format
msgid "Generate a form tag for a hidden field. For more details, see %s."
msgstr ""

#: hidden.php:295
#: hidden.php:287
msgid "the plugin page on WordPress.org"
msgstr ""

#: hidden.php:305
#: hidden.php:297
msgid "Name"
msgstr ""

#: hidden.php:313
#: hidden.php:305
msgid "ID attribute"
msgstr ""

#: hidden.php:314
#: hidden.php:306
msgid "optional"
msgstr ""

#: hidden.php:320
#: hidden.php:312
msgid "Value"
msgstr ""

#: hidden.php:326
#: hidden.php:318
msgid "Use this text as watermark?"
msgstr ""

#: hidden.php:332
#: hidden.php:324
msgid "Dynamic Values"
msgstr ""

#: hidden.php:336
#: hidden.php:328
msgid ""
"To use dynamic data from the post or page the form is embedded on, you can "
"use the following values:"
msgstr ""

#: hidden.php:339
#: hidden.php:331
msgid "<code>post_title</code>: The title of the post/page"
msgstr ""

#: hidden.php:340
#: hidden.php:332
msgid "<code>post_url</code>: The URL of the post/page"
msgstr ""

#: hidden.php:341
#: hidden.php:333
msgid ""
"<code>post_category</code>: The categories the post is in, comma-separated"
msgstr ""

#: hidden.php:342
#: hidden.php:334
msgid "<code>post_date</code>: The date the post/page was created"
msgstr ""

#: hidden.php:343
#: hidden.php:335
msgid "<code>post_author</code>: The name of the author of the post/page"
msgstr ""

#: hidden.php:345
#: hidden.php:337
msgid "The following values will be replaced if an user is logged in:"
msgstr ""

#: hidden.php:347
#: hidden.php:339
msgid "<code>user_name</code>: User Login"
msgstr ""

#: hidden.php:348
#: hidden.php:340
msgid "<code>user_id</code>: User ID"
msgstr ""

#: hidden.php:349
#: hidden.php:341
msgid "<code>user_email</code>: User Email Address"
msgstr ""

#: hidden.php:350
#: hidden.php:342
msgid ""
"<code>user_display_name</code>: Display Name (Generally the first and last "
"name of the user)"
msgstr ""

#: hidden.php:364
#: hidden.php:356
msgid "Insert Tag"
msgstr ""

#: hidden.php:370
#: hidden.php:362
#, php-format
msgid ""
"To use the value input through this field in a mail field, you need to "
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Add this to your `functions.php` file: `add_filter('wpcf7_send_all_fields_send_e

== Changelog ==

= 2.0.1 on February 1, 2017 =
= 2.0.1 & 2.0.2 on February 1, 2017 =

* Confirmed compatibility with WordPress 4.7.2
* Updated to work with Contact Form 7 4.6
Expand Down
10 changes: 1 addition & 9 deletions send-all-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@
Description: Send all submitted fields in the message body using one simple tag: <code>[all-fields]</code>
Author: Katz Web Services, Inc.
Author URI: http://www.katz.co
Version: 2.0.1
Version: 2.0.2
Text Domain: cf7_modules
Domain Path: languages
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

add_action( 'plugins_loaded', 'all_fields_wpcf7_load_functions' );

function all_fields_wpcf7_load_functions() {
if ( ! function_exists( 'contact_form_7_modules_promo_message' ) ) {
include_once plugin_dir_path( __FILE__ ) . 'functions.php';
}
}

add_filter('wpcf7_mail_components', 'all_fields_wpcf7_before_send_mail');

function all_fields_wpcf7_before_send_mail($array) {
Expand Down

0 comments on commit 7c6361b

Please sign in to comment.