| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/learnpress/templates/single-course/ |
Upload File : |
<?php
/**
* Template for displaying primary course meta data such as: Instructor, Categories, Reviews (addons)...
*
* @author ThimPress
* @package LearnPress/Templates
* @version 4.0.0
*/
defined( 'ABSPATH' ) or die;
$has_meta_left = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-primary-left' );
$has_meta_right = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-primary-right' );
// Do not echo anything if there is no content hooked
if ( ! $has_meta_left && ! $has_meta_right ) {
return;
}
?>
<div class="course-meta course-meta-primary<?php echo esc_attr( $has_meta_right && $has_meta_left ? ' two-columns' : '' ); ?>">
<?php if ( $has_meta_left ) { ?>
<div class="course-meta__pull-left">
<?php
/**
* LP Hook
*/
do_action( 'learn-press/course-meta-primary-left' );
?>
</div>
<?php } ?>
<?php if ( $has_meta_right ) { ?>
<div class="course-meta__pull-right">
<?php
/**
* LP Hook
*/
do_action( 'learn-press/course-meta-primary-right' );
?>
</div>
<?php } ?>
</div>