summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatt Katz <[email protected]>2010-04-09 19:21:34 -0400
committerMatt Katz <[email protected]>2010-04-09 19:21:34 -0400
commit03b7473df4fe70fc9d634ee32ad67735d5dfc752 (patch)
tree4c62ad2dbd7e790c5403d0aea6f87ff66fff2042 /modules
parentb2a653c37f882dab30ba0e063c157413ff23ac31 (diff)
adding a dialog for revealing the OPML url
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-feeds.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index fc72c01f2..7f46c3535 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -1494,11 +1494,19 @@
if (!get_pref($link, "_PREFS_PUBLISH_KEY")) {
set_pref($link, "_PREFS_PUBLISH_KEY", generate_publish_key());
}
+
+ if (!get_pref($link, "_PREFS_OPML_PUBLISH_KEY")){
+ set_pref($link, "_PREFS_OPML_PUBLISH_KEY", generate_publish_key());
print "<p>".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the URL specified below.')."</p>";
print "<button onclick=\"return displayDlg('pubUrl')\">".
__('Display URL')."</button> ";
+
+ print "<p>".__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.')."</p>";
+
+ print "<button onclick=\"return displayDlg('pubOPMLUrl')\">".
+ __('Display URL')."</button> ";
}