mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 23:23:34 +00:00
Extend OPML preferences pane, to provide more control of Export OPML
User is prompted for filename, and also whether to include settings.
Default filename is: TinyTinyRSS.opml
modules/pref-feeds.php
Prompt for output OPML filename (Default: TinyTinyRSS.opml )
opml.php
Modify to support passing in name=<filename>&settings=[0|1]
functions.js
Modify to support passing in name=<filename>&settings=[0|1]
This commit is contained in:
@@ -1440,16 +1440,21 @@
|
||||
name=\"upload_iframe\" onload=\"opmlImportComplete(this)\"
|
||||
style=\"width: 400px; height: 100px; display: none;\"></iframe>";
|
||||
|
||||
print "<form style='display : block' target=\"upload_iframe\"
|
||||
print "<form name=\"opml_form\" style='display : block' target=\"upload_iframe\"
|
||||
enctype=\"multipart/form-data\" method=\"POST\"
|
||||
action=\"backend.php\">
|
||||
<input id=\"opml_file\" name=\"opml_file\" type=\"file\">
|
||||
<input type=\"hidden\" name=\"op\" value=\"dlg\">
|
||||
<input type=\"hidden\" name=\"id\" value=\"importOpml\">
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"return opmlImport();\"
|
||||
type=\"submit\">".__('Import')."</button>
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"gotoExportOpml()\">".__('Export OPML')."</button>
|
||||
</form>";
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"return opmlImport();\" type=\"submit\">" .
|
||||
__('Import') . "</button>" .
|
||||
"<p>" . __('Export Name: ') .
|
||||
"<input type=\"text\" id=\"filename\" value=\"TinyTinyRSS.opml\" /> " .
|
||||
__('Include Settings? ') . "<input type=\"checkbox\" id=\"settings\" CHECKED />" .
|
||||
|
||||
"<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"gotoExportOpml(document.opml_form.filename.value, document.opml_form.settings.checked)\" >" .
|
||||
__('Export OPML') . "</button></p></form>";
|
||||
|
||||
print "<p>".__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user