From ece1fa03007f2ae6bda618125b4176cb841f23d7 Mon Sep 17 00:00:00 2001 From: Zack Katz Date: Wed, 1 Feb 2017 18:50:30 -0700 Subject: [PATCH] I forgot I removed `functions.php` on purpose --- functions.php | 69 ------------------------------- hidden.php | 10 +---- languages/en_US.mo | Bin 741 -> 741 bytes languages/en_US.po | 97 +++++++++++++------------------------------- readme.txt | 2 +- send-all-fields.php | 10 +---- 6 files changed, 32 insertions(+), 156 deletions(-) delete mode 100644 functions.php diff --git a/functions.php b/functions.php deleted file mode 100644 index 775f144..0000000 --- a/functions.php +++ /dev/null @@ -1,69 +0,0 @@ - - {{hide_text}} -

{{want_to}}

- Constant Contact -

{{dont_have}} {{try_free}} {{15_days}}

-

{{description}}

-

{{add_support}} - {{its_easy}}

-
- -EOL; - - $strings = array( - 'ctct_url' => 'https://katz.si/4i', - 'hide_link' => esc_url_raw( add_query_arg( 'hide', 'cf7_modules_promo_message' ) ), - 'hide_text' => esc_html__( 'Hide this message', 'cf7_modules' ), - 'want_to' => esc_html__( 'Want to integrate your form with a newsletter?', 'cf7_modules' ), - 'dont_have' => esc_html__( 'Don\'t have a Constant Contact account?', 'cf7_modules' ), - 'try_free' => esc_html__( 'Try Constant Contact for free', 'cf7_modules' ), - '15_days' => esc_html__( 'for 15 days!', 'cf7_modules' ), - 'description' => esc_html__( '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.', 'cf7_modules' ), - 'add_support' => esc_html__( 'Add Newsletter Support', 'cf7_modules' ), - 'install_title' => esc_html__( 'Install Contact Form 7 - Constant Contact Module', 'cf7_modules' ), - 'its_easy' => esc_html__( 'It’s easy!', 'cf7_modules' ), - 'admin_url' => esc_url_raw( admin_url( 'plugin-install.php?tab=plugin-information&plugin=contact-form-7-newsletter&TB_iframe=true&width=600&height=800' ) ), - ); - - foreach ( $strings as $key => $string ) { - $message = str_replace( '{{' . $key . '}}', $string, $message ); - } - - return $message; -} - -add_filter( 'wpcf7_cf7com_links', 'contact_form_7_modules_links' ); - -function contact_form_7_modules_links($links) { - return str_replace( '', ' - Try Gravity Forms', $links ); -} \ No newline at end of file diff --git a/hidden.php b/hidden.php index 1c6b6e7..2d1f0c8 100644 --- a/hidden.php +++ b/hidden.php @@ -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() { diff --git a/languages/en_US.mo b/languages/en_US.mo index 2fe35db03662715f9fb36571e281b8dbc2f76e98..5cdc28cf869cf78cc5412986d69e9b164a7ba4f5 100644 GIT binary patch delta 19 ZcmaFL`jmCTG$s?vi8IuI\n" "Language-Team: Zack Katz \n" "Language: en_US\n" @@ -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’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 "post_title: The title of the post/page" msgstr "" -#: hidden.php:340 +#: hidden.php:332 msgid "post_url: The URL of the post/page" msgstr "" -#: hidden.php:341 +#: hidden.php:333 msgid "" "post_category: The categories the post is in, comma-separated" msgstr "" -#: hidden.php:342 +#: hidden.php:334 msgid "post_date: The date the post/page was created" msgstr "" -#: hidden.php:343 +#: hidden.php:335 msgid "post_author: 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 "user_name: User Login" msgstr "" -#: hidden.php:348 +#: hidden.php:340 msgid "user_id: User ID" msgstr "" -#: hidden.php:349 +#: hidden.php:341 msgid "user_email: User Email Address" msgstr "" -#: hidden.php:350 +#: hidden.php:342 msgid "" "user_display_name: 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 " diff --git a/readme.txt b/readme.txt index aa42619..8823218 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/send-all-fields.php b/send-all-fields.php index 3c4adc2..6537ccd 100644 --- a/send-all-fields.php +++ b/send-all-fields.php @@ -5,21 +5,13 @@ Description: Send all submitted fields in the message body using one simple tag: [all-fields] 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) {