Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Contact Listing for WP Job Manager |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
includes/class-wp-job-manager-contact-listing-form.php
CHANGED
@@ -19,7 +19,7 @@ abstract class Astoundify_Job_Manager_Contact_Listing_Form extends Astoundify_Jo
|
|
19 |
*/
|
20 |
abstract protected function setup_actions();
|
21 |
abstract protected function get_forms();
|
22 |
-
abstract protected function output_form(
|
23 |
abstract protected function notification_email($arg1, $arg2, $arg3);
|
24 |
|
25 |
/**
|
19 |
*/
|
20 |
abstract protected function setup_actions();
|
21 |
abstract protected function get_forms();
|
22 |
+
abstract protected function output_form($form);
|
23 |
abstract protected function notification_email($arg1, $arg2, $arg3);
|
24 |
|
25 |
/**
|
includes/forms/cf7.php
CHANGED
@@ -38,7 +38,7 @@ class Astoundify_Job_Manager_Contact_Listing_Form_CF7 extends Astoundify_Job_Man
|
|
38 |
*
|
39 |
* @return void
|
40 |
*/
|
41 |
-
public function output_form(
|
42 |
$args = apply_filters( 'job_manager_contact_listing_cf7_apply_form_args', '' );
|
43 |
|
44 |
echo do_shortcode( sprintf( '[contact-form-7 id="%s" %s]', $form, $args ) );
|
@@ -51,10 +51,11 @@ class Astoundify_Job_Manager_Contact_Listing_Form_CF7 extends Astoundify_Job_Man
|
|
51 |
*
|
52 |
* @return string The email to notify.
|
53 |
*/
|
54 |
-
public function notification_email( $components, $cf7, $three ) {
|
55 |
-
$
|
|
|
56 |
|
57 |
-
if ( ! preg_match( '/^wpcf7-f(\d+)-p(\d+)-o(\d+)$/', $
|
58 |
return $components;
|
59 |
|
60 |
$post_id = (int) $matches[2];
|
38 |
*
|
39 |
* @return void
|
40 |
*/
|
41 |
+
public function output_form($form) {
|
42 |
$args = apply_filters( 'job_manager_contact_listing_cf7_apply_form_args', '' );
|
43 |
|
44 |
echo do_shortcode( sprintf( '[contact-form-7 id="%s" %s]', $form, $args ) );
|
51 |
*
|
52 |
* @return string The email to notify.
|
53 |
*/
|
54 |
+
public function notification_email( $components, $cf7, $three = null ) {
|
55 |
+
$submission = WPCF7_Submission::get_instance();
|
56 |
+
$unit_tag = $submission->get_meta( 'unit_tag' );
|
57 |
|
58 |
+
if ( ! preg_match( '/^wpcf7-f(\d+)-p(\d+)-o(\d+)$/', $unit_tag, $matches ) )
|
59 |
return $components;
|
60 |
|
61 |
$post_id = (int) $matches[2];
|
includes/forms/gravityforms.php
CHANGED
@@ -31,7 +31,7 @@ class Astoundify_Job_Manager_Contact_Listing_Form_GravityForms extends Astoundif
|
|
31 |
*
|
32 |
* @return void
|
33 |
*/
|
34 |
-
public function output_form(
|
35 |
$args = apply_filters( 'job_manager_contact_listing_gravityforms_apply_form_args', 'title="false" description="false" ajax="true"' );
|
36 |
|
37 |
echo do_shortcode( sprintf( '[gravityform id="%s" %s]', $form, $args ) );
|
31 |
*
|
32 |
* @return void
|
33 |
*/
|
34 |
+
public function output_form($form) {
|
35 |
$args = apply_filters( 'job_manager_contact_listing_gravityforms_apply_form_args', 'title="false" description="false" ajax="true"' );
|
36 |
|
37 |
echo do_shortcode( sprintf( '[gravityform id="%s" %s]', $form, $args ) );
|
includes/forms/ninjaforms.php
CHANGED
@@ -38,7 +38,7 @@ class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_
|
|
38 |
*
|
39 |
* @return void
|
40 |
*/
|
41 |
-
public function output_form(
|
42 |
$args = apply_filters( 'job_manager_contact_listing_ninjaforms_apply_form_args', '' );
|
43 |
|
44 |
echo do_shortcode( sprintf( '[ninja_forms_display_form id="%s" %s]', $form, $args ) );
|
38 |
*
|
39 |
* @return void
|
40 |
*/
|
41 |
+
public function output_form($form) {
|
42 |
$args = apply_filters( 'job_manager_contact_listing_ninjaforms_apply_form_args', '' );
|
43 |
|
44 |
echo do_shortcode( sprintf( '[ninja_forms_display_form id="%s" %s]', $form, $args ) );
|
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
=== WP Job Manager - Contact Listing ===
|
2 |
|
3 |
Author URI: http://astoundify.com
|
4 |
-
Plugin URI: https://
|
5 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=contact@appthemer.com&item_name=Donation+for+Astoundify WP Job Manager Contact Listing
|
6 |
Contributors: spencerfinnell
|
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: 3.5
|
9 |
Tested up to: 3.9.1
|
10 |
-
Stable Tag: 1.0.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
@@ -33,18 +33,16 @@ The plugin can also be used on any theme but no extra styling (outside the CSS t
|
|
33 |
|
34 |
= What settings do I need for Gravity Forms? =
|
35 |
|
36 |
-
**Video Tutorial:** https://vimeo.com/85469722
|
37 |
|
38 |
You **must** create a *hidden* field with the following specific settings:
|
39 |
|
40 |
-
* **Label:**
|
41 |
-
* **Allow field to be dynamically populated:** `
|
42 |
-
|
43 |
-
[View an image of the settings](https://i.cloudup.com/XfRsp5B1VH.png)
|
44 |
|
45 |
The Job/Resume listing must also have an email address associated with it, not a URL to a website.
|
46 |
|
47 |
-
**Next**, create a new form notification with the "Send To" field set to "Email" and "
|
48 |
|
49 |
= What settings do I need for Ninja Forms? =
|
50 |
|
@@ -52,10 +50,8 @@ The Job/Resume listing must also have an email address associated with it, not a
|
|
52 |
|
53 |
You **must** create a *hidden* field with the following specific settings:
|
54 |
|
55 |
-
* **Label:** `
|
56 |
-
* **Default Value:** `Post/Page ID`
|
57 |
-
|
58 |
-
[View an image of the settings](https://i.cloudup.com/pnfVzYBFiN.png)
|
59 |
|
60 |
The Job/Resume listing must also have an email address associated with it, not a URL to a website.
|
61 |
|
@@ -79,6 +75,11 @@ If you have purchased Jobify and still have questions, please post on our dedica
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
|
|
82 |
= 1.0.1: July 24, 2014 =
|
83 |
|
84 |
* Fix: Update for compatibility with older PHP versions to avoid errors.
|
1 |
=== WP Job Manager - Contact Listing ===
|
2 |
|
3 |
Author URI: http://astoundify.com
|
4 |
+
Plugin URI: https://wordpress.org/plugins/wp-job-manager-contact-listing/
|
5 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=contact@appthemer.com&item_name=Donation+for+Astoundify WP Job Manager Contact Listing
|
6 |
Contributors: spencerfinnell
|
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: 3.5
|
9 |
Tested up to: 3.9.1
|
10 |
+
Stable Tag: 1.0.2
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
33 |
|
34 |
= What settings do I need for Gravity Forms? =
|
35 |
|
36 |
+
**Video Tutorial:** https://vimeo.com/85469722/
|
37 |
|
38 |
You **must** create a *hidden* field with the following specific settings:
|
39 |
|
40 |
+
* **Label:** Listing ID
|
41 |
+
* **Allow field to be dynamically populated:** `{entry_id}`
|
|
|
|
|
42 |
|
43 |
The Job/Resume listing must also have an email address associated with it, not a URL to a website.
|
44 |
|
45 |
+
**Next**, create a new form notification with the "Send To" field set to "Email" and "no-reply@listingowner.com" as the value.
|
46 |
|
47 |
= What settings do I need for Ninja Forms? =
|
48 |
|
50 |
|
51 |
You **must** create a *hidden* field with the following specific settings:
|
52 |
|
53 |
+
* **Label:** `Listing ID`
|
54 |
+
* **Default Value:** `Post/Page ID (if available)`
|
|
|
|
|
55 |
|
56 |
The Job/Resume listing must also have an email address associated with it, not a URL to a website.
|
57 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.0.2: August 5, 2014 =
|
79 |
+
|
80 |
+
* Fix: Make sure the correct instance of Contact Form 7 submission form is always found.
|
81 |
+
* Fix: Update README to reflect new field settings.
|
82 |
+
|
83 |
= 1.0.1: July 24, 2014 =
|
84 |
|
85 |
* Fix: Update for compatibility with older PHP versions to avoid errors.
|
wp-job-manager-contact-listing.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP Job Manager - Contact Listing
|
4 |
-
* Plugin URI:
|
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.0.
|
9 |
* Text Domain: wp-job-manager-contact-listing
|
10 |
*/
|
11 |
|
@@ -169,4 +169,4 @@ class Astoundify_Job_Manager_Contact_Listing {
|
|
169 |
}
|
170 |
|
171 |
}
|
172 |
-
add_action( 'init', array( 'Astoundify_Job_Manager_Contact_Listing', 'instance' ) );
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP Job Manager - Contact Listing
|
4 |
+
* Plugin URI: http://wordpress.org/plugins/wp-job-manager-contact-listing/
|
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.0.2
|
9 |
* Text Domain: wp-job-manager-contact-listing
|
10 |
*/
|
11 |
|
169 |
}
|
170 |
|
171 |
}
|
172 |
+
add_action( 'init', array( 'Astoundify_Job_Manager_Contact_Listing', 'instance' ) );
|