Fix malformed HTML in composer, use wordmark logo in header, default to 'Beep!'

This commit is contained in:
Krystie
2026-05-18 19:06:42 -07:00
parent 6390e9ac70
commit 996848e588
3 changed files with 13 additions and 15 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+6 -2
View File
@@ -76,7 +76,8 @@ class Beep_Shortcode {
public static function render_feed($atts) {
$atts = shortcode_atts([
'limit' => 50,
'header' => 'Messages from',
'header' => 'Beep!',
'show_wordmark' => true,
'sort' => 'latest',
], $atts, 'beep_feed');
@@ -89,8 +90,11 @@ class Beep_Shortcode {
?>
<div class="beep-feed" data-beep-feed>
<div class="beep-feed-header">
<span class="beep-feed-header-text"><?php echo esc_html($atts['header']); ?></span>
<?php if (!empty($atts['show_wordmark'])): ?>
<?php echo beep_logo_svg(); ?>
<?php else: ?>
<span class="beep-feed-header-text"><?php echo esc_html($atts['header']); ?></span>
<?php endif; ?>
</div>
<?php if ($has_posts) : ?>
-6
View File
@@ -83,12 +83,6 @@ function beep_render_composer() {
<span>Voice note</span>
<button class="beep-voice-remove" data-beep-voice-remove type="button" title="Remove">&times;</button>
</div>
</div> <div class="beep-compose-footer">
<span class="beep-char-counter" data-beep-counter><?php echo (int) BEEP_CHAR_LIMIT; ?></span>
<button class="beep-button beep-post-button" data-beep-submit disabled>Beep</button>
</div>
</div>
</div>
</div>
</div>
<?php