public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/pages/page-quiz-modify.php
/**
 * Creates a simple spinner line with delete/tag selection.
 *
 * @since 1.0.0
 *
 * @param integer $defaultCount The default count on the spinner.
 */
Creates a simple spinner line with delete/tag selection.

@param integer $defaultCount The default count on the spinner.
Creates a simple spinner line with delete / tag selection . @param integer $defaultCount The default count on the spinner .
function WPCW_showPage_thickbox_randomQuestion_tagSelectionLine( $defaultCount = 10, $isFirst = false ) {
	printf( '<div class="wpcw_tb_option_wrap_question_tags_row">' );
	printf( '<label>%s&nbsp;&nbsp;</label>', __( 'Select  ', 'wp-courseware' ) );
	printf( '<input type="text" class="wpcw_spinner" value="%d" />', $defaultCount );
	printf( '<label>&nbsp;&nbsp;%s&nbsp;&nbsp;</label>', __( 'questions from', 'wp-courseware' ) );
	echo WPCW_questions_tags_getTagDropdown( __( '--- Select Tag ---', 'wp-courseware' ), 'tag_selection', false, 'wpcw_tb_option_tag_select', true );
	printf( '<a href="#" class="wpcw_delete_icon" rel="%s" %s>%s</a>',
		__( 'Are you sure you wish to delete this selection?', 'wp-courseware' ),
		( $isFirst ? 'style="display: none;"' : false ), 
		__( 'Delete', 'wp-courseware' )
	);
	printf( '<div class="wpcw_missing_tag">%s</div>',
		__( 'Please select a tag', 'wp-courseware' )
	);
	printf( '</div>' );
}
function WPCW_showPage_thickbox_randomQuestion_tagSelectionLine ( $ defaultCount = 10 , $ isFirst = false ) { printf ( '<div class="wpcw_tb_option_wrap_question_tags_row">' ) ; printf ( '<label>%s&nbsp;&nbsp;</label>' , __ ( 'Select  ' , 'wp-courseware' ) ) ; printf ( '<input type="text" class="wpcw_spinner" value="%d" />' , $ defaultCount ) ; printf ( '<label>&nbsp;&nbsp;%s&nbsp;&nbsp;</label>' , __ ( 'questions from' , 'wp-courseware' ) ) ; echo WPCW_questions_tags_getTagDropdown ( __ ( '--- Select Tag ---' , 'wp-courseware' ) , 'tag_selection' , false , 'wpcw_tb_option_tag_select' , true ) ; printf ( '<a href="#" class="wpcw_delete_icon" rel="%s" %s>%s</a>' , __ ( 'Are you sure you wish to delete this selection?' , 'wp-courseware' ) , ( $ isFirst ? 'style="display: none;"' : false ) , __ ( 'Delete' , 'wp-courseware' ) ) ; printf ( '<div class="wpcw_missing_tag">%s</div>' , __ ( 'Please select a tag' , 'wp-courseware' ) ) ; printf ( '</div>' ) ; }
Creates a simple spinner line with delete/tag selection.
Creates a simple spinner line with delete / tag selection .
// Label prefix // Input box // Label suffix // The tag dropdown // The deletion link. // Hide deletion link if this is the first item // Marker to show that a tag needs selection.