Skip to content

Commit

Permalink
✨ feat(multilingual-quote): allow missing author
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Sep 6, 2023
1 parent d53b847 commit 3cf9e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/shortcodes/multilingual_quote.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<div class="translated">
<blockquote>
<p>{{ open_quote ~ translated ~ close_quote }}</p>
<p> — {{ author }} <label for="toggle-{{ random_id }}" class="quote-label quote-label-original">
{% if author %}<p> — {{ author }}{% endif %}<label for="toggle-{{ random_id }}" class="quote-label quote-label-original">
({{- macros_translate::translate(key="show_original_quote", default="Show original quote") -}})
</label></p>
</blockquote>
</div>
<div class="original">
<blockquote>
<p>{{ open_quote ~ original ~ close_quote }}</p>
<p> — {{ author }} <label for="toggle-{{ random_id }}" class="quote-label quote-label-translate">
{% if author %}<p> — {{ author }}{% endif %} <label for="toggle-{{ random_id }}" class="quote-label quote-label-translate">
({{- macros_translate::translate(key="show_translation", default="Show translation") -}})
</label></p>
</blockquote>
Expand Down

0 comments on commit 3cf9e3a

Please sign in to comment.