Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changelogs/3024.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
significance: minor
type: added
links:
- "#3024"
description: Display the quiz post ID in the course builder quiz card header so quizzes with identical titles can be distinguished.
7 changes: 6 additions & 1 deletion includes/admin/views/builder/quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* Builder quiz model view
*
* @since 3.16.0
* @version 3.17.6
* @since [Next Version] Added quiz ID display in the header.
* @version [Next Version]
*/
?>
<script type="text/html" id="tmpl-llms-quiz-template">
Expand Down Expand Up @@ -36,6 +37,10 @@
<?php esc_html_e( 'Title', 'lifterlms' ); ?>: <span class="llms-input llms-editable-title" contenteditable="true" data-attribute="title" data-original-content="{{{ data.get( 'title' ) }}}" data-required="required">{{{ data.get( 'title' ) }}}</span>
</h3>

<# if ( ! data.has_temp_id() ) { #>
<span class="llms-item-id"><?php esc_html_e( 'ID:', 'lifterlms' ); ?> {{{ data.get( 'id' ) }}}</span>
<# } #>

<div class="llms-headline llms-quiz-points">
<?php esc_html_e( 'Total Points', 'lifterlms' ); ?>: <strong id="llms-quiz-total-points">{{{ data.get( '_points' ) }}}</strong>
</div>
Expand Down
Loading