mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-13 06:51:20 -05:00
* Dynamic OPML draft #fix https://github.com/FreshRSS/FreshRSS/issues/4191 * Export dynamic OPML http://opml.org/spec2.opml#1629043127000 * Restart with simpler approach * Minor revert * Export dynamic OPML also for single feeds * Special category type for importing dynamic OPML * Parameter for excludeMutedFeeds * Details * More draft * i18n * Fix update * Draft manual import working * Working manual refresh * Draft automatic update * Working Web refresh + fixes * Import/export dynamic OPML settings * Annoying numerous lines in SQL logs * Fix minor JavaScript error * Fix auto adding new columns * Add require * Add missing 🗲 * Missing space * Disable adding new feeds to dynamic categories * Link from import * i18n typo * Improve theme icon function * Fix pink-dark
25 lines
736 B
PHTML
25 lines
736 B
PHTML
<?php
|
|
/** @var FreshRSS_View $this */
|
|
|
|
$categories = [];
|
|
foreach ($this->categories as $category) {
|
|
$categories[] = [
|
|
'url' => Minz_Url::display(array('c' => 'category', 'a' => 'refreshOpml', 'params' => array('id' => $category->id(), 'ajax' => '1')), 'php'),
|
|
'title' => $category->name(),
|
|
];
|
|
}
|
|
|
|
$feeds = array();
|
|
foreach ($this->feeds as $feed) {
|
|
$feeds[] = array(
|
|
'url' => Minz_Url::display(array('c' => 'feed', 'a' => 'actualize', 'params' => array('id' => $feed->id(), 'ajax' => '1')), 'php'),
|
|
'title' => $feed->name(),
|
|
);
|
|
}
|
|
echo json_encode(array(
|
|
'categories' => $categories,
|
|
'feeds' => $feeds,
|
|
'feedback_no_refresh' => _t('feedback.sub.feed.no_refresh'),
|
|
'feedback_actualize' => _t('feedback.sub.actualize'),
|
|
));
|