public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Renders the custom feedback messages on the front of the website.
		 */
Renders the custom feedback messages on the front of the website.
Renders the custom feedback messages on the front of the website .
public function render_customFeedbackMessage_showResults() {
			$html = false;
			$resultsList = $this->fetch_customFeedbackMessage_calculateMessages();
			if ( ! empty( $resultsList ) ) {
				$html .= sprintf(
					'<div class="wpcw_fe_progress_box_wrap"><div class="wpcw_fe_progress_box wpcw_fe_custom_feedback_wrap wpcw_fe_custom_feedback_count_%d">', count( $resultsList ) 
				);
				foreach ( $resultsList as $singleMessage ) {
					$html .= '<div class="wpcw_fe_custom_feedback_item">' . wpautop( $singleMessage ) . '</div>';
				}
				$html .= '</div></div>';
			}
			return $html;
		}
public function render_customFeedbackMessage_showResults ( ) { $ html = false ; $ resultsList = $ this -> fetch_customFeedbackMessage_calculateMessages ( ) ; if ( ! empty ( $ resultsList ) ) { $ html .= sprintf ( '<div class="wpcw_fe_progress_box_wrap"><div class="wpcw_fe_progress_box wpcw_fe_custom_feedback_wrap wpcw_fe_custom_feedback_count_%d">' , count ( $ resultsList ) ) ; foreach ( $ resultsList as $ singleMessage ) { $ html .= '<div class="wpcw_fe_custom_feedback_item">' . wpautop ( $ singleMessage ) . '</div>' ; } $ html .= '</div></div>' ; } return $ html ; }
Renders the custom feedback messages on the front of the website.
Renders the custom feedback messages on the front of the website .
// Start the wrapper for the results. // Adding count to allow for special styles based on how many feedback messages there are. // Render each message with a wrapper around it. // Close wrapper