mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
65 lines
1.4 KiB
PHP
65 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* The Template for displaying all single courses.
|
|
*
|
|
* Override this template by copying it to yourtheme/sensei/single-course.php
|
|
*
|
|
* @author Automattic
|
|
* @package Sensei
|
|
* @category Templates
|
|
* @version 1.9.0
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
get_sensei_header();
|
|
?>
|
|
|
|
<article <?php post_class( array( 'course', 'post' ) ); ?>>
|
|
|
|
<?php
|
|
|
|
/**
|
|
* Hook inside the single course post above the content
|
|
*
|
|
* @since 1.9.0
|
|
*
|
|
* @param integer $course_id
|
|
*
|
|
* @hooked Sensei()->frontend->sensei_course_start - 10
|
|
* @hooked Sensei_Course::the_title - 10
|
|
* @hooked Sensei()->course->course_image - 20
|
|
* @hooked Sensei_Course::the_course_enrolment_actions - 30
|
|
* @hooked Sensei()->message->send_message_link - 35
|
|
* @hooked Sensei_Course::the_course_video - 40
|
|
*/
|
|
do_action( 'sensei_single_course_content_inside_before', get_the_ID() );
|
|
|
|
?>
|
|
|
|
<section class="entry fix">
|
|
|
|
<?php
|
|
$page_object = get_page( get_the_ID() );
|
|
echo wp_kses_post( apply_filters( 'the_content', $page_object->post_content ) );
|
|
?>
|
|
</section>
|
|
|
|
<?php
|
|
|
|
/**
|
|
* Hook inside the single course post above the content
|
|
*
|
|
* @since 1.9.0
|
|
*
|
|
* @param integer $course_id
|
|
*/
|
|
do_action( 'sensei_single_course_content_inside_after', get_the_ID() );
|
|
|
|
?>
|
|
</article><!-- .post .single-course -->
|
|
|
|
<?php get_sensei_footer(); ?>
|