Skip to content

Commit 08c6b6a

Browse files
authored
Merge pull request #541 from MultinetInteractive/master
v5.4.0
2 parents e527f2b + af37687 commit 08c6b6a

File tree

10 files changed

+68
-23
lines changed

10 files changed

+68
-23
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [5.4.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.3.1...v5.4.0) (2025-02-25)
6+
7+
8+
### Features
9+
10+
* Added VoucherTemplate OData-endpoint ([9a6c631](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/9a6c6310fb4876ab4e1413e83d17491ffc018d6a))
11+
12+
13+
### Bug Fixes
14+
15+
* Custom course detail views will no longer require an attribute to show on demand events. ([6f90e87](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/6f90e875845d78a44ab32dda817284ad8b8b82ca))
16+
17+
18+
### Documentation
19+
20+
* Remove ondemand-attribute from detailinfo ([dfa3f59](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/dfa3f59c5bea11c8da99d5067e415d6859475a34))
21+
522
### [5.3.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.3.0...v5.3.1) (2024-11-05)
623

724

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ee9371cadec3e8823d80bf2acd425530
1+
ad8df46e2a1db959069163d7ffa25b3e

eduadmin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://www.eduadmin.se
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin
12-
* Version: 5.3.1
12+
* Version: 5.4.0
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 6.0
@@ -23,7 +23,7 @@
2323
*/
2424
/*
2525
EduAdmin Booking plugin
26-
Copyright (C) 2015-2024 Chris Gårdenberg, MultiNet Interactive AB
26+
Copyright (C) 2015-2025 Chris Gårdenberg, MultiNet Interactive AB
2727
2828
This program is free software: you can redistribute it and/or modify
2929
it under the terms of the GNU General Public License as published by

includes/edu-shortcodes.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ function eduadmin_get_detailinfo( $attributes ) {
420420
'courseinquiryurl' => null,
421421
'order' => null,
422422
'orderby' => null,
423-
'ondemand' => false,
424423
'allcourses' => false,
425424
),
426425
normalize_empty_atts( $attributes ),
@@ -464,18 +463,18 @@ function eduadmin_get_detailinfo( $attributes ) {
464463
$fetch_months = 6;
465464
}
466465

467-
if ( ! $attributes['ondemand'] ) {
468-
$edo = EDUAPIHelper()->GetCourseDetailInfo( $course_id, $fetch_months, $group_by_city );
469-
} else {
470-
$edo = EDUAPIHelper()->GetOnDemandCourseDetailInfo( $course_id, $group_by_city );
471-
}
472-
473-
$selected_course = false;
466+
$edo = EDUAPIHelper()->GetCourseDetailInfo( $course_id, $fetch_months, $group_by_city );
474467

475468
if ( ! empty( $edo ) ) {
476469
$selected_course = json_decode( $edo, true );
477470
}
478471

472+
$is_ondemand = $selected_course['OnDemand'];
473+
474+
if ( $is_ondemand ) {
475+
$selected_course = json_decode( EDUAPIHelper()->GetOnDemandCourseDetailInfo( $course_id, $group_by_city ), true );
476+
}
477+
479478
if ( ! is_array( $selected_course ) ) {
480479
EDU()->stop_timer( $t );
481480

@@ -742,7 +741,7 @@ function eduadmin_get_detailinfo( $attributes ) {
742741
$ret_str .= ' data-orderby="' . esc_attr( $custom_order_by_order ) . '"';
743742
$ret_str .= ' data-showvenue="' . esc_attr( EDU()->is_checked( 'eduadmin-showEventVenueName', false ) ) . '"';
744743
$ret_str .= ' data-eventinquiry="' . esc_attr( EDU()->is_checked( 'eduadmin-allowInterestRegEvent', false ) ) . '"';
745-
$ret_str .= ' data-ondemand="' . esc_attr( $attributes['ondemand'] ) . '"';
744+
$ret_str .= ' data-ondemand="' . esc_attr( $is_ondemand ) . '"';
746745
$ret_str .= ' data-allcourses="' . esc_attr( $attributes['allcourses'] ) . '"';
747746
$ret_str .= '>';
748747

new_website/docs/shortcodes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ This shortcode is used when you want to create your own custom template [**detai
120120
| courseinquiryurl | boolean | null |
121121
| order | string (`ASC`, `DESC`) | _null_ |
122122
| orderby | string | _null_ |
123-
| ondemand | boolean | false |
124123

125124
We will go into each attribute on the [_custom template_](custom-template.md) page.
126125

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eduadmin-wordpress-plugin",
33
"private": true,
4-
"version": "5.3.1",
4+
"version": "5.4.0",
55
"repository": "https://github.com/MultinetInteractive/EduAdmin-WordPress.git",
66
"author": "Chris Gårdenberg <[email protected]>",
77
"license": "MIT",

readme.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# EduAdmin Booking
22
- Requires at least: 6.0
33
- Tested up to: 6.6
4-
- Stable tag: 5.3.1
4+
- Stable tag: 5.4.0
55
- Requires PHP: 8.1
66
- License: GPL3
77
- License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -44,6 +44,23 @@ If you notice that your API key doesn't work any more, you have to contact us.
4444

4545
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4646

47+
### [5.4.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.3.1...v5.4.0) (2025-02-25)
48+
49+
50+
#### Features
51+
52+
* Added VoucherTemplate OData-endpoint ([9a6c631](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/9a6c6310fb4876ab4e1413e83d17491ffc018d6a))
53+
54+
55+
#### Bug Fixes
56+
57+
* Custom course detail views will no longer require an attribute to show on demand events. ([6f90e87](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/6f90e875845d78a44ab32dda817284ad8b8b82ca))
58+
59+
60+
#### Documentation
61+
62+
* Remove ondemand-attribute from detailinfo ([dfa3f59](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/dfa3f59c5bea11c8da99d5067e415d6859475a34))
63+
4764
### [5.3.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.3.0...v5.3.1) (2024-11-05)
4865

4966

@@ -70,7 +87,5 @@ The full changelog available on [GitHub](https://github.com/MultinetInteractive/
7087

7188
* Added repeatFrequency, repeatCount and courseMode for LD+JSON ([e5e5c42](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/e5e5c42bfe37d39c088e6901c2de3e7f31841e75)), closes [#511](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/511)
7289

73-
### [5.1.3](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.2...v5.1.3) (2024-10-10)
74-
7590

7691

readme.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== EduAdmin Booking ===
22
Contributors: mnchga
3-
Tags: booking, participants, courses, events, eduadmin, lega online
3+
Tags: booking, participants, courses, events, eduadmin
44
Requires at least: 6.0
55
Tested up to: 6.6
6-
Stable tag: 5.3.1
6+
Stable tag: 5.4.0
77
Requires PHP: 8.1
88
License: GPL3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -49,6 +49,23 @@ If you notice that your API key doesn't work any more, you have to contact us.
4949

5050
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
5151

52+
### [5.4.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.3.1...v5.4.0) (2025-02-25)
53+
54+
55+
#### Features
56+
57+
* Added VoucherTemplate OData-endpoint ([9a6c631](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/9a6c6310fb4876ab4e1413e83d17491ffc018d6a))
58+
59+
60+
#### Bug Fixes
61+
62+
* Custom course detail views will no longer require an attribute to show on demand events. ([6f90e87](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/6f90e875845d78a44ab32dda817284ad8b8b82ca))
63+
64+
65+
#### Documentation
66+
67+
* Remove ondemand-attribute from detailinfo ([dfa3f59](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/dfa3f59c5bea11c8da99d5067e415d6859475a34))
68+
5269
### [5.3.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.3.0...v5.3.1) (2024-11-05)
5370

5471

@@ -75,7 +92,5 @@ The full changelog available on [GitHub](https://github.com/MultinetInteractive/
7592

7693
* Added repeatFrequency, repeatCount and courseMode for LD+JSON ([e5e5c42](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/e5e5c42bfe37d39c088e6901c2de3e7f31841e75)), closes [#511](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/511)
7794

78-
### [5.1.3](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.2...v5.1.3) (2024-10-10)
79-
8095

8196

src/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== EduAdmin Booking ===
22
Contributors: mnchga
3-
Tags: booking, participants, courses, events, eduadmin, lega online
3+
Tags: booking, participants, courses, events, eduadmin
44
Requires at least: $PLUGINATLEAST$
55
Tested up to: $PLUGINTESTEDTO$
66
Stable tag: $PLUGINVERSION$

0 commit comments

Comments
 (0)