Skip to content

Commit

Permalink
Get LFAsia event homepage listing to match the LFEvents listing
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
  • Loading branch information
cjyabraham committed Nov 15, 2024
1 parent f95af98 commit 93cbff4
Showing 1 changed file with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
$description = get_post_meta( $post->ID, 'lfes_description', true );
?>

<div id="post-<?php the_ID(); ?>" class="cell medium-6">
<div id="post-<?php the_ID(); ?>" class="cell medium-12 large-6 event callout">

<h2 class="event-title medium-margin-right small-margin-bottom line-height-tight">
<a class="unstyled-link" href="<?php echo esc_html( lfe_get_event_url( $post->ID ) ); ?>">
Expand Down Expand Up @@ -111,11 +111,30 @@
</span>
</p>

<p class="text-small small-margin-bottom">
<div class="text-small small-margin-bottom event-description">
<?php
echo esc_html( $description );
$allowed_elements = array(
'href' => true,
'class' => true,
'alt' => true,
'rel' => true,
'target' => true,
);
echo wp_kses(
$description,
array(
'a' => $allowed_elements,
'br' => array(),
'ul' => array(),
'li' => array(),
'p' => array(),
'h4' => array(),
'h5' => array(),
'strong' => array(),
)
);
?>
</p>
</div>

<p class="homepage--call-to-action">
<?php
Expand Down

0 comments on commit 93cbff4

Please sign in to comment.