| 1 |
<?php |
| 2 |
namespace MBSocial; |
| 3 |
defined('ABSPATH') or die('No direct access permitted'); |
| 4 |
|
| 5 |
|
| 6 |
class bufferNetwork extends mbNetwork |
| 7 |
{ |
| 8 |
protected $network = 'buffer'; |
| 9 |
protected $icon_type = 'nucleo'; |
| 10 |
protected $icon = 'nucleo-logo-buffer'; |
| 11 |
protected $priority = 'readmore'; |
| 12 |
protected $color = '#242424'; |
| 13 |
|
| 14 |
public function __construct() |
| 15 |
{ |
| 16 |
$this->label = __('Share', 'mbsocial'); |
| 17 |
$this->share_url = 'https://buffer.com/add?url={url}&text={title}'; |
| 18 |
$this->popup_dimensions = array(600,600); |
| 19 |
|
| 20 |
$this->countable = true; |
| 21 |
$this->count_api = 'https://api.bufferapp.com/1/links/shares.json?url={url}'; |
| 22 |
$this->return_var = 'shares'; |
| 23 |
|
| 24 |
parent::__construct(); |
| 25 |
|
| 26 |
} |
| 27 |
} |
| 28 |
|