Skip to content

Commit 6f5d514

Browse files
authored
Merge pull request #204 from MultinetInteractive/master
add: Listview: Allow line breaks in HTML-code from course templates
2 parents 46e4083 + 862dfae commit 6f5d514

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

content/template/listTemplate/blocks/course-block-a.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
}
2323

2424
if ( $show_descr ) {
25-
echo '<div class="courseDescription">' . esc_html( wp_strip_all_tags( $descr ) ) . '</div>';
25+
echo '<div class="courseDescription">' . esc_html( wp_kses( $descr, array(
26+
'br' => array(),
27+
'p' => array(),
28+
) ) ) . '</div>';
2629
}
2730

2831
if ( $show_course_locations && ! empty( $event_cities ) && $show_city ) {

content/template/listTemplate/blocks/course-block-b.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
}
2121

2222
if ( $show_descr ) {
23-
echo '<div class"courseDescription">' . esc_html( $descr ) . '</div>';
23+
echo '<div class"courseDescription">' . esc_html( wp_kses( $descr, array(
24+
'br' => array(),
25+
'p' => array(),
26+
) ) ) . '</div>';
2427
}
2528

2629
if ( $show_course_locations && ! empty( $event_cities ) && $show_city ) {

eduadmin.php

Lines changed: 1 addition & 1 deletion
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, lega online
12-
* Version: 2.0.22
12+
* Version: 2.0.23
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 4.7

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
44
Requires at least: 4.7
55
Tested up to: 4.9
6-
Stable tag: 2.0.22
6+
Stable tag: 2.0.23
77
Requires PHP: 5.2
88
License: GPL3
99
License-URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -37,6 +37,9 @@ If you notice that your API key doesn't work any more, you have to contact us.
3737

3838
== Changelog ==
3939

40+
### 2.0.23
41+
- add: Listview: Allow line breaks in HTML-code from course templates
42+
4043
### 2.0.22
4144
- fix: Setting last admittance date and time to 23:59:59 (since some customers uses that full day)
4245

0 commit comments

Comments
 (0)