A free, self-hostable aggregator…
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

<?php $this->partial ('nav_menu'); ?>
<div id="stream" class="global">
<?php
foreach ($this->cat_aside as $cat) {
$feeds = $cat->feeds ();
$catNotRead = $cat->nbNotRead ();
if (!empty ($feeds)) {
?>
<div class="category">
<div class="cat_header">
<a href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id (), 'output', 'normal'); ?>">
<?php echo $cat->name(); ?><?php echo $catNotRead > 0 ? ' (' . $catNotRead . ')' : ''; ?>
</a>
</div>
<ul class="feeds">
<?php foreach ($feeds as $feed) { ?>
<?php $not_read = $feed->nbNotRead (); ?>
<li class="item">
<img class="favicon" src="<?php echo $feed->favicon (); ?>" alt="" />
<a href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id (), 'output', 'normal'); ?>">
<?php echo $not_read > 0 ? '<b>' : ''; ?>
<?php echo $feed->name(); ?>
<?php echo $not_read > 0 ? ' (' . $not_read . ')' : ''; ?>
<?php echo $not_read > 0 ? '</b>' : ''; ?>
</a>
</li>
<?php } ?>
</ul>
</div>
<?php
}
}
?>
</div>