private === false) { $html = SHM_SIMPLE_FORM( 'privatize_image/'.$image->id, INPUT(["type" => 'hidden', "name" => 'image_id', "value" => $image->id]), SHM_SUBMIT("Make Private") ); } else { $html = SHM_SIMPLE_FORM( 'publicize_image/'.$image->id, INPUT(["type" => 'hidden', "name" => 'image_id', "value" => $image->id]), SHM_SUBMIT("Make Public") ); } return (string)$html; } public function get_help_html(): string { return '

Search for posts that are private/public.

private:yes

Returns posts that are private, restricted to yourself if you are not an admin.

private:no

Returns posts that are public.

'; } }