Skip to content
Snippets Groups Projects
Commit 00b31c3f authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

af_readability: cleanup markup

parent 3c14eed1
No related branches found
No related tags found
No related merge requests found
...@@ -129,26 +129,26 @@ class Af_Readability extends Plugin { ...@@ -129,26 +129,26 @@ class Af_Readability extends Plugin {
} }
function hook_prefs_edit_feed($feed_id) { function hook_prefs_edit_feed($feed_id) {
print "<header>".__("Readability")."</header>";
print "<section>";
$enabled_feeds = $this->get_stored_array("enabled_feeds"); $enabled_feeds = $this->get_stored_array("enabled_feeds");
$append_feeds = $this->get_stored_array("append_feeds"); $append_feeds = $this->get_stored_array("append_feeds");
?>
$enable_checked = in_array($feed_id, $enabled_feeds) ? "checked" : ""; <header><?= __("Readability") ?></header>
$append_checked = in_array($feed_id, $append_feeds) ? "checked" : ""; <section>
<fieldset>
print "<fieldset>"; <label class='checkbox'>
<?= \Controls\checkbox_tag("af_readability_enabled", in_array($feed_id, $enabled_feeds)) ?>
print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='af_readability_enabled' <?= __('Inline article content') ?>
name='af_readability_enabled' $enable_checked>&nbsp;".__('Inline article content')."</label>"; </label>
</fieldset>
print "</fieldset><fieldset>"; <fieldset>
<label class='checkbox'>
print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='af_readability_append' <?= \Controls\checkbox_tag("af_readability_append", in_array($feed_id, $append_feeds)) ?>
name='af_readability_append' $append_checked>&nbsp;".__('Append to summary, instead of replacing it')."</label>"; <?= __('Append to summary, instead of replacing it') ?>
</label>
print "</section>"; </fieldset>
</section>
<?php
} }
function hook_prefs_save_feed($feed_id) { function hook_prefs_save_feed($feed_id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment