Skip to content

Commit

Permalink
TMS-978: Remove automatic line breaks from event description (#17)
Browse files Browse the repository at this point in the history
* TMS-978: Add classes to single manual-event description

* TMS-978: Update changelog

* 1.0.3

* TMS-978: Remove automatic line breaks from event description

* 1.0.5
  • Loading branch information
eebbi authored Oct 8, 2023
1 parent 101d3d8 commit f7b7cd9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning][semver].

## [Unreleased]

## [1.0.5] - 2023-10-09

- TMS-978: Remove automatic line breaks from event description

## [1.0.4] - 2023-10-04

- TMS-976: Fix manual events query for combined-events-list page template
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: TMS Manual Events
* Plugin URI: https://github.com/devgeniem/tms-plugin-manual-events
* Description: TMS Manual Events
* Version: 1.0.3
* Version: 1.0.5
* Requires PHP: 7.4
* Author: Geniem Oy
* Author URI: https://geniem.com
Expand Down
2 changes: 1 addition & 1 deletion src/Partials/single-manual-event-cpt.dust
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{/event.normalized.short_description}

<div class="columns is-multiline is-variable is-8 mb-8">
<div class="entry__description column is-5-desktop is-offset-1-desktop keep-vertical-spacing has-line-height-normal">
<div class="entry__description column is-5-desktop is-offset-1-desktop keep-vertical-spacing">
{event.normalized.description|kses}
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/PostType/ManualEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public static function normalize_event( $event ) { // phpcs:disable Generic.Metr
$normalized_event = [
'name' => $event->title ?? '',
'short_description' => $event->short_description ?? '',
'description' => nl2br( $event->description ?? '' ),
'description' => $event->description ?? '',
'date' => static::get_event_date( $event ),
'time' => static::get_event_time( $event ),
// Include raw dates for possible sorting.
Expand Down

0 comments on commit f7b7cd9

Please sign in to comment.