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

106 lines 2.8 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.8
7 Author: Max Foundry
8 Author URI: http://maxfoundry.com
9 Text Domain: maxbuttons
10 Domain Path: /languages
11
12 Copyright 2016 Max Foundry, LLC (http://maxfoundry.com)
13 */
14
15 if (! function_exists('maxbuttons_php52_nono'))
16 {
17 function maxbuttons_php52_nono()
18 {
19 $message = sprintf( __("From version 3 MaxButtons requires at least PHP 5.3 . You are running version: %s ","maxbuttons"), PHP_VERSION);
20 echo"<div class='error'> <h4>$message</h4></div>";
21 return;
22 }
23 }
24 if ( version_compare(PHP_VERSION, '5.3', '<' ) ) {
25
26 add_action( 'admin_notices', 'maxbuttons_php52_nono' );
27 return;
28 }
29
30 if (! function_exists('maxbutton_double_load'))
31 {
32 function maxbutton_double_load()
33 {
34 $message = __("Already found an instance of MaxButtons running. Please check if you are trying to activate two MaxButtons plugins and deactivate one. ","maxbuttons" );
35 echo "<div class='error'><h4>$message</h4></div>";
36 return;
37 }
38 }
39
40 if (function_exists("MB"))
41 {
42 add_action('admin_notices', 'maxbutton_double_load');
43 return;
44 }
45
46
47 define("MAXBUTTONS_ROOT_FILE", __FILE__);
48 define('MAXBUTTONS_VERSION_NUM', '6.8');
49 define('MAXBUTTONS_RELEASE',"28 Nov 2016");
50
51 // In case of development, copy this to wp-config.php
52 // define("MAXBUTTONS_DEBUG", true);
53 // define("MAXBUTTONS_BENCHMARK",true);
54
55 require_once("classes/maxbuttons-class.php");
56
57 // core
58 require_once('classes/button.php');
59 require_once('classes/buttons.php');
60 require_once("classes/installation.php");
61 require_once("classes/max-utils.php");
62
63 // more core
64 require_once("classes/block.php");
65 if (is_admin())
66 {
67 require_once('classes/field.php');
68 require_once('classes/blocks.php');
69 }
70
71
72 require_once("classes/maxCSSParser.php");
73 require_once("classes/admin-class.php");
74
75 require_once("classes/collections.php");
76 require_once("classes/collection.php");
77 require_once("classes/collection-block.php");
78 require_once("classes/pack.php");
79 require_once("classes/integrations.php");
80
81 require_once("includes/maxbuttons-admin-helper.php");
82
83
84 // external libraries
85 require_once("assets/libraries/scssphp/scss.inc.php");
86 require_once("assets/libraries/simple-template/simple_template.php");
87
88 if (! class_exists('simple_html_dom_node'))
89 require_once("assets/libraries/simplehtmldom/simple_html_dom.php");
90
91
92 // runtime.
93 if (! function_exists("MB")) {
94 function MB()
95 {
96 return maxButtonsPlugin::getInstance();
97 }
98 }
99 $m = new maxButtonsPlugin();
100
101
102 // Activation / deactivation
103 register_activation_hook(__FILE__, array("maxInstall",'activation_hook') );
104 register_deactivation_hook(__FILE__,array("maxInstall", 'deactivation_hook') );
105
106