-
-
Save huwrowlands/7390da51931e8e44688c to your computer and use it in GitHub Desktop.
module-audio-popup.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-GB"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name='robots' content='noindex,nofollow' /> | |
<title>Trickstar FM: Audio Stream</title> | |
</head> | |
<body> | |
<audio controls=""> | |
<source src="<?php the_field('live_stream_link', 'option'); ?>" type="audio/mp3"> | |
<span class="tools-alert tools-alert-red">Your browser does not support the default audio element. Choose an icon to <br>listen with winamp, itunes, windows media player, realplayer or quicktime</span> | |
</audio> | |
<div class="tools-alert"> | |
<p>Alternative Listening Formats:</p> | |
<ul class="list-flat group"> | |
<?php if( get_field('winamp-itunes_link', 'option') ): ?> | |
<li> | |
<a href="<?php the_field('winamp-itunes_link', 'option') ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/winamp.png" border="0" alt="Winamp, iTunes" title="Winamp, iTunes"> | |
<span> winamp and itunes</span> | |
</a> | |
</li> | |
<?php endif; ?> | |
<?php if( get_field('windows_media_player_link', 'option') ): ?> | |
<li> | |
<a href="<?php the_field('windows_media_player_link', 'option') ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/windows-media-player.png" border="0" alt="Windows Media Player" title="Windows Media Player"> | |
<span> windows media player</span> | |
</a> | |
</li> | |
<?php endif; ?> | |
<?php if( get_field('real_player_link', 'option') ): ?> | |
<li> | |
<a href="<?php the_field('real_player_link', 'option') ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/realplayer.png" border="0" alt="Real Player" title="Real Player"> | |
<span> real player</span> | |
</a> | |
</li> | |
<?php endif; ?> | |
<?php if( get_field('quicktime_link', 'option') ): ?> | |
<li> | |
<a href="<?php the_field('quicktime_link', 'option') ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/quicktime.png" border="0" alt="QuickTime" title="QuickTime"> | |
<span> quicktime</span> | |
</a> | |
</li> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<script> | |
jQuery( function() { jQuery( 'audio' ).audioPlayer(); } ); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment