PluginProbe
Social Share Buttons / 1.19
Social Share Buttons v1.19
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
← All changes | classes/network/mbcustom.php +7 -3 1.21.19 View file →
@@ -3,8 +3,9 @@
3 3 defined('ABSPATH') or die('No direct access permitted');
4 4
5 5 use MaxButtons\maxButton as maxButton;
6 6
7 +/** MaxButtons Custom Button **/
7 8 class MBCustomNetwork extends MBnetwork
8 9 {
9 10
10 11 protected $network = 'maxbutton';
@@ -12,9 +13,9 @@
12 13 protected $icon_type = 'png';
13 14 protected $priority = 'readmore';
14 15 protected $color = '#88C5C2';
15 16
16 - protected $popup = false;
17 + //protected $popup = false;
17 18
18 19 protected $last_index = -1;
19 20 protected $currentNetwork = null;
20 21
@@ -19,8 +20,10 @@
19 20 protected $currentNetwork = null;
20 21
21 22 protected $css = array();
22 23
24 + protected $is_popup = false;
25 +
23 26 protected $is_limitedpro = true;
24 27 protected $is_editable = false;
25 28 protected $is_custom = true; // maybe should be gone.
26 29
@@ -26,11 +29,12 @@
26 29
27 30
28 31 public function __construct()
29 32 {
30 - parent::__construct();
31 33 $this->icon = MBSocial()->get_plugin_url() . 'images/mb-blue-network.png';
32 34 $this->label = __('No config', 'mbsocial');
35 + parent::__construct();
36 +
33 37 $w = MBSocial()->whistle();
34 38 $w->listen('collection/new', array($this, 'resetIndex'), 'tell');
35 39 add_filter('mbsocial/parsecss/', array($this, 'fixIconCSS'));
36 40
@@ -122,9 +126,9 @@
122 126
123 127 $button_html = "<span class='mb-item item-" . $args['index'] . "'>";
124 128 $button_html .= $button->display($button_args);
125 129 $button_html .= "</span>";
126 - $buttonObj = str_get_html($button_html);
130 + $buttonObj = \MaxButtons\str_get_html($button_html);
127 131
128 132 // fix URL *after* button output since MB filters {url} type of URL's needed for ApplyVars
129 133 if ($use && $network)
130 134 {