-
Notifications
You must be signed in to change notification settings - Fork 17
/
LikeBox.php
78 lines (75 loc) · 1.87 KB
/
LikeBox.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?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 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-box
*/
class LikeBox extends EFaceplugsBase
{
/**
* @var string The URL of the Facebook page for this Like Box.
*/
public $href;
/**
* @var integer The width of the plugin in pixels. Default width: 300px.
*/
public $width;
/**
* @var integer The height of the plugin in pixels.
*/
public $height;
/**
* @var string The color scheme for the plugin. Options: 'light', 'dark'
*/
public $colorscheme;
/**
* @var boolean Display profile photos in the plugin.
*/
public $show_faces;
/**
* @var boolean Specifies whether to display a stream of the latest posts
* from the page's wall.
*/
public $stream;
/**
* @var boolean Specifies whether to display the Facebook header at the
* top of the plugin.
*/
public $header;
/**
* @var string The border color of the plugin.
*/
public $border_color;
/**
* @var boolean for Places, specifies whether the stream contains posts
* from the Place's wall or just checkins from friends. Default value: false.
*/
public $force_wall;
/**
* @var string Specifies the profile to like.
*/
public $profile_id;
public function run()
{
parent::run();
if (!isset($this->profile_id)) {
$this->profile_id = $this->app_id;
}
$this->renderTag('like-box');
}
}