forked from LearnPress/learnpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-course.php
64 lines (54 loc) · 1.19 KB
/
content-course.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Template for displaying course content within the loop.
*
* This template can be overridden by copying it to yourtheme/learnpress/content-course.php
*
* @author ThimPress
* @package LearnPress/Templates
* @version 4.0.0
*/
/**
* Prevent loading this file directly
*/
defined( 'ABSPATH' ) || exit();
?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="course-item">
<?php
/**
* LP Hook
*
* @since 3.0.0
*
* @called loop/course/thumbnail.php
* @echo DIV tag
*/
do_action( 'learn-press/before-courses-loop-item' );
?>
<a href="<?php the_permalink(); ?>" class="course-permalink">
<?php
/**
* @since 3.0.0
*
* @called loop/course/title.php
*/
do_action( 'learn-press/courses-loop-item-title' );
?>
</a>
<?php
/**
* LP Hook
*
* @since 3.0.0
*
* @see LP_Template_Course::courses_loop_item_meta()
* @see LP_Template_Course::courses_loop_item_info_begin()
* @see LP_Template_Course::clearfix()
* @see LP_Template_Course::courses_loop_item_price()
* @see LP_Template_Course::courses_loop_item_info_end()
*/
do_action( 'learn-press/after-courses-loop-item' );
?>
</div>
</li>