Created
October 22, 2018 10:37
-
-
Save luisciphere/f66e6dd787f512516c7a403282955880 to your computer and use it in GitHub Desktop.
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
<!-- Podcast links --> | |
<?php | |
$apple_podcast = get_field('apple_podcast'); | |
$google_podcast = get_field('google_podcast'); | |
$spotify = get_field('spotify'); | |
$acast = get_field('acast'); | |
$overcast = get_field('overcast'); | |
if ( $apple_podcast == true || $google_podcast == true || $spotify == true || $acast == true || $overcast == true) { ?> | |
<ul class="podcast-links"> | |
<?php if ( $apple_podcast == true ) { ?> | |
<li> | |
<a href="<?php echo $apple_podcast; ?>" target="_blank"> | |
<img src="<?php echo get_template_directory_uri(); ?>/images/apple_podcast.png" alt="Apple Podcast"> Apple Podcaster | |
</a> | |
</li> | |
<?php } ?> | |
<?php if ( $google_podcast == true ) { ?> | |
<li> | |
<a href="<?php echo $google_podcast; ?>" target="_blank"> | |
<img src="<?php echo get_template_directory_uri(); ?>/images/google_podcast.png" alt="Google Podcasts"> Google Podcasts | |
</a> | |
</li> | |
<?php } ?> | |
<?php if ( $spotify == true ) { ?> | |
<li> | |
<a href="<?php echo $spotify; ?>" target="_blank"> | |
<img src="<?php echo get_template_directory_uri(); ?>/images/spotify.png" alt="Spotify"> Spotify | |
</a> | |
</li> | |
<?php } ?> | |
<?php if ( $acast == true ) { ?> | |
<li> | |
<a href="<?php echo $acast; ?>" target="_blank"> | |
<img src="<?php echo get_template_directory_uri(); ?>/images/acast.png" alt="Acast"> Acast | |
</a> | |
</li> | |
<?php } ?> | |
<?php if ( $overcast == true ) { ?> | |
<li> | |
<a href="<?php echo $overcast; ?>" target="_blank"> | |
<img src="<?php echo get_template_directory_uri(); ?>/images/overcast.png" alt="Overcast"> Overcast | |
</a> | |
</li> | |
<?php } ?> | |
</ul> | |
<? } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment