mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
dialogs: use semantic markup instead of dlgsec stuff
continue unifying quoting style for html strings
This commit is contained in:
+25
-27
@@ -14,7 +14,7 @@ class Dlg extends Handler_Protected {
|
||||
}
|
||||
|
||||
function importOpml() {
|
||||
print __("If you have imported labels and/or filters, you might need to reload preferences to see your new data.") . "</p>";
|
||||
print_notice("If you have imported labels and/or filters, you might need to reload preferences to see your new data.");
|
||||
|
||||
print "<div class='panel panel-scrollable'>";
|
||||
|
||||
@@ -24,11 +24,11 @@ class Dlg extends Handler_Protected {
|
||||
|
||||
print "</div>";
|
||||
|
||||
print "<div align='center'>";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
print "<footer class='text-center'>";
|
||||
print "<button dojoType='dijit.form.Button'
|
||||
onclick=\"dijit.byId('opmlImportDlg').execute()\">".
|
||||
__('Close this window')."</button>";
|
||||
print "</div>";
|
||||
print "</footer>";
|
||||
|
||||
print "</div>";
|
||||
|
||||
@@ -38,25 +38,25 @@ class Dlg extends Handler_Protected {
|
||||
function pubOPMLUrl() {
|
||||
$url_path = Opml::opml_publish_url();
|
||||
|
||||
print "<div class='dlgSec'>" . __("Your Public OPML URL is:") . "</div>";
|
||||
print "<header>" . __("Your Public OPML URL is:") . "</header>";
|
||||
|
||||
print "<div class='dlgSecCont'>";
|
||||
print "<section>";
|
||||
|
||||
print "<div class='panel text-center'>";
|
||||
print "<a id='pub_opml_url' href='$url_path' target='_blank'>$url_path</a>";
|
||||
print "</div>";
|
||||
|
||||
print "</div>";
|
||||
print "</section>";
|
||||
|
||||
print "<div align='center'>";
|
||||
print "<footer class='text-center'>";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return Helpers.OPML.changeKey()\">".
|
||||
print "<button dojoType='dijit.form.Button' onclick=\"return Helpers.OPML.changeKey()\">".
|
||||
__('Generate new URL')."</button> ";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return CommonDialogs.closeInfoBox()\">".
|
||||
print "<button dojoType='dijit.form.Button' onclick=\"return CommonDialogs.closeInfoBox()\">".
|
||||
__('Close this window')."</button>";
|
||||
|
||||
print "</div>";
|
||||
print "</footer>";
|
||||
|
||||
//return;
|
||||
}
|
||||
@@ -84,12 +84,10 @@ class Dlg extends Handler_Protected {
|
||||
|
||||
print "</div>";
|
||||
|
||||
print "<div align='center'>";
|
||||
|
||||
print "<footer class='text-center'>";
|
||||
print "<button onclick=\"return CommonDialogs.closeInfoBox()\">".
|
||||
__('Close this window')."</button>";
|
||||
|
||||
print "</div>";
|
||||
print "</footer>";
|
||||
|
||||
//return;
|
||||
}
|
||||
@@ -149,11 +147,11 @@ class Dlg extends Handler_Protected {
|
||||
|
||||
print "</div>";
|
||||
|
||||
print "<div align='center'>";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
print "<footer class='text-center'>";
|
||||
print "<button dojoType='dijit.form.Button'
|
||||
onclick=\"return CommonDialogs.closeInfoBox()\">".
|
||||
__('Close this window')."</button>";
|
||||
print "</div>";
|
||||
print "</footer>";
|
||||
|
||||
}
|
||||
|
||||
@@ -169,15 +167,15 @@ class Dlg extends Handler_Protected {
|
||||
|
||||
$feed_title = Feeds::getFeedTitle($feed_id, $is_cat);
|
||||
|
||||
print "<div class='dlgSec'>".T_sprintf("%s can be accessed via the following secret URL:", $feed_title)."</div>";
|
||||
print "<header>".T_sprintf("%s can be accessed via the following secret URL:", $feed_title)."</header>";
|
||||
|
||||
print "<div class='dlgSecCont'>";
|
||||
print "<section>";
|
||||
print "<div class='panel text-center'>";
|
||||
print "<a id='gen_feed_url' href='$url_path' target='_blank'>$url_path</a>";
|
||||
print "</div>";
|
||||
print "</div>";
|
||||
print "</section>";
|
||||
|
||||
print "<div class='dlgButtons'>";
|
||||
print "<footer>";
|
||||
|
||||
print "<button dojoType='dijit.form.Button' style='float : left' class='alt-info' onclick='window.open(\"https://tt-rss.org/wiki/GeneratedFeeds\")'>
|
||||
<i class='material-icons'>help</i> ".__("More info...")."</button>";
|
||||
@@ -188,7 +186,7 @@ class Dlg extends Handler_Protected {
|
||||
print "<button dojoType='dijit.form.Button' onclick=\"return CommonDialogs.closeInfoBox()\">".
|
||||
__('Close this window')."</button>";
|
||||
|
||||
print "</div>";
|
||||
print "</footer>";
|
||||
|
||||
//return;
|
||||
}
|
||||
@@ -197,12 +195,12 @@ class Dlg extends Handler_Protected {
|
||||
|
||||
print_warning(__("You are using default tt-rss password. Please change it in the Preferences (Personal data / Authentication)."));
|
||||
|
||||
print "<div align='center'>";
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"document.location.href = 'prefs.php'\">".
|
||||
print "<footer class='text-center'>";
|
||||
print "<button dojoType='dijit.form.Button' onclick=\"document.location.href = 'prefs.php'\">".
|
||||
__('Open Preferences')."</button> ";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
print "<button dojoType='dijit.form.Button'
|
||||
onclick=\"return CommonDialogs.closeInfoBox()\">".
|
||||
__('Close this window')."</button>";
|
||||
print "</div>";
|
||||
print "</footeer>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user