|
|
@@ -17,15 +17,19 @@
|
|
|
);
|
|
|
?>
|
|
|
|
|
|
+<?php
|
|
|
+$hasAccess = FreshRSS_Auth::hasAccess();
|
|
|
+if ($url_mark_read && $hasAccess) { ?>
|
|
|
<form id="mark-read-pagination" method="post">
|
|
|
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
|
|
|
+<?php }?>
|
|
|
<ul class="pagination">
|
|
|
<li class="item pager-next">
|
|
|
<?php if (FreshRSS_Context::$next_id) { ?>
|
|
|
<a id="load_more" href="<?= Minz_Url::display($url_next) ?>">
|
|
|
<?= _t('gen.pagination.load_more') ?>
|
|
|
</a>
|
|
|
- <?php } elseif ($url_mark_read && FreshRSS_Auth::hasAccess()) { ?>
|
|
|
+ <?php } elseif ($url_mark_read && $hasAccess) { ?>
|
|
|
<button id="bigMarkAsRead"
|
|
|
class="as-link <?= FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : '' ?>"
|
|
|
form="mark-read-pagination"
|
|
|
@@ -42,4 +46,6 @@
|
|
|
<?php } ?>
|
|
|
</li>
|
|
|
</ul>
|
|
|
+<?php if ($url_mark_read && $hasAccess) { ?>
|
|
|
</form>
|
|
|
+<?php }?>
|