Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Regions for WP Job Manager |
Version | 1.15.1 |
Comparing to | |
See all releases |
Code changes from version 1.14.0 to 1.15.1
- includes/class-template.php +23 -10
- languages/wp-job-manager-locations.pot +5 -5
- readme.txt +11 -2
- wp-job-manager-locations.php +1 -1
includes/class-template.php
CHANGED
@@ -92,6 +92,7 @@ class Astoundify_Job_Manager_Regions_Template extends Astoundify_Job_Manager_Reg
|
|
92 |
|
93 |
wp_dropdown_categories( apply_filters( 'job_manager_regions_dropdown_args', array(
|
94 |
'show_option_all' => __( 'All Regions', 'wp-job-manager-locations' ),
|
|
|
95 |
'hierarchical' => true,
|
96 |
'orderby' => 'name',
|
97 |
'taxonomy' => 'job_listing_region',
|
@@ -144,22 +145,34 @@ class Astoundify_Job_Manager_Regions_Template extends Astoundify_Job_Manager_Reg
|
|
144 |
* @since 1.0.0
|
145 |
*/
|
146 |
public function the_job_location( $job_location, $post ) {
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
151 |
|
152 |
-
|
153 |
-
return;
|
154 |
-
}
|
155 |
|
156 |
-
|
|
|
|
|
157 |
|
|
|
158 |
foreach ( $terms as $term ) {
|
159 |
-
$
|
160 |
}
|
161 |
|
162 |
-
|
|
|
|
|
|
|
163 |
}
|
|
|
|
|
|
|
|
|
164 |
}
|
165 |
}
|
92 |
|
93 |
wp_dropdown_categories( apply_filters( 'job_manager_regions_dropdown_args', array(
|
94 |
'show_option_all' => __( 'All Regions', 'wp-job-manager-locations' ),
|
95 |
+
'multiple' => false,
|
96 |
'hierarchical' => true,
|
97 |
'orderby' => 'name',
|
98 |
'taxonomy' => 'job_listing_region',
|
145 |
* @since 1.0.0
|
146 |
*/
|
147 |
public function the_job_location( $job_location, $post ) {
|
148 |
+
$terms = wp_get_object_terms(
|
149 |
+
$post->ID,
|
150 |
+
'job_listing_region',
|
151 |
+
apply_filters( 'job_manager_locations_get_terms', array(
|
152 |
+
'orderby' => 'term_order',
|
153 |
+
'order' => 'desc'
|
154 |
+
) )
|
155 |
+
);
|
156 |
|
157 |
+
$_terms = array();
|
|
|
|
|
158 |
|
159 |
+
if ( empty( $terms ) ) {
|
160 |
+
return;
|
161 |
+
}
|
162 |
|
163 |
+
if ( is_singular( 'job_listing' ) ) {
|
164 |
foreach ( $terms as $term ) {
|
165 |
+
$_terms[] = '<a href=" ' . esc_url( get_term_link( $term ) ) . '">' . $term->name . '</a>';
|
166 |
}
|
167 |
|
168 |
+
} else {
|
169 |
+
foreach ( $terms as $term ) {
|
170 |
+
$_terms[] = $term->name;
|
171 |
+
}
|
172 |
}
|
173 |
+
|
174 |
+
$separator = apply_filters( 'job_manager_locations_get_term_list_separator', ', ' );
|
175 |
+
|
176 |
+
return implode( $separator, $_terms );
|
177 |
}
|
178 |
}
|
languages/wp-job-manager-locations.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
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"
|
@@ -71,7 +71,7 @@ msgstr ""
|
|
71 |
msgid "All Regions"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: includes/class-template.php:
|
75 |
msgid "Select Region"
|
76 |
msgstr ""
|
77 |
|
1 |
+
# Copyright (C) 2018 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.15.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-locations\n"
|
8 |
+
"POT-Creation-Date: 2018-05-14 14:40:00+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: 2018-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"
|
71 |
msgid "All Regions"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: includes/class-template.php:111
|
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: 4.
|
9 |
-
Stable Tag: 1.
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
@@ -31,6 +31,15 @@ Astoundify has released two themes that are fully integrated with the WP Job Man
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
= 1.14.0: July 11, 2017 =
|
35 |
|
36 |
* New: Listify 2.0+ support.
|
5 |
Contributors: Astoundify
|
6 |
Tags: job, job listing, job region
|
7 |
Requires at least: 4.7.0
|
8 |
+
Tested up to: 4.9.6
|
9 |
+
Stable Tag: 1.15.1
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 1.15.1: May 16, 2018 =
|
35 |
+
|
36 |
+
* Fix: Revert use `job_manager_dropdown_categories()` function instead of `wp_dropdown_categories()`.
|
37 |
+
|
38 |
+
= 1.15.0: May 12, 2018 =
|
39 |
+
|
40 |
+
* New: Use `job_manager_dropdown_categories()` function instead of `wp_dropdown_categories()`.
|
41 |
+
* New: Add `job_manager_locations_get_terms` and `job_manager_locations_get_term_list_separator` filters for modifying output.
|
42 |
+
|
43 |
= 1.14.0: July 11, 2017 =
|
44 |
|
45 |
* New: Listify 2.0+ support.
|
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.15.1
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|