From b42f7241d922e379a84e53dee2dc12fac00b1398 Mon Sep 17 00:00:00 2001 From: Jo Dickson Date: Wed, 26 Jul 2017 09:30:38 -0500 Subject: [PATCH 1/2] Updated modern layout description to use wp_trim_words() --- includes/ucf-events-common.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/ucf-events-common.php b/includes/ucf-events-common.php index 79936d8..e484175 100644 --- a/includes/ucf-events-common.php +++ b/includes/ucf-events-common.php @@ -197,13 +197,7 @@ function ucf_events_display_modern( $items, $title ) {
- description ) > $count = 250 ) { - echo substr( $event_description, 0, $count ) . "…"; - } else { - echo $event_description; - } - ?> + description, 55, '…' ); ?>
From 84ae1caaee10bbd907693d630b7677ecf379556e Mon Sep 17 00:00:00 2001 From: Jo Dickson Date: Wed, 26 Jul 2017 09:36:06 -0500 Subject: [PATCH 2/2] Reduced word count --- includes/ucf-events-common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ucf-events-common.php b/includes/ucf-events-common.php index e484175..e085db7 100644 --- a/includes/ucf-events-common.php +++ b/includes/ucf-events-common.php @@ -197,7 +197,7 @@ function ucf_events_display_modern( $items, $title ) {
- description, 55, '…' ); ?> + description, 40, '…' ); ?>