summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index f1a8d0f0c..543d2b008 100644
--- a/index.php
+++ b/index.php
@@ -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()">