Skip to content
A plugin to view users' WSU Accessibility Training status in the Admin area.
PHP CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
includes
src/_css
views
.editorconfig
.gitattributes
.gitignore
.npmpackagejsonlintrc.json
.stylelintrc.json
.travis.yml
CHANGELOG.md
LICENSE
README.md
composer.json
composer.lock
index.php
package-lock.json
package.json
phpcs.xml.dist
postcss.config.js
wsuwp-a11y-status.php

README.md

WSUWP A11y Status

Build Status

Overview

This WordPress plugin helps site administrators monitor the WSU Web Accessibility Training status of all users on the site and to notify individual users when their training status needs attention.

Description

WSUWP A11y (Accessibility) Status retrieves WSU Web Accessibility Training status data from the WSU Accessibility Training API using a WSU network ID. The plugin adds a "WSU NID" field on the user profile page where site admins can enter a WSU NID for each user. When doing an API call, it'll check for this value first, and then fall back to the user portion of the user email address. This means valid WSU email addresses will work without the need to set the WSU NID value manually.

All users will see:

  • An error notice in the WordPress admin area with a link to take the training if they are not WSU Accessibility certified or if their certification has expired.
  • A warning notice in the WordPress admin area if their certification is due to expire in less than one (1) month, also with a link to take the training.

Admin users will also see:

  • An additional column in the users table on the Users screen showing the WSU Accessibility Training status for each user: "None" for users that are not certified and the time remaining until required recertification for users that are. (Admins can also hover over this value to display a tooltip with the date of the last successful API call.)

For Developers

The WSUWP A11y Status plugin development environment relies primarily on NPM and Composer. The package.json and composer.json configuration files manage necessary dependencies for testing and building the production version of the theme. The NPM scripts in package.json do most of the heavy lifting.

Initial Setup

  1. Clone the WSUWP A11y Status plugin to a directory on your computer.
  2. Change into that directory.
  3. Install the NPM and Composer dependencies.
  4. Ensure linting and coding standards checks are working -- this should exit with zero (0) errors.
  5. Create a new branch for local development.

In a terminal:

git clone https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status.git wsuwp-a11y-status
cd wsuwp-a11y-status
npm install; composer install
npm test -s
git checkout -b new-branch-name

Build Commands

The following commands will handle basic build functions. (Remove the -s flag to show additional debug info.)

  • npm run build -s: Remove old compiled files such as minified CSS, lint PHP and CSS, and then compile new versions.
  • npm test -s: Check all PHP and CSS files for coding standards compliance.
  • npm run clean -s: Remove old compiled files such as minified CSS.
  • npm run build:styles -s: Compile CSS.

See the scripts section of package.json for additional available commands.

You can’t perform that action at this time.