public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Creates the dropdown form and button that allows the bulk-reset of users on their respective courses.
 *
 * @since 1.0.0
 *
 * @return string
 */
Creates the dropdown form and button that allows the bulk-reset of users on their respective courses.

@return string
Creates the dropdown form and button that allows the bulk - reset of users on their respective courses . @return string
function WPCW_users_showUserResetAbility() {
	global $wpcw_bulk_reset_index;
	if ( ! isset( $wpcw_bulk_reset_index ) ) {
		$wpcw_bulk_reset_index = 0;
	} else {
		return '';
	}
	$html = '<div class="wpcw_user_bulk_progress_reset">';
	$html .= WPCW_courses_getCourseResetDropdown(
		'wpcw_user_progress_reset_point_bulk',
		false,
		__( 'No courses yet.', 'wp-courseware' ),
		__( 'Reset User Progress to beginning of...', 'wp-courseware' ),
		'wpcw_user_progress_reset_point_bulk',
		'wpcw_user_progress_reset_select'
	);
	$html .= sprintf( '<input id="wpcw_user_progress_reset_point_bulk_btn" name="wpcw_user_bulk_progress_reset" type="submit" class="button" value="Reset">' );
	$html .= '</div>';
	echo $html;
}
function WPCW_users_showUserResetAbility ( ) { global $ wpcw_bulk_reset_index ; if ( ! isset ( $ wpcw_bulk_reset_index ) ) { $ wpcw_bulk_reset_index = 0 ; } else { return '' ; } $ html = '<div class="wpcw_user_bulk_progress_reset">' ; $ html .= WPCW_courses_getCourseResetDropdown ( 'wpcw_user_progress_reset_point_bulk' , false , __ ( 'No courses yet.' , 'wp-courseware' ) , __ ( 'Reset User Progress to beginning of...' , 'wp-courseware' ) , 'wpcw_user_progress_reset_point_bulk' , 'wpcw_user_progress_reset_select' ) ; $ html .= sprintf ( '<input id="wpcw_user_progress_reset_point_bulk_btn" name="wpcw_user_bulk_progress_reset" type="submit" class="button" value="Reset">' ) ; $ html .= '</div>' ; echo $ html ; }
Creates the dropdown form and button that allows the bulk-reset of users on their respective courses.
Creates the dropdown form and button that allows the bulk - reset of users on their respective courses .
// We don't handle multiple instances so don't render another.