Skip to content

Commit

Permalink
Merge pull request #2392 from QuizandSurveyMaster/dev-zubair
Browse files Browse the repository at this point in the history
update category name
  • Loading branch information
zubairraeen authored Nov 3, 2023
2 parents b1a1a8b + f37c9b0 commit 8c952d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 8c952d1

Please sign in to comment.