From b3bc638a9fa87cdaf61bff446f8aa0534d2b49ee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 12:26:49 +0300 Subject: refactor OPML export/import code to be less horrible --- classes/pref/feeds.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'classes/pref') diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 961a09c28..ff91120ec 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1270,11 +1270,11 @@ class Pref_Feeds extends Handler_Protected { print "
"; - print "

" . __("Using OPML you can export and import your feeds, filters, labels and Tiny Tiny RSS settings.") . - __("Only main settings profile can be migrated using OPML.") . "

"; + print_notice(__("Using OPML you can export and import your feeds, filters, labels and Tiny Tiny RSS settings.") . + __("Only main settings profile can be migrated using OPML.")); print ""; print "
- "; + "; - print "
"; + print "
"; + + print "

"; - $opml_export_filename = "TinyTinyRSS_".date("Y-m-d").".opml"; + print "

"; - print "

" . __('Filename:') . - "  " . - __('Include settings') . ""; + print ""; - print "

"; + print ""; + + print ""; print "
"; - print "

" . __('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.') . "

"; + print_notice(__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.')); print_warning("Published OPML does not include your Tiny Tiny RSS settings, feeds that require authentication or feeds hidden from Popular feeds."); -- cgit v1.2.3