public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Shows a list of quesiton types for addition.
 *
 * @since 1.0.0
 *
 * @return string The HTML to render the action code.
 */
Shows a list of quesiton types for addition.

@return string The HTML to render the action code.
Shows a list of quesiton types for addition . @return string The HTML to render the action code .
function WPCW_questions_questionType_Actions() {
	$question_types = apply_filters( 'wpcw_question_types', array(
		'multi'     => __( 'Multiple Choice', 'wp-courseware' ),
		'truefalse' => __( 'True / False', 'wp-courseware' ),
		'open'      => __( 'Open Ended', 'wp-courseware' ),
		'upload'    => __( 'File Upload', 'wp-courseware' ),
	) );
	$html = sprintf( '<div class="wpcw_questions_question_type_actions_wrap"><form method="POST" action="%s">', admin_url( 'admin.php?page=WPCW_showPage_ModifyQuestion' ) );
	$html .= sprintf( '<label for="wpcw_questions_question_type_actions">%s</label>', __( 'Add Question:', 'wp-courseware' ) );
	$html .= '<select name="question_type" class="wpcw_question_type_action">';
	$html .= sprintf( '<option value="" selected="selected">%s</option>', __( 'Select Question Type', 'wp-courseware' ) );
	foreach ( $question_types as $question_id => $question_label ) {
		$html .= sprintf( '<option value="%s">%s</option>', $question_id, $question_label );
	}
	$html .= '</select>';
	$html .= sprintf( '<input type="submit" class="button-secondary" value="%s" />', __( 'Add', 'wp-courseware' ) );
	return $html . '</form></div>';
}
function WPCW_questions_questionType_Actions ( ) { $ question_types = apply_filters ( 'wpcw_question_types' , array ( 'multi' => __ ( 'Multiple Choice' , 'wp-courseware' ) , 'truefalse' => __ ( 'True / False' , 'wp-courseware' ) , 'open' => __ ( 'Open Ended' , 'wp-courseware' ) , 'upload' => __ ( 'File Upload' , 'wp-courseware' ) , ) ) ; $ html = sprintf ( '<div class="wpcw_questions_question_type_actions_wrap"><form method="POST" action="%s">' , admin_url ( 'admin.php?page=WPCW_showPage_ModifyQuestion' ) ) ; $ html .= sprintf ( '<label for="wpcw_questions_question_type_actions">%s</label>' , __ ( 'Add Question:' , 'wp-courseware' ) ) ; $ html .= '<select name="question_type" class="wpcw_question_type_action">' ; $ html .= sprintf ( '<option value="" selected="selected">%s</option>' , __ ( 'Select Question Type' , 'wp-courseware' ) ) ; foreach ( $ question_types as $ question_id => $ question_label ) { $ html .= sprintf ( '<option value="%s">%s</option>' , $ question_id , $ question_label ) ; } $ html .= '</select>' ; $ html .= sprintf ( '<input type="submit" class="button-secondary" value="%s" />' , __ ( 'Add' , 'wp-courseware' ) ) ; return $ html . '</form></div>' ; }
Shows a list of quesiton types for addition.
Shows a list of quesiton types for addition .
// Select // CTA