]> git.wh0rd.org - tt-rss.git/commitdiff
Added a new dialog section yes this is all copypasta
authorMatt Katz <mattkatz@ubuntu.ubuntu-domain>
Fri, 9 Apr 2010 23:56:44 +0000 (19:56 -0400)
committerMatt Katz <mattkatz@ubuntu.ubuntu-domain>
Fri, 9 Apr 2010 23:56:44 +0000 (19:56 -0400)
modules/popup-dialog.php

index 81a795a0185b30c97041149856d3f6f2f4836d52..a80d612876e112c0e31b68d63393dc6f0aa97e2b 100644 (file)
                        return;
                }
 
+               if ($id == "pubOPMLUrl") {
+
+                       print "<div id=\"infoBoxTitle\">".__('Public OPML URL')."</div>";
+                       print "<div class=\"infoBoxContents\">";
+       
+                       $url_path = opml_publish_url($link);
+
+                       print __("Your Public OPML URL is:");
+
+                       print "<div class=\"tagCloudContainer\">";
+                       print "<a id='pub_opml_url' href='$url_path' target='_blank'>$url_path</a>";
+                       print "</div>";
+
+                       print "<div align='center'>";
+
+                       print "<button onclick=\"return opmlRegenKey()\">".
+                               __('Generate new URL')."</button> ";
+
+                       print "<input class=\"button\"
+                               type=\"submit\" onclick=\"return closeInfoBox()\" 
+                               value=\"".__('Close this window')."\">";
+
+                       print "</div></div>";
+
+                       return;
+               }
+
                if ($id == "explainError") {
 
                        print "<div id=\"infoBoxTitle\">".__('Notice')."</div>";