Esempio n. 1
0
</a>
			<?php 
}
?>
		</h1>
	</header><!-- .entry-header -->

	<?php 
if (has_post_thumbnail()) {
    the_post_thumbnail('dusktodawn-featured-image', array('class' => 'featured-image'));
}
?>

	<div class="entry-content">
		<?php 
$audio = dusktodawn_audio_grabber(get_the_ID());
?>
		<?php 
if (!empty($audio)) {
    ?>
			<?php 
    $url = wp_get_attachment_url($audio->ID);
    ?>
			<?php 
    if (dusktodawn_has_shortcode('audio')) {
        ?>
				<?php 
        echo do_shortcode('[audio ' . esc_url($url) . ']');
        ?>
			<?php 
    } else {
?>
" rel="bookmark"><?php 
the_title();
?>
</a></h1>
	</header><!-- .entry-header -->

	<?php 
if (has_post_thumbnail()) {
    the_post_thumbnail('dusktodawn-featured-image', array('class' => 'featured-image'));
}
?>

	<div class="entry-content">
		<?php 
$audio_file = dusktodawn_audio_grabber($post->ID);
if (!empty($audio_file)) {
    ?>
			<div class="player">
				<audio controls autobuffer id="audio-player-<?php 
    echo $post->ID;
    ?>
" src="<?php 
    echo $audio_file;
    ?>
">
					<source src="<?php 
    echo $audio_file;
    ?>
" type="audio/mp3" />
				</audio>