Skip to content

Commit a160eaf

Browse files
committed
Merge branch 'dev-branch'
2 parents f772ed5 + fbd11fa commit a160eaf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+26858
-380
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DS_Store
22
Thumbs.db
33
node_modules
4-
build
4+
# build
55
*.code-workspace
66
*.zip
77
*.log

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## Changelog
22

3+
### V 3.5.0 - 2024-11-07
4+
* Added: Job listing block.
5+
* Fixed: Translation issue in email digest.
6+
* Minor bug fixes and code improvements.
7+
38
### V 3.4.7 - 2024-09-24
49
* Fixed: Recaptcha won't reset after submitting the application form.
510
* Minor bug fixes and code improvements.

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ The plugin comes with two layouts - Grid and List which are designed carefully a
9595

9696
## Changelog
9797

98+
**V 3.5.0 - 2024-11-07**
99+
* Added: Job listing block.
100+
* Fixed: Translation issue in email digest.
101+
* Minor bug fixes and code improvements.
102+
98103
**V 3.4.7 - 2024-09-24**
99104
* Fixed: Recaptcha won't reset after submitting the application form.
100105
* Minor bug fixes and code improvements.

admin/class-awsm-job-openings-settings.php

+1
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ public static function get_default_settings( $option_name = '' ) {
470470
/* translators: %1$s: Site link, %2$s: Plugin website link */
471471
'footer_text' => sprintf( esc_html__( 'Sent from %1$s by %2$s Plugin', 'wp-job-openings' ), '<a href="{site-url}">{site-title}</a>', '<a href="https://wpjobopenings.com">' . esc_html__( 'WP Job Openings', 'wp-job-openings' ) . '</a>' ),
472472
),
473+
'awsm_jobs_email_digest' => 'enable',
473474
);
474475
if ( ! empty( $option_name ) ) {
475476
if ( isset( $options[ $option_name ] ) ) {

assets/css/editor.min.css

-2
This file was deleted.

assets/css/editor.min.css.map

-1
This file was deleted.

assets/css/public/style.css

+10
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ a.awsm-job-item {
118118
.awsm-filter-wrap * {
119119
box-sizing: border-box;
120120
}
121+
122+
.awsm-job-wrap, .awsm-job-wrap * {
123+
box-sizing: border-box;
124+
}
125+
121126
.awsm-filter-wrap {
122127
margin: 0 -10px 20px;
123128
}
@@ -694,3 +699,8 @@ ul.awsm-error-message li {
694699
.awsm-jobs-is-block-theme .site-title {
695700
margin-bottom: 0;
696701
}
702+
703+
.awsm-job-featured-image img {
704+
max-width: 100%;
705+
height: auto;
706+
}

assets/css/style.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/style.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/img/arrow.svg

+7
Loading

assets/js/public/job-listings.js

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict';
44

5-
jQuery(function($) {
5+
jQuery(function($) {
66
var rootWrapperSelector = '.awsm-job-wrap';
77
var wrapperSelector = '.awsm-job-listings';
88

@@ -12,11 +12,11 @@ jQuery(function($) {
1212
var currentUrl = window.location.protocol + '//' + window.location.host + window.location.pathname;
1313
var triggerFilter = true;
1414

15-
function getListingsData($wrapper) {
15+
function getListingsData($wrapper) {
1616
var data = [];
1717
var parsedListingsAttrs = [ 'listings', 'specs', 'search', 'lang', 'taxonomy', 'termId' ];
1818
var dataAttrs = $wrapper.data();
19-
$.each(dataAttrs, function(dataAttr, value) {
19+
$.each(dataAttrs, function(dataAttr, value) {
2020
if ($.inArray(dataAttr, parsedListingsAttrs) === -1) {
2121
data.push({
2222
name: dataAttr,
@@ -27,12 +27,13 @@ jQuery(function($) {
2727
return data;
2828
}
2929

30-
function awsmJobFilters($rootWrapper) {
30+
function awsmJobFilters($rootWrapper) {
3131
var $wrapper = $rootWrapper.find(wrapperSelector);
3232
var $filterForm = $rootWrapper.find(filterSelector + ' form');
3333
var formData = $filterForm.serializeArray();
3434
var listings = $wrapper.data('listings');
3535
var specs = $wrapper.data('specs');
36+
3637
formData.push({
3738
name: 'listings_per_page',
3839
value: listings
@@ -43,6 +44,7 @@ jQuery(function($) {
4344
value: specs
4445
});
4546
}
47+
4648
var listingsData = getListingsData($wrapper);
4749
if (listingsData.length > 0) {
4850
formData = formData.concat(listingsData);
@@ -159,7 +161,7 @@ jQuery(function($) {
159161
}
160162
};
161163

162-
$(filterSelector + ' .awsm-filter-option').on('change', function(e) {
164+
$(filterSelector + ' .awsm-filter-option').on('change', function(e) {
163165
e.preventDefault();
164166
var $elem = $(this);
165167
var $selected = $elem.find('option:selected');
@@ -195,7 +197,7 @@ jQuery(function($) {
195197
/* ========== Job Listings Load More ========== */
196198

197199
$(wrapperSelector).on('click', '.awsm-jobs-pagination .awsm-load-more-btn, .awsm-jobs-pagination a.page-numbers', function(e) {
198-
e.preventDefault();
200+
e.preventDefault();
199201
var $triggerElem = $(this);
200202
var isDefaultPagination = $triggerElem.hasClass('awsm-load-more-btn');
201203
var paged = 1;
@@ -278,6 +280,7 @@ jQuery(function($) {
278280
value: specs
279281
});
280282
}
283+
281284
if (typeof lang !== 'undefined') {
282285
wpData.push({
283286
name: 'lang',

assets/js/script.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blocks/.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[*.{yml,yaml}]
17+
indent_style = space
18+
indent_size = 2

blocks/.gitignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Coverage directory used by tools like istanbul
9+
coverage
10+
11+
# Compiled binary addons (https://nodejs.org/api/addons.html)
12+
build/Release
13+
14+
# Dependency directories
15+
node_modules/
16+
17+
# Optional npm cache directory
18+
.npm
19+
20+
# Optional eslint cache
21+
.eslintcache
22+
23+
# Output of `npm pack`
24+
*.tgz
25+
26+
# Output of `wp-scripts plugin-zip`
27+
*.zip
28+
29+
# dotenv environment variables file
30+
.env

blocks/build/block.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"apiVersion": 3,
4+
"name": "wp-job-openings/blocks",
5+
"version": "1.0.0",
6+
"title": "",
7+
"category": "",
8+
"icon": "",
9+
"description": "",
10+
"attributes": {
11+
"filter_options": {
12+
"type": "array",
13+
"default": []
14+
},
15+
"select_filter_full": {
16+
"type": "boolean",
17+
"default": false
18+
},
19+
"other_options": {
20+
"type": "array",
21+
"default": []
22+
},
23+
"layout": {
24+
"type": "string",
25+
"default": "list"
26+
},
27+
"listing_per_page": {
28+
"type": "number",
29+
"default": 10
30+
},
31+
"number_of_columns": {
32+
"type": "number",
33+
"default": 3
34+
},
35+
"pagination": {
36+
"type": "string",
37+
"default": "modern"
38+
},
39+
"hide_expired_jobs": {
40+
"type": "boolean",
41+
"default": false
42+
},
43+
"search": {
44+
"type": "boolean",
45+
"default": false
46+
},
47+
"search_placeholder": {
48+
"type": "string",
49+
"default": ""
50+
},
51+
"enable_job_filter": {
52+
"type": "boolean",
53+
"default": true
54+
}
55+
},
56+
"example": {},
57+
"supports": {
58+
"html": false
59+
},
60+
"textdomain": "wp-job-openings",
61+
"editorScript": "file:./index.js",
62+
"editorStyle": "file:./index.css",
63+
"style": "file:./style-index.css",
64+
"viewScript": "file:./view.js"
65+
}

0 commit comments

Comments
 (0)