From 8df7184cada3390918cd4364c1382603e2ee26c7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Nov 2010 14:49:06 +0300 Subject: rework preferences to use dijit stuff --- modules/pref-feeds.php | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 38f7b5777..d8df49ab3 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -955,6 +955,9 @@ if ($quiet) return; + print "
"; + print "
"; + set_pref($link, "_PREFS_ACTIVE_TAB", "feedConfig"); $result = db_query($link, "SELECT COUNT(id) AS num_errors @@ -976,6 +979,8 @@ $feed_search = $_SESSION["prefs_feed_search"]; } + print "
"; + print "
"; # toolbar + $feeds_sort = db_escape_string($_REQUEST["sort"]); if (!$feeds_sort || $feeds_sort == "undefined") { @@ -1229,17 +1236,9 @@ } - print "

".__('OPML')."

"; + print "
"; # feeds pane -/* print "
-
- ".__('File:')."   - - -
"; - - print " "; */ + print "
"; print "

" . __("Using OPML you can export and import your feeds and Tiny Tiny RSS settings."); @@ -1262,8 +1261,7 @@ "; print "

 "; - print ""; + print ""; print "

".__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.'); @@ -1273,9 +1271,11 @@ __('Display URL')." "; - if (strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") !== false) { - - print "

" . __("Firefox Integration") . "

"; + print "
"; # pane + + if (true || strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") !== false) { + + print "
"; print "

" . __('This Tiny Tiny RSS site can be used as a Firefox Feed Reader by clicking the link below.') . "

"; @@ -1288,10 +1288,12 @@ ""; print "

"; - } - print "

".__("Subscribing via bookmarklet")."

"; + print "
"; # pane + } + print "
"; + print "

" . __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.") . "

"; $bm_subscribe_url = str_replace('%s', '', add_feed_url()); @@ -1302,7 +1304,9 @@ print "" . __('Subscribe in Tiny Tiny RSS'). ""; - print "

".__("Published articles")."

"; + print "
"; #pane + + print "
"; print "

".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the URL specified below.')."

"; @@ -1315,6 +1319,9 @@ print " "; + print "
"; #pane + print "
"; #container + } function print_feed_browser($link, $search, $limit, $mode = 1) { -- cgit v1.2.3