ewinslow / elgg-google
Provides Elgg support for various Google products like Analytics, Webmaster Tools, etc.
Installs: 352
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 0
Type:elgg-plugin
pkg:composer/ewinslow/elgg-google
Requires
- composer/installers: >=1.0.8
 
This package is not auto-updated.
Last update: 2025-10-25 22:06:30 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'