| @@ -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 | |
| @@ -123,9 +126,9 @@ | ||
| 123 | 126 | |
| 124 | 127 | $button_html = "<span class='mb-item item-" . $args['index'] . "'>"; |
| 125 | 128 | $button_html .= $button->display($button_args); |
| 126 | 129 | $button_html .= "</span>"; |
| 127 | - $buttonObj = str_get_html($button_html); | |
| 130 | + $buttonObj = \MaxButtons\str_get_html($button_html); | |
| 128 | 131 | |
| 129 | 132 | // fix URL *after* button output since MB filters {url} type of URL's needed for ApplyVars |
| 130 | 133 | if ($use && $network) |
| 131 | 134 | { |