/** * @param int $image_id * @return string */ protected function build_postbox($image_id) { global $config; $i_image_id = int_escape($image_id); $hash = CommentList::get_hash(); $h_captcha = $config->get_bool("comment_captcha") ? captcha_get_html() : ""; return ' <div class="comment"> ' . make_form(make_link("comment/add")) . ' <input type="hidden" name="image_id" value="' . $i_image_id . '" /> <input type="hidden" name="hash" value="' . $hash . '" /> <textarea id="comment_on_' . $i_image_id . '" name="comment" rows="5" cols="50"></textarea> ' . $h_captcha . ' <br><input type="submit" value="Post Comment" /> </form> </div> '; }
protected function build_postbox($image_id) { global $config; $i_image_id = int_escape($image_id); $hash = CommentList::get_hash(); $captcha = $config->get_bool("comment_captcha") ? captcha_get_html() : ""; return "\n\t\t\t" . make_form(make_link("comment/add")) . "\n\t\t\t\t<input type='hidden' name='image_id' value='{$i_image_id}' />\n\t\t\t\t<input type='hidden' name='hash' value='{$hash}' />\n\t\t\t\t<textarea name='comment' rows='5' cols='50'></textarea>\n\t\t\t\t{$captcha}\n\t\t\t\t<br><input type='submit' value='Post Comment' />\n\t\t\t</form>\n\t\t"; }