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/helpers/pagination.phtml

42 lines
1.3 KiB
PHTML
Raw Normal View History

2014-07-23 15:52:50 +02:00
<?php
2015-02-08 18:55:48 +01:00
$url_next = Minz_Request::currentRequest();
$url_next['params']['next'] = FreshRSS_Context::$next_id;
$url_next['params']['ajax'] = 1;
$url_mark_read = array(
'c' => 'entry',
'a' => 'read',
'params' => array(
'get' => FreshRSS_Context::currentGet(),
'nextGet' => FreshRSS_Context::$next_get,
'idMax' => FreshRSS_Context::$id_max,
)
);
2014-07-23 15:52:50 +02:00
?>
2016-07-24 11:59:17 +02:00
<form id="mark-read-pagination" method="post" aria-hidden="true"></form>
2014-09-27 10:10:43 +02:00
2014-07-23 15:52:50 +02:00
<ul class="pagination">
<li class="item pager-next">
2015-02-08 18:55:48 +01:00
<?php if (FreshRSS_Context::$next_id) { ?>
<a id="load_more" href="<?php echo Minz_Url::display($url_next); ?>">
<?php echo _t('gen.pagination.load_more'); ?>
2014-09-27 10:10:43 +02:00
</a>
2015-02-08 18:55:48 +01:00
<?php } elseif ($url_mark_read) { ?>
2014-09-27 10:10:43 +02:00
<button id="bigMarkAsRead"
2015-02-08 18:55:48 +01:00
class="as-link <?php echo FreshRSS_Context::$user_conf->reading_confirm ? 'confirm' : ''; ?>"
2014-09-27 10:10:43 +02:00
form="mark-read-pagination"
2015-02-08 18:55:48 +01:00
formaction="<?php echo Minz_Url::display($url_mark_read); ?>"
2014-09-27 10:10:43 +02:00
type="submit">
2015-02-08 18:55:48 +01:00
<?php echo _t('gen.pagination.nothing_to_load'); ?><br />
2014-09-27 10:10:43 +02:00
<span class="bigTick"></span><br />
2015-02-08 18:55:48 +01:00
<?php echo _t('gen.pagination.mark_all_read'); ?>
2014-09-27 10:10:43 +02:00
</button>
2014-07-23 15:52:50 +02:00
<?php } else { ?>
2014-09-27 10:10:43 +02:00
<a id="bigMarkAsRead" href=".">
2015-02-08 18:55:48 +01:00
<?php echo _t('gen.pagination.nothing_to_load'); ?><br />
2014-09-27 10:10:43 +02:00
</a>
2014-07-23 15:52:50 +02:00
<?php } ?>
</li>
</ul>