@@ 636-645 (lines=10) @@ | ||
633 | } // End If Statement |
|
634 | ||
635 | $question_count = 0; |
|
636 | foreach( $questions as $question ) { |
|
637 | ||
638 | if( $question->post_type == 'multiple_question' ) { |
|
639 | $question_number = get_post_meta( $question->ID, 'number', true ); |
|
640 | $question_count += $question_number; |
|
641 | } else { |
|
642 | ++$question_count; |
|
643 | } |
|
644 | ||
645 | } |
|
646 | ||
647 | // Inner DIV |
|
648 | $html .= '<div id="add-quiz-metadata"' . $quiz_class . '>'; |
|
@@ 1643-1650 (lines=8) @@ | ||
1640 | ||
1641 | // Count questions |
|
1642 | $question_count = 0; |
|
1643 | foreach( $questions as $question ) { |
|
1644 | if( $question->post_type == 'multiple_question' ) { |
|
1645 | $question_number = get_post_meta( $question->ID, 'number', true ); |
|
1646 | $question_count += $question_number; |
|
1647 | } else { |
|
1648 | ++$question_count; |
|
1649 | } |
|
1650 | } |
|
1651 | ||
1652 | $settings = array( |
|
1653 | array( |