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