<?php /** * Blog single post audio format media * * @package Total WordPress theme * @subpackage Partials * @version 3.0.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Get audio html $audio = wpex_get_post_audio_html(); // Display audio if audio exists and the post isn't protected if ($audio && !post_password_required()) { ?> <div id="post-media" class="clr"> <div class="blog-post-audio clr"> <?php echo $audio; ?> </div><!-- .blog-post-audio --> </div><!-- #post-media -->
> <?php // Display post video if ($show_embeds && 'video' == $format && ($video = wpex_get_post_video_html())) { ?> <div class="related-post-video"> <?php echo $video; ?> </div><!-- .related-post-video --> <?php // Display post audio } elseif ($show_embeds && 'audio' == $format && ($audio = wpex_get_post_audio_html())) { ?> <div class="related-post-video"> <?php echo $audio; ?> </div><!-- .related-post-audio --> <?php // Display post thumbnail } elseif ($thumbnail) { // Overlay style $overlay = wpex_get_mod('blog_related_overlay'); ?>