PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 1.0.8
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v1.0.8
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
buttonizer-multifunctional-button / buttonizer.php

buttonizer.php in Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder 1.0.8, at buttonizer.php

149 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Buttonizer - Smart Floating Action Button
4 Plugin URI: https://buttonizer.pro
5 Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6 Version: 1.0.8
7 Author: Buttonizer
8 Author URI: https://buttonizer.pro
9 License: GPL2
10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: wporg
12 */
13 /*
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
28 Copyright 2017 Buttonizer
29 */
30
31 define('BUTTONIZER_NAME', 'buttonizer');
32 define('BUTTONIZER_DIR', dirname(__FILE__));
33 define('BUTTONIZER_SLUG', basename(BUTTONIZER_DIR));
34 define('BUTTONIZER_PLUGIN_DIR', __FILE__ );
35 define('BUTTONIZER_VERSION','1.0.8');
36
37 # No script kiddies
38 defined( 'ABSPATH' ) or die('No script kiddies please!');
39
40 /* ================================================
41 * WELCOME TO THE BUTTONIZER SOURCE CODE!
42 *
43 * We like to see that you are courious
44 * how the code is written. When you
45 * are here to try to resolve problems
46 * you must be carefully, anything
47 * can get broken you know...
48 *
49 * -- KNOWLEDGE BASE --
50 * Did you know you can use our
51 * knowledge base?
52 * That's free!
53 *
54 * VISIT:
55 * https://knowledge.buttonizer.pro
56 *
57 * -- BUGS FOUND? --
58 * Are you here to look for a bug?
59 * Cool! If you found something
60 * you can report it to us!
61 *
62 * Maybe you get a FREE license
63 * for 1 website ;)
64 *
65 * ================================================
66 */
67
68 if(!class_exists("\\Buttonizer\\Maintain")) {
69 /* Install, deactivate and remove Buttonizer */
70 require BUTTONIZER_DIR . '/classes/default/maintain.php';
71
72 // Main stuff
73 require BUTTONIZER_DIR . '/classes/default/main.php';
74
75 // License stuff
76 require BUTTONIZER_DIR . '/classes/default/license.php';
77
78 // Admin stuff
79 require BUTTONIZER_DIR . '/classes/admin/InitializeAdmin.php';
80 }
81
82 /*
83 * License setup
84 */
85 $oButtonizer = new Buttonizer\License();
86 $oButtonizer->init();
87
88 if(!function_exists("ButtonizerLicense")) {
89 function ButtonizerLicense() {
90 global $oButtonizer;
91
92 return $oButtonizer->get();
93 }
94 }
95
96 /*
97 * Installation, removing and initiallization
98 */
99 $oButtonizerMaintain = new Buttonizer\Maintain(true, 'init');
100
101 /*
102 * Buttonizer admin stuff or button
103 */
104 if(is_admin()) {
105 // Load admin page
106 new Buttonizer\Admin\InitializeAdmin();
107 }
108 else
109 {
110 // Buttonizer button
111 new Buttonizer\Button($oButtonizerMaintain->isMobile());
112 }
113
114 /* LAST FEW FUNCTIONS */
115 if(!function_exists("buttonizer_custom_connect_message_on_update")) {
116 function buttonizer_custom_connect_message_on_update(
117 $message,
118 $user_first_name,
119 $plugin_title,
120 $user_login,
121 $site_link,
122 $freemius_link
123 ) {
124 return sprintf(
125 __fs( 'hey-x' ) . '<br>' .
126 __( 'Hey %2$s! We want to ask you to help us to improve Buttonizer! If you opt-in, some data about your usage of %2$s will be sent to %5$s. If you skip this, that\'s no problem! %2$s will still be improved!', 'buttonizer' ),
127 $user_first_name,
128 '<b>' . $plugin_title . '</b>',
129 '<b>' . $user_login . '</b>',
130 $site_link,
131 $freemius_link
132 );
133 }
134 }
135
136 $oButtonizer->get()->add_action('after_uninstall', 'buttonizer_uninstall_cleanup');
137
138 // System, buttonizer is loaded
139 do_action('buttonizer_loaded');
140
141 // if(defined("BUTTONIZER_DEFINED")) {
142 // echo "<div style='clear: both;'></div><img src='". plugins_url('/assets/buttonizer.png', BUTTONIZER_PLUGIN_DIR) ."' style='height: 40px; margin-right: 10px; float: left; vertical-align: top;'> Hey, looks like you try to install me (Buttonizer), while you already have an older version (or the free version) installed and activated? Deactivate all older Buttonizer plugins before trying again.<div style='clear: both; height: 20px'></div>";
143 // trigger_error("Error", E_USER_ERROR);
144 // exit;
145 // }
146
147 // Ok, define
148 define('BUTTONIZER_DEFINED','1.0');
149