1<dl class="bez_timeline">
2    <?php foreach ($tpl->get('timeline') as $date => $rows): ?>
3        <h2>
4            <?php if ($date == date('Y-m-d')): ?>
5                <?php echo $date ?>: <?php echo $tpl->getLang('today') ?>
6            <?php elseif ($date == date('Y-m-d', strtotime('yesterday'))): ?>
7                <?php echo $date ?>: <?php echo $tpl->getLang('yesterday') ?>
8            <?php else: ?>
9                <?php echo $date ?>
10            <?php endif ?>
11        </h2>
12        <?php foreach ($rows as $row): ?>
13            <dt class="<?php echo $row['type'] ?>">
14                <?php $pre = '<span class="time">' . $row['time'] . '</span> ' ?>
15                <?php $post = sprintf($tpl->getLang('timeline ' . $row['type']),
16                                      $tpl->user_name($row['author'])) ?>
17                <?php $post = ' <span class="author">' . $post . '</span>' ?>
18                <?php $row['entity']->html_link($pre, $post) ?>
19            </dt>
20            <dd>
21                <?php echo $row['entity']->content_html ?>
22            </dd>
23        <?php endforeach ?>
24    <?php endforeach ?>
25</dl>