dozent_course_featured_media()

Course Feature thumbnail or intro video


Description

This function show you either course intro video or the course feature image. Intro Video will get priority to show first.

Example usage:

dozent_course_featured_media();

See also


Source

File: includes/template-functions.php

	function dozent_course_featured_media() {
		if ( ! is_dozent_course() ) {
			return;
		}

		if ( dozent_has_video() ) {
			dozent_video();
		} else {
		    echo '<div class="dozent-cover-wrap">';
			dozent_course_thumbnail();
			echo '</div>';
		}

	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.