From 335147e572c8557751c0a035647a7ad729b43674 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 22 Feb 2019 10:48:56 +0300 Subject: dialogs: use semantic markup instead of dlgsec stuff continue unifying quoting style for html strings --- classes/pref/feeds.php | 271 +++++++++++++++++++++-------------------------- classes/pref/filters.php | 156 +++++++++++++-------------- classes/pref/labels.php | 50 ++++----- classes/pref/prefs.php | 52 +++++---- classes/pref/users.php | 44 ++++---- 5 files changed, 265 insertions(+), 308 deletions(-) (limited to 'classes/pref') diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index a033bf04f..dd7c67e7e 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -531,16 +531,16 @@ class Pref_Feeds extends Handler_Protected { print_hidden("op", "pref-feeds"); print_hidden("method", "editSave"); - print "
".__("Feed")."
"; - print "
"; + print "
".__("Feed")."
"; + print "
"; /* Title */ print "
"; - print ""; + style='font-size : 16px; width: 500px' name='title' value=\"$title\">"; print "
"; @@ -551,10 +551,10 @@ class Pref_Feeds extends Handler_Protected { print "
"; print " "; - print ""; + regExp='^(http|https)://.*' style='width : 300px' + name='feed_url' value=\"$feed_url\">"; $last_error = $row["last_error"]; @@ -588,10 +588,10 @@ class Pref_Feeds extends Handler_Protected { print "
"; print " "; - print ""; + regExp='^(http|https)://.*' style='width : 300px' + name='site_url' value=\"$site_url\">"; print "
"; @@ -609,10 +609,10 @@ class Pref_Feeds extends Handler_Protected { print "
"; } - print "
"; + print ""; - print "
".__("Update")."
"; - print "
"; + print "
".__("Update")."
"; + print "
"; /* Update Interval */ @@ -641,7 +641,7 @@ class Pref_Feeds extends Handler_Protected { print ""; - print "
"; + print ""; $auth_login = htmlspecialchars($row["auth_login"]); $auth_pass = htmlspecialchars($row["auth_pass"]); @@ -650,44 +650,39 @@ class Pref_Feeds extends Handler_Protected { $auth_style = $auth_enabled ? '' : 'display: none'; print "
"; - print "
".__("Authentication")."
"; - print "
"; + print "
".__("Authentication")."
"; + print "
"; print "
"; - print ""; + print ""; - print "
"; - print "
"; + print "
"; - print ""; - print "
+ print "
".__('Hint: you need to fill in your login information if your feed requires authentication, except for Twitter feeds.')."
"; print "
"; - print "
"; + print ""; $auth_checked = $auth_enabled ? 'checked' : ''; - print "
- + -
"; + ".__('This feed requires authentication.').""; print '
'; - //print "
".__("Options")."
"; - print "
"; - $private = $row["private"]; if ($private) { @@ -745,9 +740,8 @@ class Pref_Feeds extends Handler_Protected { print "
"; - print ""; + print ""; print "
"; @@ -761,9 +755,8 @@ class Pref_Feeds extends Handler_Protected { print "
"; - print ""; + print ""; print "
"; @@ -777,42 +770,35 @@ class Pref_Feeds extends Handler_Protected { print "
"; - print ""; + print ""; print "
"; - print "
"; - print '
'; /* Icon */ - print "
"; - - print ""; + print ""; - print ""; + print ""; - print "
-
"; - print '
'; PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_EDIT_FEED, @@ -822,16 +808,12 @@ class Pref_Feeds extends Handler_Protected { $title = htmlspecialchars($title, ENT_QUOTES); - print "
-
- "; - - print "
"; - - print " - -
"; + print "
+ + + +
"; } } @@ -849,8 +831,8 @@ class Pref_Feeds extends Handler_Protected { print_hidden("op", "pref-feeds"); print_hidden("method", "batchEditSave"); - print "
".__("Feed")."
"; - print "
"; + print "
".__("Feed")."
"; + print "
"; /* Category */ @@ -882,10 +864,10 @@ class Pref_Feeds extends Handler_Protected { print ""; } - print "
"; + print ""; - print "
".__("Update")."
"; - print "
"; + print "
".__("Update")."
"; + print "
"; /* Update Interval */ @@ -916,93 +898,85 @@ class Pref_Feeds extends Handler_Protected { print ""; } - print "
"; - print "
".__("Authentication")."
"; - print "
"; + print ""; + print "
".__("Authentication")."
"; + print "
"; print "
"; - print ""; + print ""; $this->batch_edit_cbox("auth_login"); - print "
"; - print "
"; - - print ""; + print ""; $this->batch_edit_cbox("auth_pass"); print "
"; - print "
"; - print "
".__("Options")."
"; - print "
"; + print ""; + print "
".__("Options")."
"; + print "
"; print "
"; - print ""; + print ""; print " "; $this->batch_edit_cbox("private", "private_l"); print "
"; - print ""; + print ""; print " "; $this->batch_edit_cbox("include_in_digest", "include_in_digest_l"); print "
"; - print ""; + print ""; print " "; $this->batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l"); print "
"; - print ""; + print ""; print " "; $this->batch_edit_cbox("hide_images", "hide_images_l"); print "
"; - print ""; + print ""; print " "; $this->batch_edit_cbox("cache_images", "cache_images_l"); print "
"; - print ""; + print ""; print " "; $this->batch_edit_cbox("mark_unread_on_update", "mark_unread_on_update_l"); print "
"; - print "
"; + print ""; - print "
- - -
"; + "; return; } @@ -1499,16 +1473,14 @@ class Pref_Feeds extends Handler_Protected { ORDER BY last_article"); $sth->execute([$_SESSION['uid']]); - print ""; - - print "
"; - print "
". + print "
"; + print "
". "" . __('Select').""; - print "
"; + print "
"; print "
".__('All')."
"; + dojoType='dijit.MenuItem'>".__('All')."
"; print "
".__('None')."
"; + dojoType='dijit.MenuItem'>".__('None')."
"; print "
"; print "
"; #toolbar @@ -1524,16 +1496,16 @@ class Pref_Feeds extends Handler_Protected { print ""; print ""; + onclick='Tables.onRowChecked(this);' dojoType='dijit.form.CheckBox' + type='checkbox'>"; print ""; - print "". htmlspecialchars($line["title"]).""; - print ""; + print ""; print make_local_datetime($line['last_article'], false); print ""; print ""; @@ -1544,16 +1516,12 @@ class Pref_Feeds extends Handler_Protected { print ""; print "
"; - print "
"; - print "
"; - print " "; - print "
"; - - print ""; - - print "
"; + print "
+ + +
"; } @@ -1607,16 +1575,14 @@ class Pref_Feeds extends Handler_Protected { print ""; print "
"; - print "
"; - print "
"; - print " "; - print "
"; print ""; - print "
"; + print ""; } private function remove_feed_category($id, $owner_uid) { @@ -1710,9 +1676,8 @@ class Pref_Feeds extends Handler_Protected { print_hidden("op", "pref-feeds"); print_hidden("method", "batchaddfeeds"); - print "
".__("One valid feed per line (no detection is done)")."
"; - - print "
"; + print "
".__("One valid feed per line (no detection is done)")."
"; + print "
"; print ""; + style='font-size : 12px;' name='value'>$value"; - print "
"; - print " "; - print ""; - print "
"; + print ""; } function editPrefProfiles() { - print "
"; + print "
"; - print "
". + print "
". "" . __('Select').""; - print "
"; + print "
"; print "
".__('All')."
"; + dojoType='dijit.MenuItem'>".__('All')."
"; print "
".__('None')."
"; + dojoType='dijit.MenuItem'>".__('None')."
"; print "
"; - print "
"; + print "
"; - print " -
"; @@ -1113,10 +1112,10 @@ class Pref_Prefs extends Handler_Protected { $is_active = ""; } - print "" . $edit_title . - "