Dokuwiki Plugin - GPlusOne

Plugin for the management of the “+1” Google button within the Dokuwiki wiki sites.

The existing http://www.dokuwiki.org/plugin:googleplusone plugin doesn't meet my requirements: the button position is fixed, it is supported only German, you cannot customize the look of the button, … hence the need to put the hands on the source code.

The choice was to write a new plugin, I don't like the jQuery approach used by the original plugin and completely it lacks of any administration / integration with the editor. Obviously starting from scratch means “recycle” the template already used for other plugins…

Plugin usage

Generate the “+1” button using the Google API.

Syntax

~~GPLUSONE~attribute1=value1~attribute2=value2~~

The possible values​​, all optionals, are those featured in the Google documentation. If a value is missing it is taken from the default present in the administration interface.

Examples

~~GPLUSONE~annotation=bubble~size=tall~~

generates the following result: ~~GPLUSONE~annotation=bubble~size=tall~~

Installation

Download and install the plugin using the Plugin Manager using the following http://www.eiroca.net/apps/dokuwiki/dokuwiki-plugin-gplusone.zip. Refer to plugins on how to install plugins manually. Releases at githuib is always up to date.

Administration

The default values ​for “+1” button generation be changed from the control panel.

History

Version 19.02

  • support for Google+ end of life
  • dokuwiki “Greebo” compatibility
  • PHP 7.x compatibility

Version 2013/06/29

  • First version

Licence & Copyright

Copyright © 2010-2019 eIrOcA (eNrIcO Croce & sImOnA Burzio)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.