PHP Classes

File: elements/podcast_player.php

Recommend this page to a friend!
  Classes of Victor Andeloci   One WordPress Game Theme   elements/podcast_player.php   Download  
File: elements/podcast_player.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: One WordPress Game Theme
WordPress theme for a gaming blog and podcast
Author: By
Last change:
Date: 1 year ago
Size: 651 bytes
 

Contents

Class file image Download
<?php
  $mp3Url
= !empty(get_post_meta((!empty($args['post_id']) ? $args['post_id'] : get_the_ID()), 'anchor_mp3_url', true))
              ?
trim(get_post_meta((!empty($args['post_id']) ? $args['post_id'] : get_the_ID()), 'anchor_mp3_url', true))
              :
trim(get_post_meta((!empty($args['post_id']) ? $args['post_id'] : get_the_ID()), 'episode_mp3_url', true)); // old migration url or feed monitor plugin url
 
if (!empty($mp3Url)) :
?>
<audio id="player" controls preload="none" <?= (!empty($args['hide_controls']) && $args['hide_controls']) ? 'hide-controls="true"' : '' ?>>
    <source src="<?= $mp3Url ?>">
  </audio>
<?php endif; ?>