Skip to content

Instantly share code, notes, and snippets.

@huwrowlands
Created December 15, 2014 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huwrowlands/7390da51931e8e44688c to your computer and use it in GitHub Desktop.
Save huwrowlands/7390da51931e8e44688c to your computer and use it in GitHub Desktop.
module-audio-popup.php
<!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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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