WordPress Button Plugin MaxButtons - Version 8.0.1

Version Description

  • Fix for Beaver Builder
  • Shortcode now renders in Beaver Builder front editor
Download this release

Release Info

Developer basszje
Plugin Icon 128x128 WordPress Button Plugin MaxButtons
Version 8.0.1
Comparing to
See all releases

Code changes from version 8.0 to 8.0.1

assets/integrations/beaver_builder/beaver_builder.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace MaxButtons;
3
+ defined('ABSPATH') or die('No direct access permitted');
4
+
5
+
6
+ class BeaverBuilderFree
7
+ {
8
+ public function __construct()
9
+ {
10
+ add_filter('mb_shortcode_display_args', array($this, 'check_builder'));
11
+ }
12
+
13
+ // if button is loading inside the editor, compile and inline the shortcode output
14
+ public function check_builder($args)
15
+ {
16
+ if (isset($_GET['fl_builder']))
17
+ {
18
+ $args['load_css'] = 'inline';
19
+ $args['compile'] = true;
20
+ }
21
+
22
+ return $args;
23
+ }
24
+
25
+ }
26
+
27
+ $b = new BeaverBuilderFree();
classes/button.php CHANGED
@@ -903,6 +903,7 @@ class maxButton
903
  $this->data = $this->shortcode_overrides($this->data, $button_atts);
904
  $this->data = apply_filters('mb/shortcode/data', $this->data, $atts);
905
 
 
906
  // if there are no reasons not to display; display
907
  $args = array("echo" => false,
908
  "load_css" => $load_css,
903
  $this->data = $this->shortcode_overrides($this->data, $button_atts);
904
  $this->data = apply_filters('mb/shortcode/data', $this->data, $atts);
905
 
906
+
907
  // if there are no reasons not to display; display
908
  $args = array("echo" => false,
909
  "load_css" => $load_css,
classes/integrations.php CHANGED
@@ -33,6 +33,7 @@ class maxIntegrations
33
  require_once( $integration_path . "gutenberg/gutenberg.php");
34
  require_once( $integration_path . "cache/cache.php");
35
  require_once( $integration_path . "tablepress/tablepress.php");
 
36
 
37
  do_action('maxbutton-direct-integrations');
38
 
33
  require_once( $integration_path . "gutenberg/gutenberg.php");
34
  require_once( $integration_path . "cache/cache.php");
35
  require_once( $integration_path . "tablepress/tablepress.php");
36
+ require_once( $integration_path . "beaver_builder/beaver_builder.php");
37
 
38
  do_action('maxbutton-direct-integrations');
39
 
classes/maxbuttons-class.php CHANGED
@@ -516,7 +516,7 @@ class maxButtonsPlugin
516
  $this->load_library('fontawesome');
517
  wp_enqueue_style('wp-color-picker');
518
 
519
- // Costly annoying scripts
520
  remove_action('wp_head', 'print_emoji_detection_script', 7);
521
  remove_action('wp_print_styles', 'print_emoji_styles');
522
  remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
@@ -666,7 +666,8 @@ class maxButtonsPlugin
666
  // load backend script on front in Beaver Builder
667
  if (isset($_GET['fl_builder']))
668
  {
669
- $this->add_admin_styles('maxbuttons');
 
670
  }
671
 
672
  /*wp_enqueue_script('maxbuttons-front', $this->plugin_url . 'js/min/front.js', array('jquery'), $version);
516
  $this->load_library('fontawesome');
517
  wp_enqueue_style('wp-color-picker');
518
 
519
+ // Costly annoying scripts
520
  remove_action('wp_head', 'print_emoji_detection_script', 7);
521
  remove_action('wp_print_styles', 'print_emoji_styles');
522
  remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
666
  // load backend script on front in Beaver Builder
667
  if (isset($_GET['fl_builder']))
668
  {
669
+ $this->admin_pages[] = 'beaverfront';
670
+ $this->add_admin_scripts('beaverfront');
671
  }
672
 
673
  /*wp_enqueue_script('maxbuttons-front', $this->plugin_url . 'js/min/front.js', array('jquery'), $version);
maxbuttons.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MaxButtons
4
  Plugin URI: http://maxbuttons.com
5
  Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
6
- Version: 8.0
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: maxbuttons
@@ -16,9 +16,9 @@ namespace MaxButtons;
16
  if (! defined('MAXBUTTONS_ROOT_FILE'))
17
  define("MAXBUTTONS_ROOT_FILE", __FILE__);
18
  if (! defined('MAXBUTTONS_VERSION_NUM'))
19
- define('MAXBUTTONS_VERSION_NUM', '8.0');
20
 
21
- define('MAXBUTTONS_RELEASE',"7 July 2020");
22
 
23
  if (! function_exists('MaxButtons\maxbutton_double_load'))
24
  {
3
  Plugin Name: MaxButtons
4
  Plugin URI: http://maxbuttons.com
5
  Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
6
+ Version: 8.0.1
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: maxbuttons
16
  if (! defined('MAXBUTTONS_ROOT_FILE'))
17
  define("MAXBUTTONS_ROOT_FILE", __FILE__);
18
  if (! defined('MAXBUTTONS_VERSION_NUM'))
19
+ define('MAXBUTTONS_VERSION_NUM', '8.0.1');
20
 
21
+ define('MAXBUTTONS_RELEASE',"8 July 2020");
22
 
23
  if (! function_exists('MaxButtons\maxbutton_double_load'))
24
  {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: wordpress button plugin, share button, wordpress buttons, css3 button gene
4
  Requires at least: 4.8
5
  Tested up to: 5.4.2
6
  Requires PHP: 5.6
7
- Stable tag: 8.0
8
 
9
  WordPress button plugin so powerful and easy to use anyone can create beautiful buttons, share buttons and social icons.
10
 
@@ -264,6 +264,11 @@ Secondly, please use latin only characters for button name ( Basic settings) and
264
 
265
  == Changelog ==
266
 
 
 
 
 
 
267
  = 8.0 =
268
 
269
  * Major rework of responsive options :
4
  Requires at least: 4.8
5
  Tested up to: 5.4.2
6
  Requires PHP: 5.6
7
+ Stable tag: 8.0.1
8
 
9
  WordPress button plugin so powerful and easy to use anyone can create beautiful buttons, share buttons and social icons.
10
 
264
 
265
  == Changelog ==
266
 
267
+ = 8.0.1 =
268
+
269
+ * Fix for Beaver Builder
270
+ * Shortcode now renders in Beaver Builder front editor
271
+
272
  = 8.0 =
273
 
274
  * Major rework of responsive options :