manage_accessibility_plugin
Add (or remove) Orivox's accessibility widget: a floating accessibility button that appears on EVERY page of the site and opens a toolbar of reader aids for visitors.
Reach for this the moment the user asks for an accessibility button, an accessibility menu or toolbar, or says their site should be accessible / usable with a screen reader / compliant -- this one call installs the whole thing. Do NOT hand-build an accessibility widget with apply_dom_ops.
icon picks the button's glyph: "person" (default, the standard
accessibility figure), "wheelchair", or "user". position puts it at the
bottom "right" (default) or bottom "left" of the screen. Calling this again
with different options REPLACES the existing widget instead of adding a
second one, so it is also how you change the icon or move it to the other
side. action="remove" takes it off the site entirely.
changed is byte-honest: False means NO file was written at all, because
the site already looked exactly like this -- do not announce a fresh change.
True means at least one file was rewritten.
outcome says which end state you are in; describe it to the user IN
THEIR OWN LANGUAGE (never echo these tokens):
"installed" -- the widget is now on every page with the given icon/side.
"already_installed" -- it was already exactly like that; nothing changed.
"removed" -- it is off the site.
"was_not_installed" -- there was none, so there was nothing to remove.
"install_not_confirmed" / "removal_not_confirmed" -- the result contradicts itself.
verify_before_reportingis true for these two: check the site with get_preview_url before telling the user anything about the widget, and do not claim success or failure.
No re-publish is needed for a preview, but a LIVE site only shows the widget after publish_website runs again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | person | |
| action | No | add | |
| position | No | right | |
| project_guid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||