1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/sources/app/views/javascript/nbUnreadsPerFeed.phtml
2014-07-23 15:52:50 +02:00

8 lines
176 B
PHTML
Executable file

<?php
$result = array();
foreach ($this->categories as $cat) {
foreach ($cat->feeds() as $feed) {
$result[$feed->id()] = $feed->nbNotRead();
}
}
echo json_encode($result);