a4d8abb631
Use CSS3 Animation for the "loading icon" blinking and move the definition of the loading icon to CSS as well. CSS3 Animations are supported by IE10, Firefox and using the -webkit prefix by Chrome and Safari. I've dropped the usage of element.classList in favour of supporting refreshing/ article downloading in IE9 (again). The classList stuff isn't necessarily needed, as the elements in question only get one or no class assigned. I've dropped no longer supported css options like: the appearance option isn't supported by any browser, the -webkit-appearance doesn't change anything visible. -webkit-font-smoothing support was dropped in chrome 22 and font-smoothing isn't specified anywhere.
73 lines
3.0 KiB
PHP
73 lines
3.0 KiB
PHP
<div class="page-header">
|
|
<h2><?= t('Subscriptions') ?></h2>
|
|
<ul>
|
|
<li><a href="?action=add"><?= t('add') ?></a></li>
|
|
<li><a href="?action=import"><?= t('import') ?></a></li>
|
|
<li><a href="?action=export"><?= t('export') ?></a></li>
|
|
<li><a href="?action=refresh-all" data-action="refresh-all"><?= t('refresh all') ?></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<?php if (empty($feeds)): ?>
|
|
|
|
<p class="alert alert-info"><?= t('No subscription') ?></p>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php if ($nothing_to_read): ?>
|
|
<p class="alert"><?= tne('Nothing to read, do you want to <a href="?action=refresh-all" data-action="refresh-all">update your subscriptions?</a>') ?></p>
|
|
<?php endif ?>
|
|
|
|
<section class="items">
|
|
<?php foreach ($feeds as $feed): ?>
|
|
<article>
|
|
<h2 <?= (! $feed['enabled']) ? 'class="feed-disabled"' : '' ?>>
|
|
<?php if (! $feed['enabled']): ?>
|
|
<span title="<?= t('Subscription disabled') ?>">✖</a>
|
|
<?php endif ?>
|
|
|
|
<?= Helper\favicon($favicons, $feed['id']) ?>
|
|
|
|
|
|
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>" title="<?= t('Show only this subscription') ?>"><?= Helper\escape($feed['title']) ?></a>
|
|
<span id="items-count-<?= $feed['id'] ?>"><?= $feed['items_unread'] .'/' . $feed['items_total'] ?></span>
|
|
|
|
<?php if ($feed['enabled']): ?>
|
|
|
|
<br/>
|
|
|
|
<?php if ($feed['last_checked']): ?>
|
|
<time class="feed-last-checked" id="last-checked-feed-<?= $feed['id'] ?>" data-after-update="<?= t('updated just now') ?>">
|
|
<?= t('checked at').' '.dt('%e %B %Y %k:%M', $feed['last_checked']) ?>
|
|
</time>
|
|
<?php else: ?>
|
|
<span class="feed-last-checked" id="last-checked-feed-<?= $feed['id'] ?>" data-after-update="<?= t('updated just now') ?>">
|
|
<?= t('never updated after creation') ?>
|
|
</span>
|
|
<?php endif ?>
|
|
|
|
<?php if ($feed['parsing_error']): ?>
|
|
<span class="feed-parsing-error"><?= t('(error occurred during the last check)') ?></span>
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
|
</h2>
|
|
<ul class="item-menu">
|
|
<li>
|
|
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\get_host_from_url($feed['site_url']) ?></a>
|
|
</li>
|
|
|
|
<?php if ($feed['enabled']): ?>
|
|
<li>
|
|
<a href="?action=refresh-feed&feed_id=<?= $feed['id'] ?>" data-feed-id="<?= $feed['id'] ?>" data-action="refresh-feed"><?= t('refresh') ?></a>
|
|
</li>
|
|
<?php endif ?>
|
|
|
|
<li><a href="?action=edit-feed&feed_id=<?= $feed['id'] ?>"><?= t('edit') ?></a></li>
|
|
</ul>
|
|
</article>
|
|
<?php endforeach ?>
|
|
</section>
|
|
|
|
<?php endif ?>
|