Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Annotator Wordpress plugin providing annotations in wordpress using the Annotator

NotificationsYou must be signed in to change notification settings

openannotation/annotator-wordpress

Repository files navigation

Adds inline annotations to Wordpress using the amazingAnnotator widget (by the Open Knowledge Foundation).

Features

  • Includes the Annotator JavaScript code and its third partyparty dependencies (i.e.jquery.js, andjson2.js) into the currently active theme (no HTML editing needed).
  • Offers the option to configure the annotable content area from the Wordpress settings page.
  • Provides blog administrators with the option to decide whether to display only authenticated users' annotations or also annotations made by anonymous users.
  • Provides a rudimentary regular expressions' based mechanism for configuring in what pages/blog sections the Annotator widget should be included.

Requirements

PHP >= 5.*.*

Install

Justgit clone this project into thewp-content/plugins/ directory, thenactivate the plugin through the Wordpress administration panel accessible athttp://<blogaddress>/wp-admin/plugins.php.

You will also need to sign up atAnnotateIt andfill yourAccount ID andAuth Token details in the Plugin settingsform.

Demo

A blog post showing the plugin in action can be foundhere. The plugin settings for this specific installation are depicted in the screenshot below:

wp-annotator settings screenshot

Bugs and feature requests

You are welcome to submit bug reports as well as ideas and featurerequests using theGitHub issue tracker.

Running the unit tests

The plugin comes with a fairly decent test suite. To run the tests you will needPEAR, the PHP package manager.Once installed PEAR, you will also need to install the latest version of the PHPUnit package. This can be done by issuing the following commands:

pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear channel-discover pear.symfony-project.compear install phpunit/PHPUnit

The test suite has to be run from within the project rootdirectory by executing the phpunit command with no options orarguments.

phpunit

The test suite can also be configured to run automatically whenever the library code changes. This is desirable while developing, as it allows to spotregressions sooner rather than later, and to keep tests up to date. In orderto automate the execution of the tests you will need to install and runguard, a Ruby tool that allows to bind customcommands to file system events. The 'Guardfile' provided here contains a few useful configuration directives that allow doing this with PHPUnit tests.

About

Annotator Wordpress plugin providing annotations in wordpress using the Annotator

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp