-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-archive.php
52 lines (52 loc) · 1.57 KB
/
content-archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
$e = \Podlove\get_episode();
?>
<tr class="archive-episode-row">
<?php if ($e and $e->number() != '') : ?>
<td class="archive-episode-icon">
<?php
$img = $e->image();
if ( !$img )
$img = \Podlove\get_podcast()->image();
echo $img->html( array("width" => 96, "alt" => " " ) )
?>
</td>
<td class="archive-episode-description">
<div class="episode-title">
<a href="<?php echo the_permalink() ?>"><?php echo the_title() ?></a>
</div>
<div class="episode-meta">
📅 <?php echo the_date() ?>
<?php echo punktoinfo_print_duration($e->duration()); ?>
</div>
<div class="episode-subtitle">
<?php echo $e->subtitle() ?>
</div>
</td>
<td>
<?php foreach ($e->contributors() as $c) : ?>
<?php if ($c->role() != "aŭtoro") : ?>
<div class="episode-contributor">
<div class="episode-contributor-avatars">
<?php printf('<img src="%1$s" title="%2$s" alt="">', $c->avatar()->url(), $c->name()) ?>
</div>
<div class="episode-contributor-names">
<?php printf('%1$s kiel %2$s', $c->name(), $c->role()) ?>
</div>
</div>
<?php endif ?>
<?php endforeach ?>
</td>
<?php elseif ($e) : ?>
<td class="archive-episode-icon"></td>
<td colspan="2" class="archive-episode-description">
<div class="episode-title">
<a href="<?php echo the_permalink() ?>"><?php echo the_title() ?></a>
</div>
<div class="episode-meta">
📅 <?php echo the_date() ?>
</div>
<div class="episode-excerpt"><?php echo the_content('',false,'') ?></div>
</td>
<?php endif ?>
</tr>