PluginProbe
MaxButtons – Create buttons / 6.26
MaxButtons – Create buttons v6.26
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 6.26, at maxbuttons.php

93 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: 6.26
7 Author: Max Foundry
8 Author URI: http://maxfoundry.com
9 Text Domain: maxbuttons
10 Domain Path: /languages
11
12 Copyright 2018 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', '6.26');
20
21 define('MAXBUTTONS_RELEASE',"05 Jan 2017");
22
23
24 if (! function_exists('MaxButtons\maxbutton_double_load'))
25 {
26 function maxbutton_double_load()
27 {
28 $message = __("Already found an instance of MaxButtons running. Please check if you are trying to activate two MaxButtons plugins and deactivate one. ","maxbuttons" );
29 echo "<div class='error'><h4>$message</h4></div>";
30 return;
31 }
32 }
33
34 if (function_exists("MaxButtons\MB"))
35 {
36 add_action('admin_notices', 'MaxButtons\maxbutton_double_load');
37 return;
38 }
39
40
41 // In case of development, copy this to wp-config.php
42 // define("MAXBUTTONS_DEBUG", true);
43 // define("MAXBUTTONS_BENCHMARK",true);
44
45 require_once("classes/maxbuttons-class.php");
46
47 // core
48 require_once('classes/button.php');
49 require_once('classes/buttons.php');
50 require_once("classes/installation.php");
51 require_once("classes/max-utils.php");
52
53 // more core
54 require_once("classes/block.php");
55
56 require_once('classes/field.php');
57 require_once('classes/blocks.php');
58
59
60 require_once("classes/maxCSSParser.php");
61 require_once("classes/admin-class.php");
62
63 require_once("classes/collections.php");
64 require_once("classes/collection.php");
65 require_once("classes/collection-block.php");
66 require_once("classes/pack.php");
67 require_once("classes/integrations.php");
68
69 require_once("includes/maxbuttons-admin-helper.php");
70
71
72 // external libraries
73 require_once("assets/libraries/scssphp/scss.inc.php");
74 require_once("assets/libraries/simple-template/simple_template.php");
75
76 if (! class_exists('simple_html_dom_node'))
77 require_once("assets/libraries/simplehtmldom/simple_html_dom.php");
78
79
80 // runtime.
81 if (! function_exists("MaxButtons\MB")) {
82 function MB()
83 {
84 return maxButtonsPlugin::getInstance();
85 }
86 }
87 $m = new maxButtonsPlugin();
88
89
90 // Activation / deactivation
91 register_activation_hook(__FILE__, array(maxUtils::namespaceit("maxInstall"),'activation_hook') );
92 register_deactivation_hook(__FILE__,array(maxUtils::namespaceit("maxInstall"), 'deactivation_hook') );
93