PluginProbe
MaxButtons – Create buttons / 7.13.1
MaxButtons – Create buttons v7.13.1
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
maxbuttons / maxbuttons.php

maxbuttons.php in MaxButtons – Create buttons 7.13.1, at maxbuttons.php

91 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
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: 7.13.1
7 Author: Max Foundry
8 Author URI: http://maxfoundry.com
9 Text Domain: maxbuttons
10 Domain Path: /languages
11
12 Copyright 2019 Max Foundry, LLC (http://maxfoundry.com)
13 */
14 namespace MaxButtons;
15
16 if (! defined('MAXBUTTONS_ROOT_FILE'))
17 define("MAXBUTTONS_ROOT_FILE", __FILE__);
18 if (! defined('MAXBUTTONS_VERSION_NUM'))
19 define('MAXBUTTONS_VERSION_NUM', '7.13.1');
20
21 define('MAXBUTTONS_RELEASE',"15 October 2019");
22
23 if (! function_exists('MaxButtons\maxbutton_double_load'))
24 {
25 function maxbutton_double_load()
26 {
27 $message = __("Already found an instance of MaxButtons running. Please check if you are trying to activate two MaxButtons plugins and deactivate one. ","maxbuttons" );
28 echo "<div class='error'><h4>$message</h4></div>";
29 return;
30 }
31 }
32
33 if (function_exists("MaxButtons\MB"))
34 {
35 add_action('admin_notices', 'MaxButtons\maxbutton_double_load');
36 return;
37 }
38
39 // In case of development, copy this to wp-config.php
40 // define("MAXBUTTONS_DEBUG", true);
41 // define("MAXBUTTONS_BENCHMARK",true);
42
43 require_once("classes/maxbuttons-class.php");
44
45 // core
46 /*require_once('classes/button.php');
47 require_once('classes/buttons.php');
48 require_once("classes/installation.php");
49 require_once("classes/max-utils.php");
50
51 // more core
52 require_once("classes/block.php");
53 require_once('classes/field.php');
54 require_once('classes/blocks.php');
55
56 require_once("classes/maxCSSParser.php");
57 require_once("classes/admin-class.php");
58
59 require_once("classes/integrations.php");
60
61 require_once("includes/maxbuttons-admin-helper.php");
62
63 // external libraries
64 if ( version_compare(PHP_VERSION, '5.4', '<' ) )
65 {
66 require_once("assets/libraries/scssphp_legacy/scss.inc.php");
67 }
68 else
69 {
70 require_once("assets/libraries/scssphp/scss.inc.php");
71 }
72 require_once("assets/libraries/simple-template/simple_template.php");
73
74 if (! class_exists('simple_html_dom_node'))
75 require_once("assets/libraries/simplehtmldom/simple_html_dom.php");
76 */
77
78 // runtime.
79 if (! function_exists("MaxButtons\MB")) {
80 function MB()
81 {
82 return maxButtonsPlugin::getInstance();
83 }
84 }
85 $m = new maxButtonsPlugin();
86 do_action('maxbuttons/plugin/init' , $m);
87
88 // Activation / deactivation
89 register_activation_hook(__FILE__, array(maxUtils::namespaceit("maxInstall"),'activation_hook') );
90 register_deactivation_hook(__FILE__,array(maxUtils::namespaceit("maxInstall"), 'deactivation_hook') );
91