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() { 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.

'; } public function get_user_options(User $user, bool $set_by_default, bool $view_by_default): string { $html = "

".make_form(make_link("user_admin/private_image"))."
Private Images
"; return $html; } }