-
Notifications
You must be signed in to change notification settings - Fork 17
/
ActivityFeed.php
95 lines (91 loc) · 2.62 KB
/
ActivityFeed.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?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 Activity Feed plugin displays the most interesting recent activity
* taking place on your site.
*
* @see http://developers.facebook.com/docs/reference/plugins/activity
*/
class ActivityFeed extends EFaceplugsBase
{
/**
* @var string The domain to show activity for. Defaults to the current
* domain.
*/
public $site;
/**
* @var string a comma separeted list of actions to show activities for.
*/
public $action;
/**
* @var integer The width of the plugin in pixels. Default width: 300px.
*/
public $width;
/**
* @var integer The height of the plugin in pixels. Default height: 300px.
*/
public $height;
/**
* @var boolean Specifies whether to show the Facebook header.
*/
public $header;
/**
* @var string The color scheme for the plugin. Options: 'light', 'dark'
*/
public $colorscheme;
/**
* @var string The font to display in the plugin. Options: 'arial',
* 'lucida grande', 'segoe ui', 'tahoma', 'trebuchet ms', 'verdana'
*/
public $font;
/**
* @var string The border color of the plugin.
*/
public $border_color;
/**
* @var boolean Specifies whether to always show recommendations in the plugin.
*
* If set to true, the plugin will display recommendations in the bottom
* half.
*/
public $recomendations;
/**
* @var string Allows you to filter which URLs are shown in the plugin.
*
* The plugin will only include URLs which contain the filter in the first
* two path parameters of the URL. If nothing in the first two path
* parameters of the URL matches the filter, the URL will not be included.
*/
public $filter;
/**
* @var boolean This specifies the context in which content links are opened.
*
* By default all links within the plugin will open a new window.If you want
* the content links to open in the same window, youcan set this parameter
* to _top or _parent. Link to Facebook URLs will always open in a new window.
*/
public $linktarget;
/**
* @var string A label for tracking referrals; must be less than 50
* characters and can contain alphanumeric characters and some punctuation
* (currently +/=-.:_).
*/
public $ref;
/**
* @var interger a limit on recommendation and creation time of articles that
* surfaced in the plugins, the default is 0. otherwise the valid values are
* 1-180, which specifies the number of days.
*/
public $max_age;
public function run()
{
parent::run();
$this->renderTag('activity');
}
}