ewinslow/elgg-google

Provides Elgg support for various Google products like Analytics, Webmaster Tools, etc.

Installs: 350

Dependents: 1

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 2

Open Issues: 0

Type:elgg-plugin

dev-master 2015-07-21 05:32 UTC

This package is not auto-updated.

Last update: 2024-10-26 16:52:18 UTC


README

Provides Elgg support for various Google products:

  • Plus one buttons
  • Plus badges
  • Analytics
  • Webmaster Tools verification
  • Google Maps JS API
  • Google JS API client (gapi.client)
  • Google JS loader (goog.load)

Plus one button

To emit a plus one button with the default settings:

<?php echo elgg_view('google/plusone', array('href' => 'http://...'));

To specify other settings, just pass them into $vars. For example:

<?php echo elgg_view('google/plusone', array('size' => 'small', ...));

See https://developers.google.com/+/plugins/+1button/ for more details.

Plus badges

To emit a plus badge:

<?php echo elgg_view('google/plusbadge', array('href' => 'http://...'));

The href option should be the address of your plus page.

See https://developers.google.com/+/plugins/badge/ for more details.

JS API clients

The following javascripts are registered by this plugin:

  • KEY - SCRIPT
  • 'google.load' - '//www.google.com/jsapi'
  • 'google.maps' - '//maps.googleapis.com/maps/api/js'
  • 'gapi.client' - '//apis.google.com/js/client.js'