public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/shortcodes.php
/**
 * Creates widget that shows off a training course, its modules, and its units.
 *
 *  e.g. [wpcourse course="2" showunits="true" /]
 *
 * @since 1.0.0
 *
 * @param array  $atts The attributes of the shortcode.
 * @param string $content The content of the shortcode.
 *
 * @return string
 */
Creates widget that shows off a training course, its modules, and its units.



@param array  $atts The attributes of the shortcode.
@param string $content The content of the shortcode.

@return string
Creates widget that shows off a training course its modules and its units . @param array $atts The attributes of the shortcode . @param string $content The content of the shortcode . @return string
function WPCW_shortcodes_showTrainingCourse( $atts, $content = '' ) {
	extract( shortcode_atts( array(
		'course' => 0,
	), $atts ) );
	return WPCW_courses_renderCourseList( $course, $atts );
}
function WPCW_shortcodes_showTrainingCourse ( $ atts , $ content = '' ) { extract ( shortcode_atts ( array ( 'course' => 0 , ) , $ atts ) ) ; return WPCW_courses_renderCourseList ( $ course , $ atts ) ; }
Creates widget that shows off a training course, its modules, and its units.
Creates widget that shows off a training course its modules and its units .
// Just pass arguments straight on