定制 ewinslow/elgg-google 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ewinslow/elgg-google

Composer 安装命令:

composer require ewinslow/elgg-google

包简介

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

README 文档

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'

统计信息

  • 总下载量: 355
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-25