@@ 998-1000 (lines=3) @@ | ||
995 | $html .= '<p><label>' . __( 'Question Category:' , 'woothemes-sensei' ) . '</label> '; |
|
996 | $html .= '<select id="add-question-category-options" name="question_category" class="chosen_select widefat question-category-select">' . "\n"; |
|
997 | $html .= '<option value="">' . __( 'None', 'woothemes-sensei' ) . '</option>' . "\n"; |
|
998 | foreach( $question_cats as $cat ) { |
|
999 | $html .= '<option value="' . esc_attr( $cat->term_id ) . '">' . esc_html( $cat->name ) . '</option>'; |
|
1000 | } // End For Loop |
|
1001 | $html .= '</select></p>' . "\n"; |
|
1002 | } |
|
1003 | } |
|
@@ 1059-1061 (lines=3) @@ | ||
1056 | $html .= '</select> |
|
1057 | <select id="existing-category"> |
|
1058 | <option value="">' . __( 'All Categories', 'woothemes-sensei' ) . '</option>'; |
|
1059 | foreach( $question_cats as $cat ) { |
|
1060 | $html .= '<option value="' . esc_attr( $cat->slug ) . '">' . esc_html( $cat->name ) . '</option>'; |
|
1061 | } |
|
1062 | $html .= '</select> |
|
1063 | <input type="text" id="existing-search" placeholder="' . __( 'Search', 'woothemes-sensei' ) . '" /> |
|
1064 | <a class="button" id="existing-filter-button">' . __( 'Filter', 'woothemes-sensei' ) . '</a> |
|
@@ 1122-1124 (lines=3) @@ | ||
1119 | ||
1120 | $html .= '<p><select id="add-multiple-question-category-options" name="multiple_category" class="chosen_select widefat question-category-select">' . "\n"; |
|
1121 | $html .= '<option value="">' . __( 'Select a Question Category', 'woothemes-sensei' ) . '</option>' . "\n"; |
|
1122 | foreach( $question_cats as $cat ) { |
|
1123 | $html .= '<option value="' . esc_attr( $cat->term_id ) . '">' . esc_html( $cat->name ) . '</option>'; |
|
1124 | } // End For Loop |
|
1125 | $html .= '</select></p>' . "\n"; |
|
1126 | ||
1127 | $html .= '<p>' . __( 'Number of questions:', 'woothemes-sensei' ) . ' <input type="number" min="1" value="1" max="1" id="add-multiple-question-count" class="small-text"/>'; |