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

27 lines
987 B
PHTML
Raw Normal View History

2014-07-23 15:52:50 +02:00
<?php
$c = Minz_Request::controllerName ();
$a = Minz_Request::actionName ();
$params = Minz_Request::params ();
$markReadUrl = Minz_Session::param ('markReadUrl');
Minz_Session::_param ('markReadUrl', false);
?>
<ul class="pagination">
<li class="item pager-next">
<?php if (!empty($this->nextId)) { ?>
<?php $params['next'] = $this->nextId; ?>
<a id="load_more" href="<?php echo Minz_Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Minz_Translate::t ('load_more'); ?></a>
<?php } elseif ($markReadUrl) { ?>
<a id="bigMarkAsRead" href="<?php echo $markReadUrl; ?>"<?php if ($this->conf->reading_confirm) { echo ' class="confirm"';} ?>>
<?php echo Minz_Translate::t ('nothing_to_load'); ?><br />
2014-09-21 12:12:35 +02:00
<span class="bigTick"></span><br />
2014-07-23 15:52:50 +02:00
<?php echo Minz_Translate::t ('mark_all_read'); ?>
</a>
<?php } else { ?>
<a id="bigMarkAsRead" href=".">
<?php echo Minz_Translate::t ('nothing_to_load'); ?><br />
</a>
<?php } ?>
</li>
</ul>