Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Regions for WP Job Manager |
Version | 1.17.0 |
Comparing to | |
See all releases |
Code changes from version 1.15.0 to 1.17.0
- assets/js/main.js +30 -6
- includes/class-template.php +16 -2
- languages/wp-job-manager-locations.pot +8 -8
- readme.txt +14 -2
- wp-job-manager-locations.php +1 -1
assets/js/main.js
CHANGED
@@ -25,9 +25,19 @@
|
|
25 |
},
|
26 |
|
27 |
addSubmission: function() {
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
},
|
32 |
|
33 |
addRegions: function() {
|
@@ -55,10 +65,24 @@
|
|
55 |
search_contains: true
|
56 |
};
|
57 |
|
58 |
-
if (
|
59 |
-
|
|
|
|
|
|
|
|
|
60 |
} else {
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
});
|
64 |
},
|
25 |
},
|
26 |
|
27 |
addSubmission: function() {
|
28 |
+
if ( typeof chosen === "function" ) {
|
29 |
+
$( '#job_region, #resume_region' ).chosen( {
|
30 |
+
search_contains: true,
|
31 |
+
} );
|
32 |
+
} else {
|
33 |
+
if ( typeof job_manager_select2_args !== 'undefined' ) ) {
|
34 |
+
var select2_args = job_manager_select2_args;
|
35 |
+
select2_args['allowClear'] = true;
|
36 |
+
select2_args['minimumResultsForSearch'] = 10;
|
37 |
+
|
38 |
+
$( '#job_region, #resume_region' ).select2( select2_args );
|
39 |
+
}
|
40 |
+
}
|
41 |
},
|
42 |
|
43 |
addRegions: function() {
|
65 |
search_contains: true
|
66 |
};
|
67 |
|
68 |
+
if ( typeof chosen === "function" ) {
|
69 |
+
if ( ! wrapper ) {
|
70 |
+
$regions.chosen( args );
|
71 |
+
} else {
|
72 |
+
$regions.children( 'select' ).chosen( args );
|
73 |
+
}
|
74 |
} else {
|
75 |
+
if ( typeof job_manager_select2_args !== 'undefined' ) ) {
|
76 |
+
var select2_args = job_manager_select2_args;
|
77 |
+
select2_args['allowClear'] = true;
|
78 |
+
select2_args['minimumResultsForSearch'] = 10;
|
79 |
+
|
80 |
+
if ( ! wrapper ) {
|
81 |
+
$regions.select2( select2_args );
|
82 |
+
} else {
|
83 |
+
$regions.children( 'select' ).select2( select2_args );
|
84 |
+
}
|
85 |
+
}
|
86 |
}
|
87 |
});
|
88 |
},
|
includes/class-template.php
CHANGED
@@ -30,7 +30,21 @@ class Astoundify_Job_Manager_Regions_Template extends Astoundify_Job_Manager_Reg
|
|
30 |
* Frontend scripts.
|
31 |
*/
|
32 |
public function wp_enqueue_scripts() {
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
public function submit_resume_form_fields_get_resume_data( $fields, $job ) {
|
@@ -90,7 +104,7 @@ class Astoundify_Job_Manager_Regions_Template extends Astoundify_Job_Manager_Reg
|
|
90 |
$atts[ 'selected_region' ] = absint( $_GET[ 'search_region' ] );
|
91 |
}
|
92 |
|
93 |
-
|
94 |
'show_option_all' => __( 'All Regions', 'wp-job-manager-locations' ),
|
95 |
'multiple' => false,
|
96 |
'hierarchical' => true,
|
30 |
* Frontend scripts.
|
31 |
*/
|
32 |
public function wp_enqueue_scripts() {
|
33 |
+
$deps = array( 'jquery' );
|
34 |
+
|
35 |
+
$wpjm = WPJM();
|
36 |
+
|
37 |
+
if ( method_exists( $wpjm, 'register_select2_assets' ) ) {
|
38 |
+
$wpjm::register_select2_assets();
|
39 |
+
|
40 |
+
wp_enqueue_script( 'select2' );
|
41 |
+
wp_enqueue_style( 'select2' );
|
42 |
+
} else {
|
43 |
+
wp_enqueue_script( 'chosen' );
|
44 |
+
wp_enqueue_style( 'chosen' );
|
45 |
+
}
|
46 |
+
|
47 |
+
wp_enqueue_script( 'job-regions', wp_job_manager_regions()->plugin_url . 'assets/js/main.js', array( 'jquery' ), 20140525, true );
|
48 |
}
|
49 |
|
50 |
public function submit_resume_form_fields_get_resume_data( $fields, $job ) {
|
104 |
$atts[ 'selected_region' ] = absint( $_GET[ 'search_region' ] );
|
105 |
}
|
106 |
|
107 |
+
wp_dropdown_categories( apply_filters( 'job_manager_regions_dropdown_args', array(
|
108 |
'show_option_all' => __( 'All Regions', 'wp-job-manager-locations' ),
|
109 |
'multiple' => false,
|
110 |
'hierarchical' => true,
|
languages/wp-job-manager-locations.pot
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Regions for WP Job Manager package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Regions for WP Job Manager 1.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-locations\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
16 |
|
17 |
-
#: includes/class-taxonomy.php:17 includes/class-template.php:
|
18 |
msgid "Job Region"
|
19 |
msgstr ""
|
20 |
|
@@ -63,15 +63,15 @@ msgstr ""
|
|
63 |
msgid "Resume Regions"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: includes/class-template.php:
|
67 |
msgid "Region"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: includes/class-template.php:
|
71 |
msgid "All Regions"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: includes/class-template.php:
|
75 |
msgid "Select Region"
|
76 |
msgstr ""
|
77 |
|
1 |
+
# Copyright (C) 2019 Astoundify
|
2 |
# This file is distributed under the same license as the Regions for WP Job Manager package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Regions for WP Job Manager 1.16.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-locations\n"
|
8 |
+
"POT-Creation-Date: 2019-01-14 15:35:04+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
16 |
|
17 |
+
#: includes/class-taxonomy.php:17 includes/class-template.php:82
|
18 |
msgid "Job Region"
|
19 |
msgstr ""
|
20 |
|
63 |
msgid "Resume Regions"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: includes/class-template.php:66
|
67 |
msgid "Region"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: includes/class-template.php:102
|
71 |
msgid "All Regions"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: includes/class-template.php:119
|
75 |
msgid "Select Region"
|
76 |
msgstr ""
|
77 |
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Donate link: https://www.paypal.me/astoundify
|
|
5 |
Contributors: Astoundify
|
6 |
Tags: job, job listing, job region
|
7 |
Requires at least: 4.7.0
|
8 |
-
Tested up to:
|
9 |
-
Stable Tag: 1.
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
@@ -31,6 +31,18 @@ Astoundify has released two themes that are fully integrated with the WP Job Man
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
= 1.15.0: May 12, 2018 =
|
35 |
|
36 |
* New: Use `job_manager_dropdown_categories()` function instead of `wp_dropdown_categories()`.
|
5 |
Contributors: Astoundify
|
6 |
Tags: job, job listing, job region
|
7 |
Requires at least: 4.7.0
|
8 |
+
Tested up to: 5.0.3
|
9 |
+
Stable Tag: 1.17.0
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 1.17.0: January 24, 2018 =
|
35 |
+
|
36 |
+
* New: WP Job Manager 1.32.0 support.
|
37 |
+
|
38 |
+
= 1.16.0: January 14, 2018 =
|
39 |
+
|
40 |
+
* New: WP Job Manager 1.32.0 support.
|
41 |
+
|
42 |
+
= 1.15.1: May 16, 2018 =
|
43 |
+
|
44 |
+
* Fix: Revert use `job_manager_dropdown_categories()` function instead of `wp_dropdown_categories()`.
|
45 |
+
|
46 |
= 1.15.0: May 12, 2018 =
|
47 |
|
48 |
* New: Use `job_manager_dropdown_categories()` function instead of `wp_dropdown_categories()`.
|
wp-job-manager-locations.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Create predefined regions/locations that job submissions can associate themselves with.
|
6 |
* Author: Astoundify
|
7 |
* Author URI: http://astoundify.com
|
8 |
-
* Version: 1.
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|
5 |
* Description: Create predefined regions/locations that job submissions can associate themselves with.
|
6 |
* Author: Astoundify
|
7 |
* Author URI: http://astoundify.com
|
8 |
+
* Version: 1.17.0
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|