posts as $i => $p) { $fields .= $this->hiddenFieldTag("posts[{$p->id}]", str_pad($i, 5, STR_PAD_LEFT)); $thumbnails .= $this->print_preview($p, ['onclick' => "return removePost({$p->id})"]); } ?>
checkBoxTag("delete-mode") ?> contentTag('label', "Remove posts", ['onclick' => "Element::toggle('delete-mode-help')", 'for' => "delete-mode"]) ?> contentTag('p', $this->contentTag('em', "When delete mode is enabled, clicking on a thumbnail will remove that post from the import."), ['style' => "display: none;", 'id' => "delete-mode-help"]) ?>