Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Contact Listing for WP Job Manager |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- includes/forms/ninjaforms.php +14 -2
- readme.txt +5 -1
- wp-job-manager-contact-listing.php +1 -1
includes/forms/ninjaforms.php
CHANGED
@@ -8,6 +8,12 @@
|
|
8 |
*/
|
9 |
class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_Job_Manager_Contact_Listing_Form {
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
/**
|
12 |
* Load the base form class.
|
13 |
*
|
@@ -16,6 +22,8 @@ class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_
|
|
16 |
* @return void
|
17 |
*/
|
18 |
public function __construct() {
|
|
|
|
|
19 |
parent::__construct();
|
20 |
}
|
21 |
|
@@ -41,7 +49,11 @@ class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_
|
|
41 |
public function output_form($form) {
|
42 |
$args = apply_filters( 'job_manager_contact_listing_ninjaforms_apply_form_args', '' );
|
43 |
|
44 |
-
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
|
47 |
/**
|
@@ -119,7 +131,7 @@ class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_
|
|
119 |
$forms = array( 0 => __( 'Please select a form', 'wp-job-manager-contact-listing' ) );
|
120 |
$_forms = array();
|
121 |
|
122 |
-
if (
|
123 |
$f = Ninja_Forms()->forms()->get_all();
|
124 |
$x = 0;
|
125 |
|
8 |
*/
|
9 |
class Astoundify_Job_Manager_Contact_Listing_Form_NinjaForms extends Astoundify_Job_Manager_Contact_Listing_Form {
|
10 |
|
11 |
+
/**
|
12 |
+
* Pre THREE release.
|
13 |
+
* @access protected
|
14 |
+
*/
|
15 |
+
public $is_pre_three;
|
16 |
+
|
17 |
/**
|
18 |
* Load the base form class.
|
19 |
*
|
22 |
* @return void
|
23 |
*/
|
24 |
public function __construct() {
|
25 |
+
$this->is_pre_three = version_compare( get_option( 'ninja_forms_version', '0.0.0' ), '3', '<' ) || get_option( 'ninja_forms_load_deprecated', false );
|
26 |
+
|
27 |
parent::__construct();
|
28 |
}
|
29 |
|
49 |
public function output_form($form) {
|
50 |
$args = apply_filters( 'job_manager_contact_listing_ninjaforms_apply_form_args', '' );
|
51 |
|
52 |
+
if ( $this->is_pre_three ) {
|
53 |
+
echo do_shortcode( sprintf( '[ninja_forms_display_form id="%s" %s]', $form, $args ) );
|
54 |
+
} else {
|
55 |
+
echo do_shortcode( sprintf( '[ninja_forms id="%s" %s]', $form, $args ) );
|
56 |
+
}
|
57 |
}
|
58 |
|
59 |
/**
|
131 |
$forms = array( 0 => __( 'Please select a form', 'wp-job-manager-contact-listing' ) );
|
132 |
$_forms = array();
|
133 |
|
134 |
+
if ( $this->is_pre_three ) {
|
135 |
$f = Ninja_Forms()->forms()->get_all();
|
136 |
$x = 0;
|
137 |
|
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.2.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
@@ -75,6 +75,10 @@ If you have purchased Jobify and still have questions, please post on our dedica
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
78 |
= 1.2.2: June 22, 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.2.3
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.2.3: September 12, 2016 =
|
79 |
+
|
80 |
+
* Ninja Forms compatibility.
|
81 |
+
|
82 |
= 1.2.2: June 22, 2016 =
|
83 |
|
84 |
* 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.2.
|
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.2.3
|
9 |
* Text Domain: wp-job-manager-contact-listing
|
10 |
* Domain Path: /languages
|
11 |
*/
|