From 951906dcecb1d3c7bcf751976a03e0c196ca6db0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 14 Nov 2010 23:46:49 +0300 Subject: use Modalbox library for popup dialogs --- modules/popup-dialog.php | 119 ++++++++++++++++++++++++----------------------- 1 file changed, 62 insertions(+), 57 deletions(-) (limited to 'modules/popup-dialog.php') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 8d3c2cee5..c018acbd8 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -3,9 +3,11 @@ $id = $_REQUEST["id"]; $param = db_escape_string($_REQUEST["param"]); + print ""; + if ($id == "importOpml") { - print "
".__('OPML Import')."
"; - print "
"; + print "".__('OPML Import').""; + print ""; @@ -58,15 +60,16 @@ print "parent.opmlImportHandler(this)"; print ""; - print "
"; + print ""; + print "]]>"; - return; + //return; } if ($id == "editPrefProfiles") { - print "
".__('Settings Profiles')."
"; - print "
"; + print "".__('Settings Profiles').""; + print "". __('Close this window').""; - print "
"; + print ""; + print "]]>"; - return; + //return; } if ($id == "pubOPMLUrl") { - print "
".__('Public OPML URL')."
"; - print "
"; + print "".__('Public OPML URL').""; + print "". __('Close this window').""; - print "
"; + print ""; + print "]]>"; - return; + //return; } if ($id == "explainError") { - print "
".__('Notice')."
"; - print "
"; + print "".__('Notice').""; + print ""; @@ -227,15 +232,16 @@ print "
"; + print ""; + print "]]>"; - return; + //return; } if ($id == "quickAddFeed") { - print "
".__('Subscribe to Feed')."
"; - print "
"; + print "".__('Subscribe to Feed').""; + print ""; @@ -295,15 +301,17 @@ onclick=\"return subscribeToFeed()\">".__('Subscribe')."
"; - - return; + + print "]]>"; + + //return; } if ($id == "feedBrowser") { - print "
".__('Feed Browser')."
"; + print "".__('Feed Browser').""; - print "
"; + print "".__('Remove')."
"; - print ""; - return; + print "]]>"; + //return; } if ($id == "search") { - print "
".__('Search')."
"; - print "
"; + print "".__('Search').""; + print ""; @@ -433,9 +441,9 @@
"; - print ""; + print "]]>"; - return; + //return; } @@ -443,8 +451,8 @@ $active_feed_id = db_escape_string($_REQUEST["param"]); - print "
".__('Create Filter')."
"; - print "
"; + print "".__('Create Filter').""; + print ""; @@ -550,17 +558,17 @@ print ""; - print "
"; + print "]]>"; // print ""; - return; + //return; } if ($id == "feedUpdateErrors") { - print "
".__('Update Errors')."
"; - print "
"; + print "".__('Update Errors').""; + print "". __('Close this window').""; - print "
"; + print "]]>"; - return; + //return; } if ($id == "editArticleTags") { - print "
".__('Edit Tags')."
"; - print "
"; + print "".__('Edit Tags').""; + print ""; @@ -618,14 +626,14 @@ print " "; print ""; - print "
"; + print "]]>"; - return; + //return; } if ($id == "printTagCloud") { - print "
".__('Tag Cloud')."
"; - print "
"; + print "".__('Tag Cloud').""; + print "".__('more tags')."):
"; @@ -641,15 +649,15 @@ __('Close this window').""; print "
"; - print ""; + print "]]>"; - return; + //return; } if ($id == "emailArticle") { - print "
".__('Forward article by email')."
"; - print "
"; + print "".__('Forward article by email').""; + print ""; @@ -754,15 +762,15 @@ print " "; print ""; - print "
"; + print "]]>"; - return; + //return; } if ($id == "generatedFeed") { - print "
".__('View as RSS')."
"; - print "
"; + print "".__('View as RSS').""; + print "". __('Close this window').""; - print "
"; + print ""; + print "]]>"; - return; + //return; } - print "
Internal Error
-
-

Unknown dialog $id

-
"; - + print "
"; } ?> -- cgit v1.2.3