mirror of
https://github.com/ivuorinen/rss-audio-player.git
synced 2026-02-08 12:48:52 +00:00
RSSAudioPlayer 1.0
Quick system to play your (currently my) favourite podcast feeds and stuff.
This commit is contained in:
48
templates/show.php
Normal file
48
templates/show.php
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="panel">
|
||||
|
||||
<h2><a title="<?php
|
||||
echo $data['feed']->get_link();
|
||||
?>" href="<?php
|
||||
echo $data['feed']->get_link();
|
||||
?>" target="_blank"><?php
|
||||
echo $data['feed']->get_title();
|
||||
?></a></h2>
|
||||
<header>
|
||||
<p><?php echo $data['feed']->get_description(); ?></p>
|
||||
</header>
|
||||
|
||||
<?php
|
||||
$items = $data['feed']->get_items();
|
||||
|
||||
if (! empty($items)) {
|
||||
|
||||
echo '<audio></audio>'."\n";
|
||||
echo '<ol>' . "\n";
|
||||
|
||||
foreach ($items as $item) {
|
||||
|
||||
if (($enclosure = $item->get_enclosure())) {
|
||||
$link = $enclosure->get_link();
|
||||
} else {
|
||||
$link = null;
|
||||
}
|
||||
|
||||
echo "\t\t\t\t<li>"
|
||||
. '<a href="'. $item->get_permalink() .'" '
|
||||
. ' data-src="'. $link .'"'
|
||||
. '>'
|
||||
. $item->get_title()
|
||||
. '</a>'
|
||||
."</li>\n";
|
||||
}
|
||||
|
||||
echo '</ol>' . "\n";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user