|
|
@@ -1,28 +1,32 @@
|
|
|
<?php
|
|
|
- $c = Minz_Request::controllerName();
|
|
|
- $a = Minz_Request::actionName();
|
|
|
- $params = Minz_Request::params();
|
|
|
- $markReadUrl = Minz_Session::param('markReadUrl');
|
|
|
- Minz_Session::_param('markReadUrl', false);
|
|
|
+ $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,
|
|
|
+ )
|
|
|
+ );
|
|
|
?>
|
|
|
|
|
|
<form id="mark-read-pagination" method="post" style="display: none"></form>
|
|
|
|
|
|
<ul class="pagination">
|
|
|
<li class="item pager-next">
|
|
|
- <?php if (!empty($this->nextId)) { ?>
|
|
|
- <?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 if (FreshRSS_Context::$next_id) { ?>
|
|
|
+ <a id="load_more" href="<?php echo Minz_Url::display($url_next); ?>">
|
|
|
<?php echo _t('load_more'); ?>
|
|
|
</a>
|
|
|
- <?php } elseif ($markReadUrl) { ?>
|
|
|
+ <?php } elseif ($url_mark_read) { ?>
|
|
|
<button id="bigMarkAsRead"
|
|
|
class="as-link <?php echo FreshRSS_Context::$conf->reading_confirm ? 'confirm' : ''; ?>"
|
|
|
form="mark-read-pagination"
|
|
|
- formaction="<?php echo $markReadUrl; ?>"
|
|
|
+ formaction="<?php echo Minz_Url::display($url_mark_read); ?>"
|
|
|
type="submit">
|
|
|
<?php echo _t('nothing_to_load'); ?><br />
|
|
|
<span class="bigTick">✓</span><br />
|