diff options
author | Andrew Dolgov <[email protected]> | 2021-02-17 13:55:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-17 13:55:58 +0300 |
commit | 00b31c3f53db740984220bd9a745f76032890bea (patch) | |
tree | d7941e59c95ad12a31cadfa24e237983342d1688 /plugins/af_readability | |
parent | 3c14eed1c2e0ad80b521e874762f9a326c33cce5 (diff) |
af_readability: cleanup markup
Diffstat (limited to 'plugins/af_readability')
-rwxr-xr-x | plugins/af_readability/init.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 84cfe869a..aeef8cddc 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -129,26 +129,26 @@ class Af_Readability extends Plugin { } function hook_prefs_edit_feed($feed_id) { - print "<header>".__("Readability")."</header>"; - print "<section>"; - $enabled_feeds = $this->get_stored_array("enabled_feeds"); $append_feeds = $this->get_stored_array("append_feeds"); + ?> - $enable_checked = in_array($feed_id, $enabled_feeds) ? "checked" : ""; - $append_checked = in_array($feed_id, $append_feeds) ? "checked" : ""; - - print "<fieldset>"; - - print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='af_readability_enabled' - name='af_readability_enabled' $enable_checked> ".__('Inline article content')."</label>"; - - print "</fieldset><fieldset>"; - - print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='af_readability_append' - name='af_readability_append' $append_checked> ".__('Append to summary, instead of replacing it')."</label>"; - - print "</section>"; + <header><?= __("Readability") ?></header> + <section> + <fieldset> + <label class='checkbox'> + <?= \Controls\checkbox_tag("af_readability_enabled", in_array($feed_id, $enabled_feeds)) ?> + <?= __('Inline article content') ?> + </label> + </fieldset> + <fieldset> + <label class='checkbox'> + <?= \Controls\checkbox_tag("af_readability_append", in_array($feed_id, $append_feeds)) ?> + <?= __('Append to summary, instead of replacing it') ?> + </label> + </fieldset> + </section> + <?php } function hook_prefs_save_feed($feed_id) { |