WP Manifestindependent plugin directory
manifest / media / wp-docviewer

docViewer

A document viewer plugin for wordpress that handles jpg, png, gif, pdf, doc, xls and ppt files, using google document viewer.

by Justin Sorensen · github.com/sorensenjg/wp-docviewer · website

0stars
1forks

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/sorensenjg/wp-docviewer/archive/refs/heads/master.zip

Readme

wp-docViewer

A document viewer plugin for wordpress that handles jpg, png, gif, pdf, doc, xls and ppt files, using google document viewer.


How to use shortcode:

The shortcode accepts two attributes:

  • url – provides the path to the file for display.
  • name – displays a title, otherwise defaults to the filename (optional).
[docViewer url="your_file_url" name="your_file_name"]

How to use function:

The plugin also exposes a function that accepts two attributes:

  • $url – provides the path to the file for display.
  • $name – displays a title, otherwise defaults to the filename (optional).
echo docViewer($url, $name);

How to build:

At the root of the plugin run:

npm install

After the dependencies have downloaded, run:

gulp

Read the full README on GitHub →