WP Job Manager - Version 1.0.5

Version Description

  • Added function to get listings by certain criteria.
  • Added ES translation.
  • Fix job feed when no args are present.
Download this release

Release Info

Developer mikejolley
Plugin Icon 128x128 WP Job Manager
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

includes/class-wp-job-manager-ajax.php CHANGED
@@ -36,65 +36,16 @@ class WP_Job_Manager_Ajax {
36
 
37
  $search_categories = array_filter( $search_categories );
38
 
39
- $args = array(
40
- 'post_type' => 'job_listing',
41
- 'post_status' => 'publish',
42
- 'ignore_sticky_posts' => 1,
43
- 'offset' => ( absint( $_POST['page'] ) - 1 ) * absint( $_POST['per_page'] ),
44
- 'posts_per_page' => absint( $_POST['per_page'] ),
45
- 'orderby' => sanitize_text_field( $_POST['orderby'] ),
46
- 'order' => sanitize_text_field( $_POST['order'] ),
47
- 'tax_query' => array(
48
- array(
49
- 'taxonomy' => 'job_listing_type',
50
- 'field' => 'slug',
51
- 'terms' => $filter_job_types + array( 0 )
52
- )
53
- ),
54
- 'meta_query' => array()
55
- );
56
-
57
- if ( get_option( 'job_manager_hide_filled_positions' ) == 1 )
58
- $args['meta_query'][] = array(
59
- 'key' => '_filled',
60
- 'value' => '1',
61
- 'compare' => '!='
62
- );
63
-
64
- // Location search
65
- if ( $search_location )
66
- $args['meta_query'][] = array(
67
- 'key' => '_job_location',
68
- 'value' => $search_location,
69
- 'compare' => 'LIKE'
70
- );
71
-
72
- // Keyword search - search meta as well as post content
73
- if ( $search_keywords ) {
74
- $post_ids = $wpdb->get_col( $wpdb->prepare( "
75
- SELECT DISTINCT post_id FROM {$wpdb->postmeta}
76
- WHERE meta_value LIKE '%%%s%%'
77
- ", $search_keywords ) );
78
-
79
- $post_ids = $post_ids + $wpdb->get_col( $wpdb->prepare( "
80
- SELECT DISTINCT ID FROM {$wpdb->posts}
81
- WHERE post_title LIKE '%%%s%%'
82
- OR post_content LIKE '%%%s%%'
83
- ", $search_keywords, $search_keywords ) );
84
-
85
- $args['post__in'] = $post_ids + array( 0 );
86
- }
87
-
88
- // Category search
89
- if ( $search_categories ) {
90
- $args['tax_query'][] = array(
91
- 'taxonomy' => 'job_listing_category',
92
- 'field' => 'slug',
93
- 'terms' => $search_categories + array( 0 )
94
- );
95
- }
96
-
97
- $jobs = new WP_Query( apply_filters( 'job_manager_get_listings', $args ) );
98
 
99
  $result = array();
100
  $result['found_jobs'] = false;
36
 
37
  $search_categories = array_filter( $search_categories );
38
 
39
+ $jobs = get_job_listings( array(
40
+ 'search_location' => $search_location,
41
+ 'search_keywords' => $search_keywords,
42
+ 'search_categories' => $search_categories,
43
+ 'job_types' => $filter_job_types + array( 0 ),
44
+ 'orderby' => sanitize_text_field( $_POST['orderby'] ),
45
+ 'order' => sanitize_text_field( $_POST['order'] ),
46
+ 'offset' => ( absint( $_POST['page'] ) - 1 ) * absint( $_POST['per_page'] ),
47
+ 'posts_per_page' => absint( $_POST['per_page'] )
48
+ ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  $result = array();
51
  $result['found_jobs'] = false;
includes/class-wp-job-manager-post-types.php CHANGED
@@ -240,23 +240,27 @@ class WP_Job_Manager_Post_Types {
240
  'post_status' => 'publish',
241
  'ignore_sticky_posts' => 1,
242
  'posts_per_page' => 10,
243
- 's' => sanitize_text_field( $_GET['s'] ),
244
- 'meta_query' => array(
245
- array(
246
- 'key' => '_job_location',
247
- 'value' => sanitize_text_field( $_GET['location'] ),
248
- 'compare' => 'LIKE'
249
- )
250
- ),
251
- 'tax_query' => array(
252
- array(
253
- 'taxonomy' => 'job_listing_type',
254
- 'field' => 'slug',
255
- 'terms' => explode( ',', sanitize_text_field( $_GET['type'] ) ) + array( 0 )
256
- )
257
- )
258
  );
259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  if ( ! empty( $_GET['job_categories'] ) ) {
261
  $args['tax_query'][] = array(
262
  'taxonomy' => 'job_listing_category',
240
  'post_status' => 'publish',
241
  'ignore_sticky_posts' => 1,
242
  'posts_per_page' => 10,
243
+ 's' => isset( $_GET['s'] ) ? sanitize_text_field( $_GET['s'] ) : '',
244
+ 'meta_query' => array(),
245
+ 'tax_query' => array()
 
 
 
 
 
 
 
 
 
 
 
 
246
  );
247
 
248
+ if ( ! empty( $_GET['location'] ) ) {
249
+ $args['meta_query'][] = array(
250
+ 'key' => '_job_location',
251
+ 'value' => sanitize_text_field( $_GET['location'] ),
252
+ 'compare' => 'LIKE'
253
+ );
254
+ }
255
+
256
+ if ( ! empty( $_GET['type'] ) ) {
257
+ $args['tax_query'][] = array(
258
+ 'taxonomy' => 'job_listing_type',
259
+ 'field' => 'slug',
260
+ 'terms' => explode( ',', sanitize_text_field( $_GET['type'] ) ) + array( 0 )
261
+ );
262
+ }
263
+
264
  if ( ! empty( $_GET['job_categories'] ) ) {
265
  $args['tax_query'][] = array(
266
  'taxonomy' => 'job_listing_category',
languages/job_manager-es_ES.mo ADDED
Binary file
languages/job_manager-es_ES.po ADDED
@@ -0,0 +1,839 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 WP Job Manager
2
+ # This file is distributed under the same license as the WP Job Manager package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: WP Job Manager 1.0 Beta 1\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/WP-Job-Manager\n"
7
+ "POT-Creation-Date: 2013-06-25 16:39:26+00:00\n"
8
+ "PO-Revision-Date: 2013-08-03 01:37-0400\n"
9
+ "Last-Translator: luisfel <luisfel@luisfel.cl>\n"
10
+ "Language-Team: WordPress Portugal <http://wp-portugal.com>\n"
11
+ "Language: pt\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Generator: Poedit 1.5.7\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #: includes/admin/class-wp-job-manager-admin.php:49
20
+ msgid "Settings"
21
+ msgstr "Opciones"
22
+
23
+ #: includes/admin/class-wp-job-manager-cpt.php:67
24
+ msgid "Select a category"
25
+ msgstr "Escoja una categoría"
26
+
27
+ #: includes/admin/class-wp-job-manager-cpt.php:100
28
+ msgid "Job position title"
29
+ msgstr "Cargo"
30
+
31
+ #: includes/admin/class-wp-job-manager-cpt.php:116
32
+ msgid "Job listing updated. <a href=\"%s\">View Job</a>"
33
+ msgstr "Oferta laboral actualizada. <a href=\"%s\">Ver oferta</a>"
34
+
35
+ #: includes/admin/class-wp-job-manager-cpt.php:117
36
+ msgid "Custom field updated."
37
+ msgstr "Campo personalizado actualizado. "
38
+
39
+ #: includes/admin/class-wp-job-manager-cpt.php:118
40
+ msgid "Custom field deleted."
41
+ msgstr "Campo personalizado eliminado. "
42
+
43
+ #: includes/admin/class-wp-job-manager-cpt.php:119
44
+ msgid "Job listing updated."
45
+ msgstr "Oferta laboral actualizada."
46
+
47
+ #: includes/admin/class-wp-job-manager-cpt.php:120
48
+ msgid "Job listing restored to revision from %s"
49
+ msgstr "Oferta laboral desactiva para revisión desde %s %s"
50
+
51
+ #: includes/admin/class-wp-job-manager-cpt.php:121
52
+ msgid "Job listing published. <a href=\"%s\">View Job</a>"
53
+ msgstr "Oferta laboral publicada. <a href=\"%s\">Ver oferta</a>"
54
+
55
+ #: includes/admin/class-wp-job-manager-cpt.php:122
56
+ msgid "Job listing saved."
57
+ msgstr "Oferta laboral guardada."
58
+
59
+ #: includes/admin/class-wp-job-manager-cpt.php:123
60
+ msgid "Job listing submitted. <a target=\"_blank\" href=\"%s\">Preview Job</a>"
61
+ msgstr ""
62
+ "Oferta laboral enviada. <a target=\"_blank\" href=\"%s\">Pre-visualizar "
63
+ "Oferta</a>"
64
+
65
+ #: includes/admin/class-wp-job-manager-cpt.php:124
66
+ msgid ""
67
+ "Job listing scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href="
68
+ "\"%2$s\">Preview Job</a>"
69
+ msgstr ""
70
+ "Oferta lab oral agendada para: <strong>%1$s</strong>. <a target=\"_blank\" "
71
+ "href=\"%2$s\">Pre-visualizar oferta</a>"
72
+
73
+ #: includes/admin/class-wp-job-manager-cpt.php:125
74
+ msgid "M j, Y @ G:i"
75
+ msgstr "j M, Y @ H:i "
76
+
77
+ #: includes/admin/class-wp-job-manager-cpt.php:126
78
+ msgid ""
79
+ "Job listing draft updated. <a target=\"_blank\" href=\"%s\">Preview Job</a>"
80
+ msgstr ""
81
+ "Borrador de oferta laboral actualizada. <a target=\"_blank\" href=\"%2$s"
82
+ "\">Pre-visualizar oferta</a>"
83
+
84
+ #: includes/admin/class-wp-job-manager-cpt.php:143
85
+ msgid "Type"
86
+ msgstr "Tipo "
87
+
88
+ #: includes/admin/class-wp-job-manager-cpt.php:144
89
+ msgid "Position"
90
+ msgstr "Cargo"
91
+
92
+ #: includes/admin/class-wp-job-manager-cpt.php:145
93
+ msgid "Company"
94
+ msgstr "Empresa "
95
+
96
+ #: includes/admin/class-wp-job-manager-cpt.php:146
97
+ #: templates/content-single-job_listing.php:14
98
+ msgid "Posted"
99
+ msgstr "Publicado "
100
+
101
+ #: includes/admin/class-wp-job-manager-cpt.php:147
102
+ #: templates/job-dashboard.php:9
103
+ msgid "Expires"
104
+ msgstr "Expira "
105
+
106
+ #: includes/admin/class-wp-job-manager-cpt.php:149
107
+ msgid "Categories"
108
+ msgstr "Categorías"
109
+
110
+ #: includes/admin/class-wp-job-manager-cpt.php:150
111
+ msgid "Job Status"
112
+ msgstr "Estado"
113
+
114
+ #: includes/admin/class-wp-job-manager-cpt.php:151
115
+ #: templates/job-dashboard.php:10
116
+ msgid "Filled?"
117
+ msgstr "campo?"
118
+
119
+ #: includes/admin/class-wp-job-manager-cpt.php:152
120
+ msgid "Actions"
121
+ msgstr "Cciones"
122
+
123
+ #: includes/admin/class-wp-job-manager-cpt.php:199
124
+ msgid "by a guest"
125
+ msgstr "por un invitado"
126
+
127
+ #: includes/admin/class-wp-job-manager-cpt.php:199
128
+ msgid "by %s"
129
+ msgstr "por %s "
130
+
131
+ #: includes/admin/class-wp-job-manager-cpt.php:212
132
+ msgid "View"
133
+ msgstr "Ver "
134
+
135
+ #: includes/admin/class-wp-job-manager-cpt.php:217
136
+ #: includes/class-wp-job-manager-post-types.php:149
137
+ #: templates/job-dashboard.php:29
138
+ msgid "Edit"
139
+ msgstr "Editar "
140
+
141
+ #: includes/admin/class-wp-job-manager-cpt.php:222
142
+ #: templates/job-dashboard.php:39
143
+ msgid "Delete"
144
+ msgstr "Eliminar "
145
+
146
+ #: includes/admin/class-wp-job-manager-settings.php:31
147
+ #: includes/class-wp-job-manager-post-types.php:125
148
+ msgid "Job Listings"
149
+ msgstr "Ofertas laborales"
150
+
151
+ #: includes/admin/class-wp-job-manager-settings.php:37
152
+ msgid "Jobs per page"
153
+ msgstr "Ofertas laborales por página"
154
+
155
+ #: includes/admin/class-wp-job-manager-settings.php:38
156
+ msgid "How many jobs should be shown per page by default?"
157
+ msgstr ""
158
+ "Cuantas ofertas laborales deben er mostrado por página de manera "
159
+ "predeterminada"
160
+
161
+ #: includes/admin/class-wp-job-manager-settings.php:43
162
+ msgid "Filled positions"
163
+ msgstr "Ofertas de posiciones"
164
+
165
+ #: includes/admin/class-wp-job-manager-settings.php:44
166
+ msgid "Hide filled positions"
167
+ msgstr "Esconder las ofertas laboras"
168
+
169
+ #: includes/admin/class-wp-job-manager-settings.php:45
170
+ msgid "If enabled, filled positions will be hidden from the job list."
171
+ msgstr ""
172
+ "Se está activo, las ofertas laborales se ocultará de la lista de ofertas."
173
+
174
+ #: includes/admin/class-wp-job-manager-settings.php:51
175
+ msgid "Job categories"
176
+ msgstr "Categorias de ofertas laborales"
177
+
178
+ #: includes/admin/class-wp-job-manager-settings.php:52
179
+ msgid "Enable job categories"
180
+ msgstr "Activar categorias de ofertas laborales"
181
+
182
+ #: includes/admin/class-wp-job-manager-settings.php:53
183
+ msgid ""
184
+ "Choose whether to enable job categories. Categories must be setup by an "
185
+ "admin for users to choose during job submission."
186
+ msgstr ""
187
+ "Elija si habilitar las categorías de las ofertas laborales. Categorías deben "
188
+ "ser definidas por un administrador para ser seleccionada al momento de "
189
+ "sugerir."
190
+
191
+ #: includes/admin/class-wp-job-manager-settings.php:59
192
+ msgid "Job Submission"
193
+ msgstr "Enviar oferta laboral"
194
+
195
+ #: includes/admin/class-wp-job-manager-settings.php:64
196
+ msgid "Account creation"
197
+ msgstr "Cración de cuenta"
198
+
199
+ #: includes/admin/class-wp-job-manager-settings.php:65
200
+ msgid "Allow account creation"
201
+ msgstr "Permitir la creación de cuenta "
202
+
203
+ #: includes/admin/class-wp-job-manager-settings.php:66
204
+ msgid ""
205
+ "If enable, non-logged in users will be able to create an account by entering "
206
+ "their email address on the job submission form."
207
+ msgstr ""
208
+ "Si está habilitado, usuarios no identificados podrán crear una cuenta al "
209
+ "ingresar su dirección de email a enviar una oferta laboral."
210
+
211
+ #: includes/admin/class-wp-job-manager-settings.php:72
212
+ msgid "Account required"
213
+ msgstr "Cuenta requerida"
214
+
215
+ #: includes/admin/class-wp-job-manager-settings.php:73
216
+ msgid "Job submission requires an account"
217
+ msgstr "Sugerencias de ofertas laborales requieren estar identificados."
218
+
219
+ #: includes/admin/class-wp-job-manager-settings.php:74
220
+ msgid ""
221
+ "If disabled, non-logged in users will be able to submit job listings without "
222
+ "creating an account."
223
+ msgstr ""
224
+ "Si está desactivada, usuarios no identificados podrán enviar ofertas "
225
+ "laborales sin crear una cuenta."
226
+
227
+ #: includes/admin/class-wp-job-manager-settings.php:80
228
+ msgid "Approval Required"
229
+ msgstr "Requiere aprobación"
230
+
231
+ #: includes/admin/class-wp-job-manager-settings.php:81
232
+ msgid "New submissions require admin approval"
233
+ msgstr "Nuevas sugerencias requieren de aprobación del administrador"
234
+
235
+ #: includes/admin/class-wp-job-manager-settings.php:82
236
+ msgid "If enabled, new submissions will be inactive, pending admin approval."
237
+ msgstr ""
238
+ "Si está activado, nuevas ofertas estarán inactivos hasta tener aprobación "
239
+ "del directorio."
240
+
241
+ #: includes/admin/class-wp-job-manager-settings.php:88
242
+ msgid "Listing duration"
243
+ msgstr "Duración visible"
244
+
245
+ #: includes/admin/class-wp-job-manager-settings.php:89
246
+ msgid ""
247
+ "How many <strong>days</strong> listings are live before expiring. Can be "
248
+ "left blank to never expire."
249
+ msgstr ""
250
+ "Cuantos <strong> días </strong> las ofertas laborales nos visibles antes de "
251
+ "expirar. Puede quedar en blanco para no expirar nunca."
252
+
253
+ #: includes/admin/class-wp-job-manager-settings.php:141
254
+ msgid "Settings successfully saved"
255
+ msgstr "Opciones guardadas exitosamente"
256
+
257
+ #: includes/admin/class-wp-job-manager-settings.php:208
258
+ msgid "Save Changes"
259
+ msgstr "Cambios guardados"
260
+
261
+ #: includes/admin/class-wp-job-manager-writepanels.php:19
262
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:88
263
+ msgid "Job location"
264
+ msgstr "Ubicación de la oferta laboral"
265
+
266
+ #: includes/admin/class-wp-job-manager-writepanels.php:20
267
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:91
268
+ msgid "e.g. \"London, UK\", \"New York\", \"Anywhere\""
269
+ msgstr "ej: \"Santiago,Chile\",\"Chuchunco City\",\"En línea\" "
270
+
271
+ #: includes/admin/class-wp-job-manager-writepanels.php:23
272
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:118
273
+ msgid "Application email/URL"
274
+ msgstr "Dirección email/URL para postular"
275
+
276
+ #: includes/admin/class-wp-job-manager-writepanels.php:24
277
+ msgid "URL or email which applicants use to apply"
278
+ msgstr "URL o correo que usarán los postulantes"
279
+
280
+ #: includes/admin/class-wp-job-manager-writepanels.php:27
281
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:127
282
+ msgid "Company name"
283
+ msgstr "Nombre de la empresa"
284
+
285
+ #: includes/admin/class-wp-job-manager-writepanels.php:31
286
+ msgid "Company website"
287
+ msgstr "Sitio web de la empresa"
288
+
289
+ #: includes/admin/class-wp-job-manager-writepanels.php:35
290
+ msgid "Company tagline"
291
+ msgstr "Lema de la empresa"
292
+
293
+ #: includes/admin/class-wp-job-manager-writepanels.php:36
294
+ msgid "Brief description about the company"
295
+ msgstr "Breve descripción de la empresa"
296
+
297
+ #: includes/admin/class-wp-job-manager-writepanels.php:39
298
+ msgid "Company Twitter"
299
+ msgstr "Twitter de la empresa"
300
+
301
+ #: includes/admin/class-wp-job-manager-writepanels.php:43
302
+ msgid "Company logo"
303
+ msgstr "logo de la empresa"
304
+
305
+ #: includes/admin/class-wp-job-manager-writepanels.php:44
306
+ msgid "URL to the company logo"
307
+ msgstr "Dirección URL del lobo de la empresas"
308
+
309
+ #: includes/admin/class-wp-job-manager-writepanels.php:47
310
+ msgid "Position filled?"
311
+ msgstr "ya se encontró al candidato?"
312
+
313
+ #: includes/admin/class-wp-job-manager-writepanels.php:60
314
+ msgid "Job Listing Data"
315
+ msgstr "Información de la oferta laboral"
316
+
317
+ #: includes/class-wp-job-manager-ajax.php:104
318
+ msgid "No more jobs found matching your selection."
319
+ msgstr "No hay oferta laboral para su selección."
320
+
321
+ #: includes/class-wp-job-manager-ajax.php:143
322
+ msgid "Showing %s&ldquo;%s&rdquo; %sjobs"
323
+ msgstr "Mostrando %s&ldquo;%s&rdquo; %s ofertas"
324
+
325
+ #: includes/class-wp-job-manager-ajax.php:145
326
+ msgid "Showing all %s%sjobs"
327
+ msgstr "motrando todo %s%sofertas"
328
+
329
+ #: includes/class-wp-job-manager-ajax.php:148
330
+ msgid "located in &ldquo;%s&rdquo;"
331
+ msgstr "ubicado en &ldquo;%s&rdquo;"
332
+
333
+ #: includes/class-wp-job-manager-post-types.php:35
334
+ msgid "Job Category"
335
+ msgstr "Categoría de la oferta laboral"
336
+
337
+ #: includes/class-wp-job-manager-post-types.php:36
338
+ msgid "Job Categories"
339
+ msgstr "Categorías de las ofertas laborales"
340
+
341
+ #: includes/class-wp-job-manager-post-types.php:40
342
+ msgctxt "Job category slug - resave permalinks after changing this"
343
+ msgid "job-category"
344
+ msgstr "job-category"
345
+
346
+ #: includes/class-wp-job-manager-post-types.php:57
347
+ #: includes/class-wp-job-manager-post-types.php:100
348
+ #: includes/class-wp-job-manager-post-types.php:154
349
+ msgid "Search %s"
350
+ msgstr "Buscar %s"
351
+
352
+ #: includes/class-wp-job-manager-post-types.php:58
353
+ #: includes/class-wp-job-manager-post-types.php:101
354
+ #: includes/class-wp-job-manager-post-types.php:146
355
+ msgid "All %s"
356
+ msgstr "Todo %s"
357
+
358
+ #: includes/class-wp-job-manager-post-types.php:59
359
+ #: includes/class-wp-job-manager-post-types.php:102
360
+ #: includes/class-wp-job-manager-post-types.php:157
361
+ msgid "Parent %s"
362
+ msgstr "Patriente %s"
363
+
364
+ #: includes/class-wp-job-manager-post-types.php:60
365
+ #: includes/class-wp-job-manager-post-types.php:103
366
+ msgid "Parent %s:"
367
+ msgstr "Pariente %s"
368
+
369
+ #: includes/class-wp-job-manager-post-types.php:61
370
+ #: includes/class-wp-job-manager-post-types.php:104
371
+ #: includes/class-wp-job-manager-post-types.php:150
372
+ msgid "Edit %s"
373
+ msgstr "Editar %s"
374
+
375
+ #: includes/class-wp-job-manager-post-types.php:62
376
+ #: includes/class-wp-job-manager-post-types.php:105
377
+ msgid "Update %s"
378
+ msgstr "Actualizar %s"
379
+
380
+ #: includes/class-wp-job-manager-post-types.php:63
381
+ #: includes/class-wp-job-manager-post-types.php:106
382
+ msgid "Add New %s"
383
+ msgstr "Agregar nueva %s"
384
+
385
+ #: includes/class-wp-job-manager-post-types.php:64
386
+ #: includes/class-wp-job-manager-post-types.php:107
387
+ msgid "New %s Name"
388
+ msgstr "Nuevo %s Nombre"
389
+
390
+ #: includes/class-wp-job-manager-post-types.php:79
391
+ msgid "Job Type"
392
+ msgstr "Typo de ofertas laborales"
393
+
394
+ #: includes/class-wp-job-manager-post-types.php:80
395
+ msgid "Job Types"
396
+ msgstr "Typo de ofertas laborales"
397
+
398
+ #: includes/class-wp-job-manager-post-types.php:84
399
+ msgctxt "Job type slug - resave permalinks after changing this"
400
+ msgid "job-type"
401
+ msgstr "job-type"
402
+
403
+ #: includes/class-wp-job-manager-post-types.php:124
404
+ msgid "Job Listing"
405
+ msgstr "Ofertas laborales"
406
+
407
+ #: includes/class-wp-job-manager-post-types.php:128
408
+ msgctxt "Post type archive slug - resave permalinks after changing this"
409
+ msgid "jobs"
410
+ msgstr "jobs"
411
+
412
+ #: includes/class-wp-job-manager-post-types.php:134
413
+ msgctxt "Job permalink - resave permalinks after changing this"
414
+ msgid "job"
415
+ msgstr "job"
416
+
417
+ #: includes/class-wp-job-manager-post-types.php:147
418
+ msgid "Add New"
419
+ msgstr "Agregar nuevo"
420
+
421
+ #: includes/class-wp-job-manager-post-types.php:148
422
+ msgid "Add %s"
423
+ msgstr "Agregar %s"
424
+
425
+ #: includes/class-wp-job-manager-post-types.php:151
426
+ msgid "New %s"
427
+ msgstr "Nuevo %s"
428
+
429
+ #: includes/class-wp-job-manager-post-types.php:152
430
+ #: includes/class-wp-job-manager-post-types.php:153
431
+ msgid "View %s"
432
+ msgstr "Ver %s"
433
+
434
+ #: includes/class-wp-job-manager-post-types.php:155
435
+ msgid "No %s found"
436
+ msgstr "No se encontraron %s"
437
+
438
+ #: includes/class-wp-job-manager-post-types.php:156
439
+ msgid "No %s found in trash"
440
+ msgstr "No se encontraron %s en el papelero"
441
+
442
+ #: includes/class-wp-job-manager-post-types.php:159
443
+ msgid "This is where you can create and manage job listings."
444
+ msgstr "Aquí es donde puede crear y administrar sus ofertas laborales."
445
+
446
+ #: includes/class-wp-job-manager-post-types.php:194
447
+ msgctxt "job_listing"
448
+ msgid "Expired"
449
+ msgstr "Expirados"
450
+
451
+ #: includes/class-wp-job-manager-post-types.php:199
452
+ msgid "Expired <span class=\"count\">(%s)</span>"
453
+ msgid_plural "Expired <span class=\"count\">(%s)</span>"
454
+ msgstr[0] "Expirado <span class=\"count\">(%s)</span>"
455
+ msgstr[1] "Expirados <span class=\"count\">(%s)</span>"
456
+
457
+ #: includes/class-wp-job-manager-shortcodes.php:61
458
+ msgid "Invalid Job ID"
459
+ msgstr "ID de la oferta laboral"
460
+
461
+ #: includes/class-wp-job-manager-shortcodes.php:67
462
+ msgid "This job is already filled"
463
+ msgstr "Esta oferta laboral ya fue resuelta"
464
+
465
+ #: includes/class-wp-job-manager-shortcodes.php:73
466
+ msgid "%s has been filled"
467
+ msgstr "% ha sido llenado"
468
+
469
+ #: includes/class-wp-job-manager-shortcodes.php:78
470
+ msgid "This job is already not filled"
471
+ msgstr "Esta oferta laboral ya está cubierta"
472
+
473
+ #: includes/class-wp-job-manager-shortcodes.php:84
474
+ msgid "%s has been marked as not filled"
475
+ msgstr "%s ha sido marcado como "
476
+
477
+ #: includes/class-wp-job-manager-shortcodes.php:91
478
+ msgid "%s has been deleted"
479
+ msgstr "%s ha sido eliminada"
480
+
481
+ #: includes/class-wp-job-manager-shortcodes.php:111
482
+ msgid "You need to be signed in to manage your job listings."
483
+ msgstr "Debe estar registrado para poder administrar sus ofertas laborales."
484
+
485
+ #: includes/class-wp-job-manager-shortcodes.php:175
486
+ msgid "Load more job listings"
487
+ msgstr "Mostar más ofertas laborales"
488
+
489
+ #: includes/class-wp-job-manager-widgets.php:139
490
+ msgid "Display a list of the most recent jobs on your site."
491
+ msgstr "Muestre una lista de las ofertas laborales recientes en su sitio."
492
+
493
+ #: includes/class-wp-job-manager-widgets.php:141
494
+ msgid "Recent Job Listings"
495
+ msgstr "Ofertas laborales recientes"
496
+
497
+ #: includes/class-wp-job-manager-widgets.php:145
498
+ msgid "Recent Jobs"
499
+ msgstr "Ofertas recientes"
500
+
501
+ #: includes/class-wp-job-manager-widgets.php:146
502
+ msgid "Title"
503
+ msgstr "Cargo"
504
+
505
+ #: includes/class-wp-job-manager-widgets.php:154
506
+ msgid "Number of jobs to show"
507
+ msgstr "Número de ofertas laborales a mostrar"
508
+
509
+ #: includes/forms/class-wp-job-manager-form-edit-job.php:39
510
+ msgid "Invalid job"
511
+ msgstr "Trabajo inválido"
512
+
513
+ #: includes/forms/class-wp-job-manager-form-edit-job.php:78
514
+ msgid "Update job listing"
515
+ msgstr "Actualizar ofertas laborales"
516
+
517
+ #: includes/forms/class-wp-job-manager-form-edit-job.php:103
518
+ msgid "Your changes have been saved."
519
+ msgstr "Sus cambios han sido guardados."
520
+
521
+ #: includes/forms/class-wp-job-manager-form-edit-job.php:103
522
+ msgid "View Job Listing &rarr;"
523
+ msgstr "Ver oferta laboral &rarr;"
524
+
525
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:26
526
+ msgid "Submit Details"
527
+ msgstr "Enviar detalles"
528
+
529
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:32
530
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:441
531
+ msgid "Preview"
532
+ msgstr "Previsualizar"
533
+
534
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:38
535
+ msgid "Done"
536
+ msgstr "Hecho"
537
+
538
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:81
539
+ msgid "Job title"
540
+ msgstr "Cargo de la oferta laboral"
541
+
542
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:95
543
+ msgid "Job type"
544
+ msgstr "Tipo de oferta laboral"
545
+
546
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:103
547
+ msgid "Job category"
548
+ msgstr "Categoría de la oferta laboral"
549
+
550
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:111
551
+ msgid "Description"
552
+ msgstr "Descripción del cargo"
553
+
554
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:121
555
+ msgid "Enter an email address or website URL"
556
+ msgstr "Ingrese un correo o dirección web para los postulantes"
557
+
558
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:130
559
+ msgid "Enter the name of the company"
560
+ msgstr "Ingrese el nombre de la empresa"
561
+
562
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:134
563
+ #: templates/content-single-job_listing.php:25
564
+ msgid "Website"
565
+ msgstr "Sitio web"
566
+
567
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:137
568
+ msgid "http://"
569
+ msgstr "http://"
570
+
571
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:141
572
+ msgid "Tagline"
573
+ msgstr "Lema de la empresa"
574
+
575
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:144
576
+ msgid "Briefly describe your company"
577
+ msgstr "Breve descripción de la empresa"
578
+
579
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:148
580
+ msgid "Twitter username"
581
+ msgstr "Nombre de usuario twitter"
582
+
583
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:151
584
+ msgid "@yourcompany"
585
+ msgstr "@suempresa"
586
+
587
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:155
588
+ msgid "Logo"
589
+ msgstr "Isotipo"
590
+
591
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:213
592
+ msgid "%s is a required field"
593
+ msgstr "%s es campo requerido"
594
+
595
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:320
596
+ msgid "Preview job listing &rarr;"
597
+ msgstr "Previsualizar oferta laboral &rarr;"
598
+
599
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:352
600
+ msgid "You must be signed in to post a new job listing."
601
+ msgstr "Debe estar registrado para sugerir una oferta laboral."
602
+
603
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:436
604
+ msgid "Submit Listing &rarr;"
605
+ msgstr "Enviar oferta &rarr;"
606
+
607
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:437
608
+ msgid "&larr; Edit listing"
609
+ msgstr "&larr; Editar Oferta"
610
+
611
+ #: includes/forms/class-wp-job-manager-form-submit-job.php:505
612
+ msgid "Logo needs to be jpg, gif or png."
613
+ msgstr "La imagen debe ser jpg, gif or png."
614
+
615
+ #: templates/account-signin.php:4
616
+ msgid "Your account"
617
+ msgstr "Su cuenta"
618
+
619
+ #: templates/account-signin.php:8
620
+ msgid "You are currently signed in as <strong>%s</strong>."
621
+ msgstr "Está registrado como <strong>%s</strong>."
622
+
623
+ #: templates/account-signin.php:11
624
+ msgid "Sign out"
625
+ msgstr "cerrar sesión"
626
+
627
+ #: templates/account-signin.php:21
628
+ msgid "Have an account?"
629
+ msgstr "Tiene una cuenta?"
630
+
631
+ #: templates/account-signin.php:23
632
+ msgid "Sign in"
633
+ msgstr "Registrarse"
634
+
635
+ #: templates/account-signin.php:27
636
+ msgid ""
637
+ "If you don&lsquo;t have an account you can %screate one below by entering "
638
+ "your email address. A password will be automatically emailed to you."
639
+ msgstr ""
640
+ "Si no tiene una cuenta, puede %screar una abajo sólo con ingresar tu correo "
641
+ "electrónico. Se te enviará una clave de manera automática."
642
+
643
+ #: templates/account-signin.php:27
644
+ msgid "optionally"
645
+ msgstr "de manera opcional"
646
+
647
+ #: templates/account-signin.php:31
648
+ msgid "You must sign in to create a new job listing."
649
+ msgstr "Debe estar registrado para sugerir una oferta laboral."
650
+
651
+ #: templates/account-signin.php:38
652
+ msgid "Your email"
653
+ msgstr "Su email"
654
+
655
+ #: templates/account-signin.php:38 templates/job-submit.php:21
656
+ #: templates/job-submit.php:32
657
+ msgid "(optional)"
658
+ msgstr "(opcional)"
659
+
660
+ #: templates/content-job_listing.php:16
661
+ #: templates/content-single-job_listing.php:14
662
+ #: templates/content-summary-job_listing.php:14
663
+ msgid "ago"
664
+ msgstr "hace "
665
+
666
+ #: templates/content-single-job_listing.php:5
667
+ msgid "This job listing has expired"
668
+ msgstr "Esta oferta laboral ha expirado"
669
+
670
+ #: templates/content-single-job_listing.php:17
671
+ msgid "This position has been filled"
672
+ msgstr "Esta oferta ya ha sido complet"
673
+
674
+ #: templates/form-fields/file-field.php:3
675
+ msgid "or"
676
+ msgstr "o"
677
+
678
+ #: templates/form-fields/file-field.php:10
679
+ msgid "Max. file size: %s. Allowed images: jpg, gif, png."
680
+ msgstr "Tamaño máximo : %s. Imagenes Permitidas jpg, gif, png."
681
+
682
+ #: templates/job-application.php:5
683
+ msgid "Apply for job"
684
+ msgstr "Postular al trabajo"
685
+
686
+ #: templates/job-application.php:12
687
+ msgid ""
688
+ "To apply for this job <strong>email your details to</strong> <a class="
689
+ "\"job_application_email\" href=\"mailto:%1$s%2$s\">%1$s</a>"
690
+ msgstr ""
691
+ "Para postural a ésta oferta laboral <strong>envier un email a</strong> <a "
692
+ "class=\"job_application_email\" href=\"mailto:%1$s%2$s\">%1$s</a>"
693
+
694
+ #: templates/job-application.php:14
695
+ msgid "Apply using webmail: "
696
+ msgstr "Postular usando webmail:"
697
+
698
+ #: templates/job-application.php:28
699
+ msgid ""
700
+ "To apply for this job please visit the following URL: <a href=\"%1$s\">%1$s "
701
+ "&rarr;</a>"
702
+ msgstr ""
703
+ "Para postular a esta oferta laboral visitar la URL: <a href=\"%1$s\">%1$s "
704
+ "&rarr;</a>"
705
+
706
+ #: templates/job-dashboard.php:2
707
+ msgid ""
708
+ "Your job listings are shown in the table below. Expired listings will be "
709
+ "automatically removed after 30 days."
710
+ msgstr ""
711
+ "Sus ofertas laborales se muestran en la tabla abajo. La oferta expirada será "
712
+ "removida automáticamente después de 30 días."
713
+
714
+ #: templates/job-dashboard.php:6
715
+ msgid "Job Title"
716
+ msgstr "Cargo"
717
+
718
+ #: templates/job-dashboard.php:7
719
+ msgid "Date Posted"
720
+ msgstr "Fecha de publicación"
721
+
722
+ #: templates/job-dashboard.php:8
723
+ msgid "Status"
724
+ msgstr "Estado"
725
+
726
+ #: templates/job-dashboard.php:16
727
+ msgid "You do not have any active job listings."
728
+ msgstr "No tiene ofertas laborales activas."
729
+
730
+ #: templates/job-dashboard.php:32
731
+ msgid "Mark not filled"
732
+ msgstr "Oferta laboral no cubierta"
733
+
734
+ #: templates/job-dashboard.php:34
735
+ msgid "Mark filled"
736
+ msgstr "Oferta laboral no cubierta"
737
+
738
+ #: templates/job-filters.php:6
739
+ msgid "Keywords"
740
+ msgstr "Palabras claves"
741
+
742
+ #: templates/job-filters.php:7
743
+ msgid "All Jobs"
744
+ msgstr "Todas las ofertas laborales"
745
+
746
+ #: templates/job-filters.php:10
747
+ msgid "Location"
748
+ msgstr "Ubicación"
749
+
750
+ #: templates/job-filters.php:11
751
+ msgid "Any Location"
752
+ msgstr "Cualquier ubicación "
753
+
754
+ #: templates/job-filters.php:15
755
+ msgid "Category"
756
+ msgstr "Categoría"
757
+
758
+ #: templates/job-filters.php:17
759
+ msgid "All Job Categories"
760
+ msgstr "Todas las categorías"
761
+
762
+ #: templates/job-filters.php:39
763
+ msgid "Reset"
764
+ msgstr "Cancelar"
765
+
766
+ #: templates/job-filters.php:40
767
+ msgid "RSS"
768
+ msgstr "RSS"
769
+
770
+ #: templates/job-submit.php:28
771
+ msgid "Company details"
772
+ msgstr "Descripción de la empresa"
773
+
774
+ #: templates/job-submitted.php:3
775
+ msgid ""
776
+ "Job listed successfully. To view your job listing <a href=\"%s\">click here</"
777
+ "a>."
778
+ msgstr ""
779
+ "Oferta laboral registrada. Para ver su oferta laboral <a href=\"%s"
780
+ "\">seleccione aquí</a>."
781
+
782
+ #: templates/job-submitted.php:7
783
+ msgid ""
784
+ "Job submitted successfully. Your job listing will be visible once approved."
785
+ msgstr ""
786
+ "Oferta laboral enviado con éxito. Su sugerencia de oferta laboral será "
787
+ "pública una vez aprobada."
788
+
789
+ #: wp-job-manager-functions.php:101
790
+ msgid "Your email address isn&#8217;t correct."
791
+ msgstr "Su dirección de email no es correcta."
792
+
793
+ #: wp-job-manager-functions.php:104
794
+ msgid "This email is already registered, please choose another one."
795
+ msgstr ""
796
+ "Este correo ya está registrado. por favor registre otro o solicite la clave."
797
+
798
+ #: wp-job-manager-template.php:146
799
+ msgid "Active"
800
+ msgstr "Activo"
801
+
802
+ #: wp-job-manager-template.php:148
803
+ msgid "Expired"
804
+ msgstr "Expirado"
805
+
806
+ #: wp-job-manager-template.php:150
807
+ msgid "Pending Review"
808
+ msgstr "Pendiente de revisión"
809
+
810
+ #: wp-job-manager-template.php:152
811
+ msgid "Inactive"
812
+ msgstr "Inactivo"
813
+
814
+ #: wp-job-manager.php:89
815
+ msgid "Are you sure you want to delete this job?"
816
+ msgstr "Esta seguro que desea eliminar esta oferta laboral?"
817
+
818
+ #. Plugin Name of the plugin/theme
819
+ msgid "WP Job Manager"
820
+ msgstr "WP Job Manager"
821
+
822
+ #. #-#-#-#-# job_manager.pot (WP Job Manager 1.0 Beta 1) #-#-#-#-#
823
+ #. Plugin URI of the plugin/theme
824
+ #. #-#-#-#-# job_manager.pot (WP Job Manager 1.0 Beta 1) #-#-#-#-#
825
+ #. Author URI of the plugin/theme
826
+ msgid "http://mikejolley.com"
827
+ msgstr "http://mikejolley.com"
828
+
829
+ #. Description of the plugin/theme
830
+ msgid ""
831
+ "Manage job listings from the WordPress admin panel, and allow users to post "
832
+ "jobs directly to your site."
833
+ msgstr ""
834
+ "Administre la oferta laboral desde el administrador y permita a los usuarios "
835
+ "sugerir ofertas laborales directamente en su sitio ."
836
+
837
+ #. Author of the plugin/theme
838
+ msgid "Mike Jolley"
839
+ msgstr "Mike Jolley"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mikejolley
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mike.jolley@me.com&currency_code=&amount=&return=&item_name=Buy+me+a+coffee+for+A+New+Job+Board+Plugin+for+WordPress
4
  Tags: job listing, job board, job, jobs, company
5
  Requires at least: 3.5
6
- Tested up to: 3.5
7
- Stable tag: 1.0.4
8
 
9
  Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
10
 
@@ -72,9 +72,14 @@ The manual installation method involves downloading the plugin and uploading it
72
 
73
  == Changelog ==
74
 
 
 
 
 
 
75
  = 1.0.4 =
76
- * More hooks in the submit process
77
- * Hide apply button if url/email is unset
78
 
79
  = 1.0.3 =
80
  * Some extra hooks in job-filters.php
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mike.jolley@me.com&currency_code=&amount=&return=&item_name=Buy+me+a+coffee+for+A+New+Job+Board+Plugin+for+WordPress
4
  Tags: job listing, job board, job, jobs, company
5
  Requires at least: 3.5
6
+ Tested up to: 3.6
7
+ Stable tag: 1.0.5
8
 
9
  Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
10
 
72
 
73
  == Changelog ==
74
 
75
+ = 1.0.5 =
76
+ * Added function to get listings by certain criteria.
77
+ * Added ES translation.
78
+ * Fix job feed when no args are present.
79
+
80
  = 1.0.4 =
81
+ * More hooks in the submit process.
82
+ * Hide apply button if url/email is unset.
83
 
84
  = 1.0.3 =
85
  * Some extra hooks in job-filters.php
wp-job-manager-functions.php CHANGED
@@ -1,4 +1,93 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  if ( ! function_exists( 'get_job_listing_types' ) ) :
3
  /**
4
  * Outputs a form to submit a new job to the site from the frontend.
1
  <?php
2
+ if ( ! function_exists( 'get_job_listings' ) ) :
3
+ /**
4
+ * Queries job listings with certain criteria and returns them
5
+ *
6
+ * @access public
7
+ * @return void
8
+ */
9
+ function get_job_listings( $args = array() ) {
10
+ global $wpdb;
11
+
12
+ $args = wp_parse_args( $args, array(
13
+ 'search_location' => '',
14
+ 'search_keywords' => '',
15
+ 'search_categories' => array(),
16
+ 'job_types' => array(),
17
+ 'offset' => '',
18
+ 'posts_per_page' => '-1',
19
+ 'orderby' => 'date',
20
+ 'order' => 'DESC'
21
+ ) );
22
+
23
+ $query_args = array(
24
+ 'post_type' => 'job_listing',
25
+ 'post_status' => 'publish',
26
+ 'ignore_sticky_posts' => 1,
27
+ 'offset' => absint( $args['offset'] ),
28
+ 'posts_per_page' => intval( $args['posts_per_page'] ),
29
+ 'orderby' => $args['orderby'],
30
+ 'order' => $args['order'],
31
+ 'tax_query' => array(),
32
+ 'meta_query' => array()
33
+ );
34
+
35
+ if ( ! empty( $args['job_types'] ) )
36
+ $query_args['tax_query'][] = array(
37
+ 'taxonomy' => 'job_listing_type',
38
+ 'field' => 'slug',
39
+ 'terms' => $args['job_types']
40
+ );
41
+
42
+ if ( ! empty( $args['search_categories'] ) )
43
+ $query_args['tax_query'][] = array(
44
+ 'taxonomy' => 'job_listing_category',
45
+ 'field' => 'slug',
46
+ 'terms' => $args['search_categories']
47
+ );
48
+
49
+ if ( get_option( 'job_manager_hide_filled_positions' ) == 1 )
50
+ $query_args['meta_query'][] = array(
51
+ 'key' => '_filled',
52
+ 'value' => '1',
53
+ 'compare' => '!='
54
+ );
55
+
56
+ if ( $args['search_location'] )
57
+ $query_args['meta_query'][] = array(
58
+ 'key' => '_job_location',
59
+ 'value' => $args['search_location'],
60
+ 'compare' => 'LIKE'
61
+ );
62
+
63
+ // Keyword search - search meta as well as post content
64
+ if ( $args['search_keywords'] ) {
65
+ $post_ids = $wpdb->get_col( $wpdb->prepare( "
66
+ SELECT DISTINCT post_id FROM {$wpdb->postmeta}
67
+ WHERE meta_value LIKE '%%%s%%'
68
+ ", $args['search_keywords'] ) );
69
+
70
+ $post_ids = $post_ids + $wpdb->get_col( $wpdb->prepare( "
71
+ SELECT DISTINCT ID FROM {$wpdb->posts}
72
+ WHERE post_title LIKE '%%%s%%'
73
+ OR post_content LIKE '%%%s%%'
74
+ ", $args['search_keywords'], $args['search_keywords'] ) );
75
+
76
+ $query_args['post__in'] = $post_ids + array( 0 );
77
+ }
78
+
79
+ $query_args = apply_filters( 'job_manager_get_listings', $query_args );
80
+
81
+ if ( empty( $query_args['meta_query'] ) )
82
+ unset( $query_args['meta_query'] );
83
+
84
+ if ( empty( $query_args['tax_query'] ) )
85
+ unset( $query_args['tax_query'] );
86
+
87
+ return new WP_Query( $query_args );
88
+ }
89
+ endif;
90
+
91
  if ( ! function_exists( 'get_job_listing_types' ) ) :
92
  /**
93
  * Outputs a form to submit a new job to the site from the frontend.
wp-job-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Job Manager
4
  Plugin URI: http://mikejolley.com/projects/wp-job-manager/
5
  Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
6
- Version: 1.0.4
7
  Author: Mike Jolley
8
  Author URI: http://mikejolley.com
9
  Requires at least: 3.5
@@ -28,7 +28,7 @@ class WP_Job_Manager {
28
  */
29
  public function __construct() {
30
  // Define constants
31
- define( 'JOB_MANAGER_VERSION', '1.0.4' );
32
  define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
33
  define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
34
 
3
  Plugin Name: WP Job Manager
4
  Plugin URI: http://mikejolley.com/projects/wp-job-manager/
5
  Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
6
+ Version: 1.0.5
7
  Author: Mike Jolley
8
  Author URI: http://mikejolley.com
9
  Requires at least: 3.5
28
  */
29
  public function __construct() {
30
  // Define constants
31
+ define( 'JOB_MANAGER_VERSION', '1.0.5' );
32
  define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
33
  define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
34