Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Contact Listing for WP Job Manager |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
includes/forms/ninjaforms.php
CHANGED
@@ -119,27 +119,31 @@ 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 |
-
|
124 |
$f = Ninja_Forms()->forms()->get_all();
|
125 |
-
|
126 |
-
$_forms = array();
|
127 |
$x = 0;
|
|
|
128 |
foreach ( $f as $form_id ) {
|
129 |
-
$_forms[
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
}
|
134 |
-
|
135 |
-
} elseif ( function_exists( 'ninja_forms_get_all_forms' ) ) {
|
136 |
-
$_forms = ninja_forms_get_all_forms();
|
137 |
}
|
138 |
|
139 |
if ( ! empty( $_forms ) ) {
|
140 |
|
141 |
foreach ( $_forms as $_form ) {
|
142 |
-
$forms[ $_form['id'] ] = $_form['
|
143 |
}
|
144 |
|
145 |
}
|
119 |
$forms = array( 0 => __( 'Please select a form', 'wp-job-manager-contact-listing' ) );
|
120 |
$_forms = array();
|
121 |
|
122 |
+
if ( version_compare( get_option( 'ninja_forms_version', '0.0.0' ), '3', '<' ) ) {
|
|
|
123 |
$f = Ninja_Forms()->forms()->get_all();
|
|
|
|
|
124 |
$x = 0;
|
125 |
+
|
126 |
foreach ( $f as $form_id ) {
|
127 |
+
$_forms[] = array(
|
128 |
+
'id' => $form_id,
|
129 |
+
'title' => Ninja_Forms()->form( $form_id )->get_setting( 'form_title' )
|
130 |
+
);
|
131 |
+
}
|
132 |
+
} else {
|
133 |
+
$f = Ninja_Forms()->form()->get_forms();
|
134 |
+
|
135 |
+
foreach ( $f as $form ) {
|
136 |
+
$_forms[] = array(
|
137 |
+
'id' => $form->get_id(),
|
138 |
+
'title' => $form->get_setting( 'title' )
|
139 |
+
);
|
140 |
}
|
|
|
|
|
|
|
141 |
}
|
142 |
|
143 |
if ( ! empty( $_forms ) ) {
|
144 |
|
145 |
foreach ( $_forms as $_form ) {
|
146 |
+
$forms[ $_form[ 'id' ] ] = $_form[ 'title' ];
|
147 |
}
|
148 |
|
149 |
}
|
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.2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-contact-listing\n"
|
8 |
-
"POT-Creation-Date: 2016-06-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
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.2.2\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-contact-listing\n"
|
8 |
+
"POT-Creation-Date: 2016-06-22 18:10:37+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ Donate link: https://www.paypal.me/astoundify
|
|
6 |
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.
|
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.1: June 21, 2016 =
|
79 |
|
80 |
* Ninja Forms compatibility.
|
6 |
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.2
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.2.2: June 22, 2016 =
|
79 |
+
|
80 |
+
* Ninja Forms compatibility.
|
81 |
+
|
82 |
= 1.2.1: June 21, 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.2
|
9 |
* Text Domain: wp-job-manager-contact-listing
|
10 |
* Domain Path: /languages
|
11 |
*/
|