1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

cleanup markup in some plugins, make nsfw generate dijit widgets

This commit is contained in:
Andrew Dolgov
2021-02-16 22:07:37 +03:00
parent 89e8176c69
commit 0fc783e2b3
5 changed files with 82 additions and 90 deletions

View File

@@ -42,19 +42,18 @@ class Note extends Plugin {
print \Controls\hidden_tag("method", "setNote");
print \Controls\hidden_tag("plugin", "note");
print "<textarea dojoType='dijit.form.SimpleTextarea'
?>
<textarea dojoType='dijit.form.SimpleTextarea'
style='font-size : 12px; width : 98%; height: 100px;'
name='note'>$note</textarea>";
name='note'><?= $note ?></textarea>
<?php
}
print "<footer class='text-center'>";
print "<button dojoType=\"dijit.form.Button\"
onclick=\"dijit.byId('editNoteDlg').execute()\">".__('Save')."</button> ";
print "<button dojoType=\"dijit.form.Button\"
onclick=\"dijit.byId('editNoteDlg').hide()\">".__('Cancel')."</button>";
print "</footer>";
?>
<footer class='text-center'>
<?= \Controls\submit_tag(__('Save')) ?>
<?= \Controls\cancel_dialog_tag(__('Cancel')) ?>
</footer>
<?php
}
function setNote() {