-
Notifications
You must be signed in to change notification settings - Fork 17
/
SubscribeButton.php
58 lines (55 loc) · 1.67 KB
/
SubscribeButton.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
<?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 Subscribe button lets a user subscribe to your public updates on Facebook.
*
* @see http://developers.facebook.com/docs/reference/plugins/subscribe
*/
class SubscribeButton extends EFaceplugsBase
{
/**
* @var string The profile URL of the user to subscribe to. This must be a facebook.com profile URL.
*/
public $href;
/**
* @var string There are three options:
*
* 'standard' - displays social text to the right of the button and friends' profile photos below.
* Minimum width: 225 pixels. Default width: 450 pixels. Height: 35 pixels (without photos) or 80 pixels (with photos).
*
* 'button_count' - displays the total number of subscribers to the right of the button.
* Minimum width: 90 pixels. Default width: 90 pixels. Height: 20 pixels.
*
* box_count - displays the total number of subscribers above the button.
* Minimum width: 55 pixels. Default width: 55 pixels. Height: 65 pixels.
*/
public $layout;
/**
* @var boolean Display profile photos in the plugin (standard layout only).
*/
public $show_faces;
/**
* @var string The color scheme for the plugin. Options: 'light', 'dark'
*/
public $colorscheme;
/**
* @var string The font to display in the button. Options: 'arial',
* 'lucida grande', 'segoe ui', 'tahoma', 'trebuchet ms', 'verdana'
*/
public $font;
/**
* @var integer The width of the plugin in pixels.
*/
public $width;
public function run()
{
parent::run();
$this->renderTag('subscribe');
}
}