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

38 lines
1.1 KiB
PHTML
Raw Normal View History

2014-07-23 15:52:50 +02:00
<?php
2014-09-27 10:10:43 +02:00
$c = Minz_Request::controllerName();
$a = Minz_Request::actionName();
$params = Minz_Request::params();
$markReadUrl = Minz_Session::param('markReadUrl');
Minz_Session::_param('markReadUrl', false);
2014-07-23 15:52:50 +02:00
?>
2014-09-27 10:10:43 +02:00
<form id="mark-read-pagination" method="post" style="display: none"></form>
2014-07-23 15:52:50 +02:00
<ul class="pagination">
<li class="item pager-next">
<?php if (!empty($this->nextId)) { ?>
2014-09-27 10:10:43 +02:00
<?php
$params['next'] = $this->nextId;
$params['ajax'] = 1;
?>
<a id="load_more" href="<?php echo Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)); ?>">
<?php echo _t('load_more'); ?>
</a>
2014-07-23 15:52:50 +02:00
<?php } elseif ($markReadUrl) { ?>
2014-09-27 10:10:43 +02:00
<button id="bigMarkAsRead"
class="as-link <?php echo $this->conf->reading_confirm ? 'confirm' : ''; ?>"
form="mark-read-pagination"
formaction="<?php echo $markReadUrl; ?>"
type="submit">
<?php echo _t('nothing_to_load'); ?><br />
<span class="bigTick"></span><br />
<?php echo _t('mark_all_read'); ?>
</button>
2014-07-23 15:52:50 +02:00
<?php } else { ?>
2014-09-27 10:10:43 +02:00
<a id="bigMarkAsRead" href=".">
<?php echo _t('nothing_to_load'); ?><br />
</a>
2014-07-23 15:52:50 +02:00
<?php } ?>
</li>
</ul>