WP Manifestindependent plugin directory
manifest / content / iza-sdg

IZA SDG

Interactive SVG graphic for sustainability.zinc.org implemented through WordPress shortcode

by Gifford Nowland · github.com/gnowland/iza-sdg · website

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/gnowland/iza-sdg/archive/refs/heads/master.zip

Declares an update source (gnowland/iza-sdg), so updates arrive through the plugin's own updater.

Readme

IZA-SDG

Interactive SVG graphic highlighting the International Zinc Association (IZA) and its members' committment to the United Nations 17 Sustainable Development Goals (SDGs) featured on the zinc.org sustainability microsite: sustainability.zinc.org.

Use

Add shortcode [iza_sdg] to WordPress page content.
Divi: insert shortcode inside a "code" or "full-width code" module.

Screen Shot

Admin

Text editing and administrative interface is located under Appearance > IZA SDG in the WordPress Admin menu.

Screen Shot - admin

Development

  • Uses yarn, webpack and browsersync.
    • Dependancies are managed with package.json (yarn)
    • Builds are managed with webpack.config.js (webpack)

Source files are located in /src and are compiled to /dist by yarn scripts (see below). WARNING: Do not directly edit files in dist as they will be overwritten on the next compile!

The plugin automatically selects the CSS file for development/production.

How does it work

  1. Install Yarn

  2. Initilize Project

     yarn
  3. Available commands

    1. Dev

      starts browsersync, compiles your js and scss, creates sourcemaps and watches for file changes

       yarn dev
    2. Dist

      generates production files (minifies css and packs media queries), generates less detailed source maps

       yarn dist

Design

  • Use the Adobe Illustrator asset exporter to export the entire artboard. Make sure that exporting "names as ID's" is set. Run through SVGOMG with generous settings.

Read the full README on GitHub →

Releases

TagPublished
v2.2.0 Nov 20, 2019
v2.1.0 Oct 23, 2018
v2.0.3 Oct 10, 2018
v1.1.0 Oct 8, 2018
v2.0.1 Oct 8, 2018
v2.0.2 Oct 8, 2018
v2.0.0 Oct 8, 2018

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.