Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Contact Listing for WP Job Manager |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.3.0
- includes/forms/ninjaforms.php +53 -1
- languages/wp-job-manager-contact-listing.pot +11 -3
- readme.txt +10 -4
- wp-job-manager-contact-listing.php +1 -1
includes/forms/ninjaforms.php
CHANGED
@@ -37,6 +37,10 @@ class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_
|
|
37 |
public function setup_actions() {
|
38 |
add_action( 'job_manager_contact_listing_form_ninjaforms', array( $this, 'output_form' ) );
|
39 |
add_filter( 'nf_email_notification_process_setting', array( $this, 'notification_email' ), 10, 3 );
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -163,4 +167,52 @@ class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_
|
|
163 |
return $forms;
|
164 |
}
|
165 |
|
166 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
public function setup_actions() {
|
38 |
add_action( 'job_manager_contact_listing_form_ninjaforms', array( $this, 'output_form' ) );
|
39 |
add_filter( 'nf_email_notification_process_setting', array( $this, 'notification_email' ), 10, 3 );
|
40 |
+
|
41 |
+
if ( ! $this->is_pre_three ) {
|
42 |
+
Ninja_forms()->merge_tags[ 'wp-job-manager' ] = new Astoundify_NF_MergeTags_WPJobManager();
|
43 |
+
}
|
44 |
}
|
45 |
|
46 |
/**
|
167 |
return $forms;
|
168 |
}
|
169 |
|
170 |
+
}
|
171 |
+
|
172 |
+
if ( class_exists( 'NF_Abstracts_MergeTags' ) ) :
|
173 |
+
/**
|
174 |
+
* Custom merge tag for Ninja Forms THREE.
|
175 |
+
*
|
176 |
+
* Simply create a hidden field with {contact-email} tag and use
|
177 |
+
* the value of that field to send the email to.
|
178 |
+
*
|
179 |
+
* @since 1.3.0
|
180 |
+
*/
|
181 |
+
class Astoundify_NF_MergeTags_WPJobManager extends NF_Abstracts_MergeTags {
|
182 |
+
|
183 |
+
protected $id = 'wp-job-manager';
|
184 |
+
|
185 |
+
public function __construct() {
|
186 |
+
parent::__construct();
|
187 |
+
|
188 |
+
$this->title = __( 'WP Job Manager', 'wp-job-manager-contact-listing' );
|
189 |
+
|
190 |
+
$this->merge_tags = array(
|
191 |
+
'email' => array(
|
192 |
+
'id' => 'email',
|
193 |
+
'tag' => '{contact-email}',
|
194 |
+
'label' => __( 'Contact Email', 'wp-job-manager-contact-listing' ),
|
195 |
+
'callback' => 'contact_email'
|
196 |
+
)
|
197 |
+
);
|
198 |
+
}
|
199 |
+
|
200 |
+
protected function contact_email() {
|
201 |
+
$post = get_post();
|
202 |
+
|
203 |
+
// try the wp job manager fields
|
204 |
+
$contact = $post->_application ? $post->_application : $post->_candidate_email;
|
205 |
+
|
206 |
+
// use listing owner data
|
207 |
+
if ( ! $contact ) {
|
208 |
+
$owner_info = get_userdata( $post->post_author );
|
209 |
+
|
210 |
+
if ( false !== $owner_info ) {
|
211 |
+
$contact = $owner_info->user_email;
|
212 |
+
}
|
213 |
+
}
|
214 |
+
|
215 |
+
return $contact;
|
216 |
+
}
|
217 |
+
}
|
218 |
+
endif;
|
languages/wp-job-manager-contact-listing.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the WP Job Manager - Contact Listing package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Job Manager - Contact Listing 1.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-contact-listing\n"
|
8 |
-
"POT-Creation-Date: 2016-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -19,10 +19,18 @@ msgid "%s a %s Form"
|
|
19 |
msgstr ""
|
20 |
|
21 |
#: includes/forms/cf7.php:107 includes/forms/gravityforms.php:104
|
22 |
-
#: includes/forms/ninjaforms.php:
|
23 |
msgid "Please select a form"
|
24 |
msgstr ""
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
#. Plugin Name of the plugin/theme
|
27 |
msgid "WP Job Manager - Contact Listing"
|
28 |
msgstr ""
|
2 |
# This file is distributed under the same license as the WP Job Manager - Contact Listing package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Job Manager - Contact Listing 1.3.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-contact-listing\n"
|
8 |
+
"POT-Creation-Date: 2016-09-29 13:14:49+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
msgstr ""
|
20 |
|
21 |
#: includes/forms/cf7.php:107 includes/forms/gravityforms.php:104
|
22 |
+
#: includes/forms/ninjaforms.php:135
|
23 |
msgid "Please select a form"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: includes/forms/ninjaforms.php:188
|
27 |
+
msgid "WP Job Manager"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: includes/forms/ninjaforms.php:194
|
31 |
+
msgid "Contact Email"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
#. Plugin Name of the plugin/theme
|
35 |
msgid "WP Job Manager - Contact Listing"
|
36 |
msgstr ""
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Contributors: Astoundify
|
|
7 |
Tags: job, job listing, job apply, gravity forms, wp job manager, gravity forms, gravityforms, ninja forms, ninjaforms, contact form 7, cf7
|
8 |
Requires at least: 4.4
|
9 |
Tested up to: 4.6
|
10 |
-
Stable Tag: 1.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
@@ -50,12 +50,12 @@ The Job/Resume listing must also have an email address associated with it, not a
|
|
50 |
|
51 |
You **must** create a *hidden* field with the following specific settings:
|
52 |
|
53 |
-
* **Label:** `
|
54 |
-
* **Default Value:** `
|
55 |
|
56 |
The Job/Resume listing must also have an email address associated with it, not a URL to a website.
|
57 |
|
58 |
-
**Next**, create a new form *email* notification with the "To" field set to
|
59 |
|
60 |
= What settings do I need for Contact Form 7? =
|
61 |
|
@@ -75,6 +75,12 @@ If you have purchased Jobify and still have questions, please post on our dedica
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
= 1.2.3: September 12, 2016 =
|
79 |
|
80 |
* Ninja Forms compatibility.
|
7 |
Tags: job, job listing, job apply, gravity forms, wp job manager, gravity forms, gravityforms, ninja forms, ninjaforms, contact form 7, cf7
|
8 |
Requires at least: 4.4
|
9 |
Tested up to: 4.6
|
10 |
+
Stable Tag: 1.3.0
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
50 |
|
51 |
You **must** create a *hidden* field with the following specific settings:
|
52 |
|
53 |
+
* **Label:** `Contact Email`
|
54 |
+
* **Default Value:** `{contact-email}`
|
55 |
|
56 |
The Job/Resume listing must also have an email address associated with it, not a URL to a website.
|
57 |
|
58 |
+
**Next**, create a new form *email* notification with the "To" field set to the value of the **Contact Email** hidden field you created. Fill the body with the information you want to send to the listing owner.
|
59 |
|
60 |
= What settings do I need for Contact Form 7? =
|
61 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.3.0: September 29, 2016 =
|
79 |
+
|
80 |
+
* New: Ninja Forms THREE merge tag for routing emails to the listing or candidate email address. Update your existing hidden field with the merge tag {contact-email} and update your "To" email notification field to be the value of your hidden field.
|
81 |
+
|
82 |
+
See: http://docs.astoundify.com/article/81-ninja-form
|
83 |
+
|
84 |
= 1.2.3: September 12, 2016 =
|
85 |
|
86 |
* Ninja Forms compatibility.
|
wp-job-manager-contact-listing.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Contact job listings or resume listings with your choice of Gravity Forms, Ninja Forms, or Contact Form 7
|
6 |
* Author: Astoundify
|
7 |
* Author URI: http://astoundify.com
|
8 |
-
* Version: 1.
|
9 |
* Text Domain: wp-job-manager-contact-listing
|
10 |
* Domain Path: /languages
|
11 |
*/
|
5 |
* Description: Contact job listings or resume listings with your choice of Gravity Forms, Ninja Forms, or Contact Form 7
|
6 |
* Author: Astoundify
|
7 |
* Author URI: http://astoundify.com
|
8 |
+
* Version: 1.3.0
|
9 |
* Text Domain: wp-job-manager-contact-listing
|
10 |
* Domain Path: /languages
|
11 |
*/
|