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/dlg.php | 2 +- classes/opml.php | 7 ++----- classes/pref/feeds.php | 33 +++++++++++++++++++-------------- 3 files changed, 22 insertions(+), 20 deletions(-) (limited to 'classes') diff --git a/classes/dlg.php b/classes/dlg.php index 32c41ee34..6617dfe07 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -49,7 +49,7 @@ class Dlg extends Handler_Protected { print "
"; - 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-54-g00ecf