PluginProbe
Social Share Buttons / 1.8
Social Share Buttons v1.8
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
share-button / classes / network / buffer.php

buffer.php in Social Share Buttons 1.8, at classes/network/buffer.php

28 lines 661 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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