Pleasant Viewer
Easily share Wednesday Readings, inspiring texts, lessons, benedictions and more on your WordPress site.
Install in
Provides the ability to enter Bible and Science and Health citations and publish and share the referenced text. Uses cskit-rb written by Cameron. We built this plugin as part of the “Hack Your Church” hackathon at the U.C. Berkeley CSO. Participants / contributors include Gabriel, Julian, Cameron and James.
Demonstration site here: PleasantViewer.org
Allows zero-signup (anonymous) posting of citations.
Shortcodes:
Insert [pleasantviewer] on a page to display a form to add citations. Note that this will enable anonymous publishing of citations to your site. Citations are published as WordPress posts.
Written by Joobi from the project's own listing. See the source page
1.4
- Fix: Switch citation API endpoint from retired Heroku server to https://api.cskit.org/v1/text.json (filterable via
pleasant_viewer_api_url) - Fix: Eliminate implicit JavaScript globals that caused multi-line async lookup race conditions
- Fix: Properly URL-encode citations, debounce typing, and guard stale out-of-order AJAX responses
- Fix: Fix server-side volume detection so numbered Bible books (e.g.
1 John 4:8) are not misclassified as Science and Health - Security: Escape citation output before formatting italics as
<em>and construct hidden DOM inputs safely - Enhancement: Support additional pre-1931 public-domain Christian Science works (
Mis.,Man.,Ret., etc.) directly in citation lookups
1.3
- Security: Add nonce verification to form submission
- Security: Sanitize all user input (sanitize_text_field, sanitize_textarea_field, absint)
- Security: Escape all output (esc_html, esc_attr, esc_url, wp_kses, wp_kses_post)
- Security: Add capability checks for post creation
- Fix: Resolve JavaScript error on pages without the Pleasant Viewer form
- Improvement: Modernize jQuery to use .on() event binding and .done()/.fail() AJAX callbacks
- Improvement: Add null guards for DOM element access
- Improvement: Rename template file from underscore to hyphen convention
- Improvement: Prefix all global functions with pleasantviewer_
- Coding standards: Full PHPCS WordPress-Extra compliance
1.2
- Release date: October 31, 2018
- Changed order of enqueued javascript to fix dependency
1.1
- Update API endpoints to use https, now should work on SSL served sites
1.0
- Initial release of plugin
Follow this listing's changes (Atom feed)