Skip to content

langsci/shariff

Repository files navigation

Shariff plugin for OMP

This plugin adds social media buttons to the footer of each page. It implements shariff by heise (Github, article) in Open Monograph Press.

Installation

Clone this repo in your plugin folder or download the code and tar.gz it and upload it via the gui.

Usage

The front end can be used to display the buttons themselves. Available social media services are:

  • Facebook
  • Twitter
  • Google+

An info button that links to the heise article can be added.

Shariff icons

Settings

The following settings are available:

  • select buttons (Facebook, Twitter, Google+, Info)
  • select language (Deutsch, English)
  • select theme (Standard, White, Grey)
  • add backend-url

Shariff settings

Display numbers

Shariff icons with numbers

To display the numbers of likes, tweets and plus-ones, shariff uses a backend. This plugin uses the [php backend] (http://github.com/heiseonline/shariff-backend-php).

To set up the backend you need to have access to the code. Follow the steps:

  1. Copy the folder shariff-backend to the top level of your OMP installation.
  2. Make the folder cache writeable.
  3. Change the domain in shariff.json to your domain.
  4. Add the url of the backend at the settings page. Example: http://your-press.org/shariff-backend.

About

shariff plugin for OMP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published