adding a dialog for revealing the OPML url
This commit is contained in:
parent
b2a653c37f
commit
03b7473df4
|
@ -1494,11 +1494,19 @@
|
||||||
if (!get_pref($link, "_PREFS_PUBLISH_KEY")) {
|
if (!get_pref($link, "_PREFS_PUBLISH_KEY")) {
|
||||||
set_pref($link, "_PREFS_PUBLISH_KEY", generate_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 "<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')\">".
|
print "<button onclick=\"return displayDlg('pubUrl')\">".
|
||||||
__('Display URL')."</button> ";
|
__('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> ";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue