summaryrefslogtreecommitdiff
path: root/plugins/af_comics/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-17 12:25:33 +0300
committerAndrew Dolgov <[email protected]>2021-02-17 12:25:33 +0300
commit9ac6741d2476944b77e8665e8ff9a9d811848908 (patch)
treea88d67dc657027328de4941ae628809e949360f7 /plugins/af_comics/init.php
parent4325c30a3f7574ed2b1cc3fcf41a08d92c0ccc49 (diff)
af_comics: markup cleanup
Diffstat (limited to 'plugins/af_comics/init.php')
-rwxr-xr-xplugins/af_comics/init.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php
index c99d4b1d8..c8a8f8637 100755
--- a/plugins/af_comics/init.php
+++ b/plugins/af_comics/init.php
@@ -47,11 +47,6 @@ class Af_Comics extends Plugin {
function hook_prefs_tab($args) {
if ($args != "prefFeeds") return;
- print "<div dojoType=\"dijit.layout.AccordionPane\"
- title=\"<i class='material-icons'>photo</i> ".__('Feeds supported by af_comics')."\">";
-
- print "<p>" . __("The following comics are currently supported:") . "</p>";
-
$comics = [];
foreach ($this->filters as $f) {
@@ -62,17 +57,22 @@ class Af_Comics extends Plugin {
asort($comics);
- print "<ul class='panel panel-scrollable list list-unstyled'>";
- foreach ($comics as $comic) {
- print "<li>$comic</li>";
- }
- print "</ul>";
+ ?>
+ <div dojoType="dijit.layout.AccordionPane"
+ title="<i class='material-icons'>photo</i> <?= __('Feeds supported by af_comics') ?>">
- print_notice("To subscribe to GoComics use the comic's regular web page as the feed URL (e.g. for the <em>Garfield</em> comic use <code>http://www.gocomics.com/garfield</code>).");
+ <h3><?= __("The following comics are currently supported:") ?></h3>
- print_notice('Drop any updated filters into <code>filters.local</code> in plugin directory.');
+ <ul class='panel panel-scrollable list list-unstyled'>
+ <?php foreach ($comics as $comic) { ?>
+ <li><?= htmlspecialchars($comic) ?></li>
+ <?php } ?>
+ </ul>
- print "</div>";
+ <?= format_notice("To subscribe to GoComics use the comic's regular web page as the feed URL (e.g. for the <em>Garfield</em> comic use <code>http://www.gocomics.com/garfield</code>).") ?>
+ <?= format_notice('Drop any updated filters into <code>filters.local</code> in plugin directory.') ?>
+ </div>
+ <?php
}
function hook_article_filter($article) {