-
Notifications
You must be signed in to change notification settings - Fork 17
/
Facepile.php
57 lines (53 loc) · 1.41 KB
/
Facepile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Wrappers for facebook plugins.
* @copyright © Digitick <www.digitick.net> 2011
* @license GNU Lesser General Public License v3.0
* @author Ianaré Sévi
*/
require_once 'EFaceplugsBase.php';
/**
* The Facepile plugin displays the Facebook profile pictures of users who
* have liked your page or have signed up for your site.
*
* @see http://developers.facebook.com/docs/reference/plugins/facepile/
*/
class Facepile extends EFaceplugsBase
{
/**
* @var string The URL of the page.
*
* The plugin will display photos of users who have liked this page.
*/
public $href;
/**
* @var string an action type. The plugin will display photos of users who
* have connected to your app via this action.
*/
public $action;
/**
* @var integer The maximum number of rows of faces to display.
*
* Height is dynamically sized; if you specify a maximum of four rows of
* faces, but there are only enough friends to fill two rows, the plugin
* will set its height for two rows of faces. Default: 1.
*/
public $max_rows;
/**
* @var integer Width of the plugin in pixels. Default width: 200px.
*/
public $width;
/**
* @var sting size of the photos and social context. Default size:medium.
*/
public $size;
/**
* @var string the color scheme for the like button.Option:'light','dark'.
*/
public $colorscheme;
public function run()
{
parent::run();
$this->renderTag('facepile');
}
}