1 | <?php |
||
9 | class SocialShare extends Widget |
||
10 | { |
||
11 | public $shareLink; |
||
12 | |||
13 | protected $socials = [ |
||
14 | 'facebook|facebook' => 'https://www.facebook.com/sharer/sharer.php?u=', |
||
15 | 'google-plus|gplus' => 'https://twitter.com/home?status=', |
||
16 | 'twitter|twitter' => 'https://plus.google.com/share?url=', |
||
17 | ]; |
||
18 | |||
19 | public function init() |
||
25 | |||
26 | public function run() |
||
40 | } |
||
41 |