Sindbad~EG File Manager
<?php
/**
* The default template for displaying content video
* @package inmedical
*/
$authordata = Inwave_Helper::getAuthorData();
$inwave_theme_option = Inwave_Helper::getConfig();
$show_post_infor = (isset($inwave_theme_option['show_post_author']) && $inwave_theme_option['show_post_author'])
|| (isset($inwave_theme_option['blog_category_title_listing']) && $inwave_theme_option['blog_category_title_listing'])
|| (isset($inwave_theme_option['show_post_comment']) && $inwave_theme_option['show_post_comment']);
?>
<article id="post-<?php echo esc_attr(get_the_ID()); ?>" <?php post_class(); ?>>
<div class="post-item fit-video">
<div class="post-content">
<div class="featured-image">
<?php
$post = get_post();
$content = do_shortcode( apply_filters( 'the_content', $post->post_content ) );
$video = get_media_embedded_in_content($content);
if(count($video)){
echo get_media_embedded_in_content($content)[0];
}else{
the_post_thumbnail();
}
?>
</div>
<div class="post-content-detail">
<div class="post-content-head">
<div class="post-head-detail">
<?php if(isset($inwave_theme_option['show_post_date']) && $inwave_theme_option['show_post_date']){ ?>
<div class="post-info-date">
<span class="post-info-day"><?php echo get_the_date("d") ?></span>
<span class="post-info-month"><?php echo get_the_date("M") ?></span>
</div>
<?php } ?>
<div class="post-main-info">
<h3 class="post-title">
<a href="<?php the_permalink(); ?>"><?php the_title('', ''); ?></a>
</h3>
<?php if ($show_post_infor){ ?>
<div class="post-info">
<?php if (is_sticky()){echo '<span class="feature-post">'.esc_html__('Sticky Post', 'inmedical').'</span>';} ?>
<?php if(isset($inwave_theme_option['blog_category_title_listing']) && $inwave_theme_option['blog_category_title_listing']): ?>
<div class="post-info-category">
<?php echo esc_html__('Post in', 'inmedical'); ?> <?php the_category(', ') ?>
</div>
<?php endif; ?>
<?php if(isset($inwave_theme_option['show_post_author']) && $inwave_theme_option['show_post_author']){ ?>
<div class="post-info-author">
<?php echo esc_html__('by', 'inmedical'); ?> <span><?php echo get_the_author_link(); ?></span>
</div>
<?php } ?>
<?php
if(isset($inwave_theme_option['show_post_comment']) && $inwave_theme_option['show_post_comment']){
if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<div class="post-info-comment">';
comments_popup_link(esc_html__('0 comment', 'inmedical'), esc_html__('1 Comment', 'inmedical'), esc_html__('% Comments', 'inmedical'));
echo '</div>';
}
}
?>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="post-content-desc">
<div class="post-text">
<?php /* translators: %s: Name of current post */
the_excerpt();
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'inmedical' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
?>
</div>
<div class="clearfix"></div>
<?php if (isset($inwave_theme_option['show_post_tag']) && $inwave_theme_option['show_post_tag']): ?>
<?php inwave_blog_post_tag(); ?>
<?php endif ?>
<div class="post-content-footer">
<?php echo '<a class="more-link" href="'.esc_url(get_the_permalink()).'">'.esc_html__('Read more', 'inmedical').'</a>'; ?>
<?php if($inwave_theme_option['social_sharing_box_category']): ?>
<div class="post-share-buttons-cat">
<?php
inwave_social_sharing_category_listing(get_permalink(), Inwave_Helper::substrword(get_the_excerpt(), 10), get_the_title());
?>
</div>
<?php endif; ?>
</div>
<?php edit_post_link( esc_html__( 'Edit', 'inmedical' ), '<span class="edit-link">', '</span>' );?>
</div>
</div>
</div>
</div>
</article><!-- #post-## -->
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists