-
Notifications
You must be signed in to change notification settings - Fork 17
/
LikeButton.php
67 lines (64 loc) · 1.66 KB
/
LikeButton.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
<?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 button lets a user share your content with friends on Facebook.
*
* When the user clicks the Like button on your site, a story appears in the
* user's friends' News Feed with a link back to your website.
*
* @see http://developers.facebook.com/docs/reference/plugins/like
*/
class LikeButton extends EFaceplugsBase
{
/**
* @var string The URL of the Facebook page for this Like button.
*/
public $href;
/**
* @var boolean Specifies whether to include a Send button with the Like
* button.
*/
public $send;
/**
* @var string Three options : 'standard', 'button_count', 'box_count'
*/
public $layout;
/**
* @var boolean Display profile photos below the button (standard layout only).
*/
public $show_faces;
/**
* @var integer Width of the Like button, defults to 450px
*/
public $width;
/**
* @var string The verb to display on the button. Options: 'like', 'recommend'
*/
public $action;
/**
* @var string The font to display in the button. Options: 'arial',
* 'lucida grande', 'segoe ui', 'tahoma', 'trebuchet ms', 'verdana'
*/
public $font;
/**
* @var string The color scheme for the plugin. Options: 'light', 'dark'
*/
public $colorscheme;
/**
* @var string A label for tracking referrals; must be less than 50
* characters and can contain alphanumeric characters and some punctuation
* (currently +/=-.:_).
*/
public $ref;
public function run()
{
parent::run();
$this->renderTag('like');
}
}