Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update category name #2392

Merged
merged 1 commit into from
Nov 3, 2023
Merged
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
3 changes: 2 additions & 1 deletion php/admin/options-page-email-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,15 @@ function qsm_options_emails_tab_template() {
<button class="delete-condition-button"><span class="dashicons dashicons-trash"></span></button>
<select class="email-condition-category">
<option value="" <# if (data.category == '') { #>selected<# } #>><?php esc_html_e( 'Quiz', 'quiz-master-next' ); ?></option>
<option value="" disabled><?php esc_html_e( '---Select Category---', 'quiz-master-next' ); ?></option>
<optgroup label="<?php esc_html_e( 'Question Categories', 'quiz-master-next' ); ?>">
<?php if ( ! empty( $categories ) ) { ?>
<?php foreach ( $categories as $cat ) { ?>
<option value="<?php echo esc_attr( $cat[0] ); ?>" <# if (data.category == '<?php echo esc_attr( $cat[0] ); ?>') { #>selected<# } #>><?php echo esc_attr( $cat[0] ); ?></option>
<?php } ?>
<?php } else { ?>
<option value="" disabled><?php esc_html_e( 'No Categories Available', 'quiz-master-next' ); ?></option>
<?php } ?>
</optgroup>
<?php do_action( 'qsm_email_page_condition_category' ); ?>
</select>
<select class="email-condition-criteria">
Expand Down
3 changes: 2 additions & 1 deletion php/admin/options-page-results-page-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,15 @@ function qsm_options_results_tab_template(){
<button class="delete-condition-button"><span class="dashicons dashicons-trash"></span></button>
<select class="results-page-condition-category">
<option value="" <# if (data.category == '') { #>selected<# } #>><?php esc_html_e( 'Quiz', 'quiz-master-next' ); ?></option>
<option value="" disabled><?php esc_html_e( '---Select Category---', 'quiz-master-next' ); ?></option>
<optgroup label="<?php esc_html_e( 'Question Categories', 'quiz-master-next' ); ?>">
<?php if ( ! empty( $categories ) ) { ?>
<?php foreach ( $categories as $cat ) { ?>
<option value="<?php echo esc_attr( $cat[0] ); ?>" <# if (data.category == '<?php echo esc_attr( $cat[0] ); ?>') { #>selected<# } #>><?php echo esc_attr( $cat[0] ); ?></option>
<?php } ?>
<?php } else { ?>
<option value="" disabled><?php esc_html_e( 'No Categories Available', 'quiz-master-next' ); ?></option>
<?php } ?>
</optgroup>
<?php do_action( 'qsm_results_page_condition_category' ); ?>
</select>

Expand Down
Loading