mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:25:55 +00:00
pluginhost: allow overriding default sort modes via HOOK_HEADLINES_CUSTOM_SORT_MAP etc
This commit is contained in:
@@ -198,6 +198,14 @@
|
||||
<option value="feed_dates"><?php echo __('Newest first') ?></option>
|
||||
<option value="date_reverse"><?php echo __('Oldest first') ?></option>
|
||||
<option value="title"><?php echo __('Title') ?></option>
|
||||
|
||||
<?php foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_HEADLINES_CUSTOM_SORT_MAP) as $p) {
|
||||
$sort_map = $p->hook_headlines_custom_sort_map();
|
||||
|
||||
foreach ($sort_map as $sort_value => $sort_title) {
|
||||
print "<option value=\"" . htmlspecialchars($sort_value) . "\">$sort_title</option>";
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
|
||||
<div dojoType="fox.form.ComboButton" onclick="Feeds.catchupCurrent()">
|
||||
|
||||
Reference in New Issue
Block a user