WP Manifestindependent plugin directory
manifest / integrations / wplibcalhours

LibCal Hours for WordPress WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

LibCal Hours for WordPress.

★ 4stars
23release downloads
v1.2.0latest · 6 years ago

Install

Download wplibcalhours-1.2.0.zip From the v1.2.0 release on GitHub, Mar 11, 2020

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/ucsf-ckm/wplibcalhours/releases/download/v1.2.0/wplibcalhours-1.2.0.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Embed opening hours for any given location from LibCal into WordPress via short codes.

Opening hours displayed in a published post

Installation

Since this plugin is not available for automatic installation, please follow these Manual Plugin Installation steps.

Configuration

Plugin settings

In the plugin's Admin Settings form, enter the LibCal Hours API Endpoint URL and save the form.

Instructions on how to get that URL can be found on this Wiki page.

Usage

Embed shortcode into a post

Embed the [wplibcalhours] short code into your posts and pages.

The short code has the following configuration options.

  • location ... The name of the location that you want to display opening hours for. (mandatory)
  • num_weeks ... The number of weeks of opening hours to display. Accepted values are 1, 2 and 3. Defaults to 3. (optional).

Examples

[wplibcalhours location="Parnassus Library"] - This will print the opening hours for the "Parnassus Library" location for the next three weeks (starting today).

[wplibcalhours location="Parnassus Library" num_weeks=1] - Prints the opening hours for the "Parnassus Library" for the next week (starting today).

API

This plugin also exposes opening hours via a read-only, public API endpoint.

Requesting the path /wp-admin/admin-ajax.php?action=wplibcalhours on your site will yield a JSON-formatted payload comprised of dates and opening hours, keyed by their location names.

These lists are sorted in chronological order and contain day-of-the-week, date and the day's opening hours information.

Each list starts with the current date.

Example payload

Three locations, the current date is January 3rd.

{
  "Parnassus Library": [
    {
      "day": "Wed",
      "date": "Jan 3",
      "text": "7:45am - 10pm"
    },
    {
      "day": "Thu",
      "date": "Jan 4",
      "text": "7:45am - 10pm"
    }
    /* ... */
  ],
  "Mission Bay Library": [
    {
      "day": "Wed",
      "date": "Jan 3",
      "text": "9am - 6pm"
    },
    {
      "day": "Thu",
      "date": "Jan 4",
      "text": "9am - 6pm"
    }
    /* ... */
  ],
  "Mission Bay Hub": [
    {
      "day": "Wed",
      "date": "Jan 3",
      "text": "24 hours"
    },
    {
      "day": "Thu",
      "date": "Jan 4",
      "text": "24 hours"
    }
    /* ... */
  ]
}

Styling

Please see this Wiki page for ideas on how to customize the styles of this plugin's generated markup.

Attribution

This plugin was created using WordPress Plugin Boilerplate.

Copyright (c) 2017 The Regents of the University of California

This is Open Source Software, published under the MIT license.

Releases

5 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.2.0 latest
Mar 11, 2020 6 years ago
wplibcalhours-1.2.0.zip +1 asset
14
wplibcalhours-1.2.0.zip9
wplibcalhours-1.2.0.tar.gz5
Jan 18, 2018 8 years ago
wplibcalhours.1.1.1.zip +1 asset
8
wplibcalhours.1.1.1.zip6
wplibcalhours.1.1.1.tar.gz2
Jan 3, 2018 8 years ago
wplibcalhours.1.1.0.tar.gz +1 asset
6
wplibcalhours.1.1.0.tar.gz4
wplibcalhours.1.1.0.zip2
May 23, 2017 9 years ago
wplibcalhours.1.0.1.zip +1 asset
5
wplibcalhours.1.0.1.zip3
wplibcalhours.1.0.1.tar.gz2
Apr 11, 2017 9 years ago
wplibcalhours.1.0.0.tar.gz +1 asset
7
wplibcalhours.1.0.0.tar.gz4
wplibcalhours.1.0.0.zip3
A grade

Security

LibCal Hours for WordPress 1.2.0 · audited by WP Registry

No security issues found.

Audited release
1.2.0
Findings
none
Worst severity
—
Content hash
32b923d2f657ca883138d8b7…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.