maybe_set_listing( $settings['lisitng_id'] );
$content = jet_engine()->frontend->get_listing_item( $post );
$item_id = jet_engine()->listings->data->get_current_object_id( $post );
$result = sprintf(
'
%1$s
',
$content,
$item_id
);
echo $result;
if ( isset( $this->posts_cache[ $item_id ] ) ) {
$this->posts_cache[ $item_id ] = $result;
}
}
}
if ( ! empty( $current_multiday_events ) ) {
foreach ( $current_multiday_events as $post ) {
$post_id = jet_engine()->listings->data->get_current_object_id( $post );
if ( ! empty( $this->posts_cache[ $post_id ] ) ) {
echo $this->posts_cache[ $post_id ];
} else {
if ( $post ) {
$this->maybe_set_listing( $settings['lisitng_id'] );
$content = jet_engine()->frontend->get_listing_item( $post );
$result = sprintf(
'
%1$s
',
$content,
$post_id
);
echo $result;
$this->posts_cache[ $post_id ] = $result;
}
}
}
}
?>