1<?php
2  $pcasthelper =& plugin_load("helper", "podcast");
3
4  $page = $entry->entry['page'];
5
6  if( $pcasthelper ) {
7    $p = $pcasthelper->get_info( $page );
8
9    if( !$p['nr'] ) {
10      $path = explode( ':', $page );
11      $p['nr'] = array_pop( $path ); }
12    $files = $p['files']; }
13
14?>
15<div class="blogtng_list"><?php
16    //show headline
17    echo "<h1 class=\"hspec\"><a href=\"";
18    $entry->tpl_link();
19    echo "\" class=\"postdate\">";
20    $entry->tpl_created("%Y-%m-%d");
21    echo "</a><a href=\"";
22    $entry->tpl_link();
23    echo "\"> // ".$entry->entry["title"]."</a></h1>";
24
25    $source = array( );
26    $links = array( );
27    foreach( $files as $ext => $f ) {
28      if( !$f['size'] ) continue;
29      $source[] = "<source src='".$f['url']."' />";
30      $links[]  = " <li><a href='".$f['url']."' />".$p['nr'].".$ext(".$f['hsize'].")</a></li>"; }
31
32    echo "<div class='podcastaudio'>";
33    if( count( $source )) {
34      echo "<audio controls>";
35      echo implode( "\n", $source );
36      echo "</audio>"; }
37    if( count( $links )) {
38      echo "<ul>";
39      echo implode( "\n", $links );
40      echo "</ul>";
41      echo "</div>"; }
42
43    //show entry
44    $entry->tpl_entry(//included
45                      true,
46                      //readmore (where to cut valid when using ~~READMORE~~)
47                      "syntax",
48                      //inc level
49                      false,
50                      //skip header
51                      true);
52?>
53    <div class="clearer"></div>
54    <div class="blogtng_footer">
55        <div class="level1">
56            <?php $entry->tpl_created("%Y-%m-%d"); ?>&#160;written&#160;by&#160;<?php $entry->tpl_author(); ?> |
57            <a href="<?php $entry->tpl_link(); ?>" class="wikilink1 blogtng_permalink" title="<?php echo hsc($entry->entry["title"]); ?>">Permanentlink</a> |
58            <?php
59            if ($entry->has_tags()){
60                echo "Tags:"; $entry->tpl_tags("");
61            }
62            ?>
63        </div>
64    </div>
65</div>
66