put empty string if custom fields not set.
This commit is contained in:
parent
e4d0d45946
commit
eab844788a
@ -35,14 +35,14 @@ $topic_custom_fields = cbsonline_wpforo_get_topic_custom_fields($topic['first_po
|
||||
|
||||
<div class="topic-wrap <?php wpforo_unread($topic['topicid'], 'topic'); ?>">
|
||||
<div class="wpforo-topic">
|
||||
<div class="wpforo-topic-avatar"><div class="featured-image"><?php echo $topic_custom_fields['featured_image']; ?></div></div>
|
||||
<div class="wpforo-topic-avatar"><div class="featured-image"><?php echo $topic_custom_fields['featured_image'] ?? ''; ?></div></div>
|
||||
<div class="wpforo-topic-info">
|
||||
<p class="wpforo-topic-title"><a href="<?php wpforo_unread_url( $topic['topicid'], $topic_url ) ?>"><?php wpforo_topic_icon($topic); ?><?php echo esc_html($topic['title']) ?></a> <?php wpforo_unread_button($topic['topicid'], $topic_url); ?> <?php wpforo_viewing( $topic ); ?></p>
|
||||
<p class="wpforo-topic-custom_fields spearker">
|
||||
<span class="label"><?php echo wpfval($topic_fields['speaker_name'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['speaker_name']; ?>
|
||||
<span class="label"><?php echo wpfval($topic_fields['speaker_name'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['speaker_name'] ?? ''; ?>
|
||||
</p>
|
||||
<p class="wpforo-topic-custom_fields host">
|
||||
<span class="label"><?php echo wpfval($topic_fields['host'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['host']; ?>
|
||||
<span class="label"><?php echo wpfval($topic_fields['host'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['host'] ?? ''; ?>
|
||||
</p>
|
||||
<div class="wpforo-topic-badges"><?php wpforo_hook('wpforo_topic_info_end', $topic); ?></div>
|
||||
</div>
|
||||
@ -51,7 +51,7 @@ $topic_custom_fields = cbsonline_wpforo_get_topic_custom_fields($topic['first_po
|
||||
<?php else: ?>
|
||||
<div class="wpforo-topic-stat-lastpost"><?php wpforo_phrase('Replies not found') ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="wpforo-topic-stat-views"><?php echo $topic_custom_fields['seminar_date']; ?><br /><?php echo $topic_custom_fields['seminar_time']; ?></div>
|
||||
<div class="wpforo-topic-stat-views"><?php echo $topic_custom_fields['seminar_date']; ?><br /><?php echo $topic_custom_fields['seminar_time'] ?? ''; ?></div>
|
||||
<div class="wpforo-topic-stat-posts"></div>
|
||||
<br class="wpf-clear">
|
||||
</div><!-- wpforo-topic -->
|
||||
|
Loading…
Reference in New Issue
Block a user