mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 23:51:57 +00:00
added DEFAULT_ARTICLE_LIMIT functionality, patch from adjuster
This commit is contained in:
26
tt-rss.php
26
tt-rss.php
@@ -103,10 +103,28 @@
|
||||
Limit:
|
||||
|
||||
<select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')">
|
||||
<option>15</option>
|
||||
<option selected>30</option>
|
||||
<option>60</option>
|
||||
<option>All</option>
|
||||
|
||||
<?
|
||||
$limits = array(15 => 15, 30 => 30, 60 => 60);
|
||||
|
||||
if (DEFAULT_ARTILE_LIMIT >= 0) {
|
||||
$limits[DEFAULT_ARTICLE_LIMIT] = DEFAULT_ARTICLE_LIMIT;
|
||||
}
|
||||
|
||||
asort($limits);
|
||||
|
||||
array_push($limits, 0);
|
||||
|
||||
foreach ($limits as $key) {
|
||||
print "<option";
|
||||
if ($key == DEFAULT_ARTICLE_LIMIT) { print " selected"; }
|
||||
print ">";
|
||||
|
||||
if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
|
||||
|
||||
print "</option>";
|
||||
} ?>
|
||||
|
||||
</select>
|
||||
|
||||
Feed: <input class="button" type="submit"
|
||||
|
||||
Reference in New Issue
Block a user