PATH:
home
/
letacommog
/
letaweb
/
protected
/
extensions
/
yii-facebook-opengraph
/
plugins
<?php /** * FanBox class file. * * @author Evan Johnson <thaddeusmt - AT - gmail - DOT - com> * @author Ianaré Sévi (original author) www.digitick.net * * @link https://github.com/splashlab/yii-facebook-opengraph * * @copyright Copyright © 2011 SplashLab Social http://splashlabsocial.com * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 */ require_once 'SPluginBase.php'; /** * The Like Box is a social plugin that enables Facebook Page owners to * attract and gain Likes from their own website. * * The Like Box enables users to: * <ul> * <li>See how many users already like this page, and which of their friends like it too * <li>Read recent posts from the page * <li>Like the page with one click, without needing to visit the page * </ul> * * @see http://developers.facebook.com/docs/reference/plugins/like */ class FanBox extends SPluginBase { /** * @var int The width of the plugin in pixels. Default width: 300px. */ public $width; /** * @var int The height of the plugin in pixels. */ public $height; /** * @var bool Specifies whether to display a stream of the latest posts * from the page's wall. */ public $stream; /** * @var string Specifies the profile to be a fan of. */ public $profile_id; /** * @var bool Specifies whether to display the Facebook logo at the top * of the plugin. */ public $logobar; /** * @var int Specify the number of connections (faces) to display in * the plugin. */ public $connections; /** * @var string Absolute URL, specify a CSS file to use with the plugin. */ public $css; public function run() { parent::run(); if (!isset($this->profile_id)) { $this->profile_id = Yii::app()->facebook->appId; } $params = $this->getParams(); $this->renderTag('fan', $params); } }
[+]
..
[-] LikeButton.php
[edit]
[-] LikeBox.php
[edit]
[-] SPluginBase.php
[edit]
[-] ActivityFeed.php
[edit]
[-] Registration.php
[edit]
[-] Recommendations.php
[edit]
[-] LiveStream.php
[edit]
[-] RegistrationParser.php
[edit]
[-] Facepile.php
[edit]
[-] Comments.php
[edit]
[-] LoginButton.php
[edit]
[-] FanBox.php
[edit]