-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…sepress@14838 f53fe46e-8c02-459b-9fdd-93e75771b278
- Loading branch information
marko
committed
Jun 9, 2014
1 parent
cc44f7d
commit 9f8e82e
Showing
5 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
global $post; | ||
|
||
$course = new Course(get_the_ID()); | ||
$course_language = $course->details->course_language; | ||
?> | ||
|
||
<?php | ||
$course_thumbnail = $course->get_course_thumbnail(); | ||
if ($course_thumbnail) { | ||
?> | ||
<figure> | ||
<img src="<?php echo $course_thumbnail; ?>"> | ||
</figure> | ||
<?php | ||
} else { | ||
$extended_class = 'quick-course-info-extended'; | ||
} | ||
?> | ||
|
||
<div class="instructors-content"> | ||
<?php echo do_shortcode('[course_instructors list="true" link="true"]'); ?> | ||
</div> | ||
|
||
<div class="course-excerpt"> | ||
<?php echo $post->post_excerpt; ?> | ||
</div> | ||
|
||
<div class="quick-course-info <?php echo (isset($extended_class) ? $extended_class : ''); ?>"> | ||
<span class="course-time"><?php echo do_shortcode('[course_details field="course_start_date"]'); ?></span> | ||
<?php if (isset($course_language) && $course_language !== '') { ?> | ||
<span class="course-lang"><?php echo $course_language; ?></span> | ||
<?php } ?> | ||
<a class="go-to-course-button" href="<?php the_permalink(); ?>"><?php _e('Go to Course', 'coursepress'); ?></a> | ||
</div> |