PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 1.4.4
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v1.4.4
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.4.4, at buttonizer.php

159 lines 5.2 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.4.4
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 // error_reporting(E_ALL);
32
33 define('BUTTONIZER_NAME', 'buttonizer');
34 define('BUTTONIZER_DIR', dirname(__FILE__));
35 define('BUTTONIZER_SLUG', basename(BUTTONIZER_DIR));
36 define('BUTTONIZER_PLUGIN_DIR', __FILE__ );
37 define('BUTTONIZER_VERSION','1.4.4');
38
39 # No script kiddies
40 defined( 'ABSPATH' ) or die('No script kiddies please!');
41
42 /* ================================================
43 * WELCOME TO THE BUTTONIZER SOURCE CODE!
44 *
45 * We like to see that you are courious
46 * how the code is written. When you
47 * are here to try to resolve problems
48 * you must be carefully, anything
49 * can get broken you know...
50 *
51 * -- KNOWLEDGE BASE --
52 * Did you know you can use our
53 * knowledge base?
54 * That's free!
55 *
56 * VISIT:
57 * https://knowledge.buttonizer.pro
58 *
59 * -- BUGS FOUND? --
60 * Are you here to look for a bug?
61 * Cool! If you found something
62 * you can report it to us!
63 *
64 * Maybe you get a FREE license
65 * for 1 website ;)
66 *
67 * ================================================
68 */
69
70 if(!class_exists("\\Buttonizer\\Utils\\Maintain")) {
71 /* Install, deactivate and remove Buttonizer */
72 require BUTTONIZER_DIR . '/classes/Utils/Maintain.php';
73
74 // Main stuff
75 require BUTTONIZER_DIR . '/classes/Button.php';
76
77 // License stuff
78 require BUTTONIZER_DIR . '/classes/Licensing/License.php';
79
80 // Admin stuff
81 require BUTTONIZER_DIR . '/classes/Admin/Admin.php';
82 }
83
84 /*
85 * License setup
86 */
87 $oButtonizer = new Buttonizer\Licensing\License();
88 $oButtonizer->init();
89
90 if(!function_exists("ButtonizerLicense")) {
91 function ButtonizerLicense() {
92 global $oButtonizer;
93
94 return $oButtonizer->get();
95 }
96 }
97
98 /*
99 * Installation, removing and initiallization
100 */
101 $oButtonizerMaintain = new Buttonizer\Utils\Maintain(true, 'init');
102
103 /*
104 * Buttonizer Admin stuff or button
105 */
106 if(is_admin()) {
107 // Load Admin page
108 new Buttonizer\Admin\Admin();
109 }
110 else
111 {
112 // Buttonizer button
113 new Buttonizer\Button($oButtonizerMaintain->isMobile());
114 }
115
116 /* LAST FEW FUNCTIONS */
117 if(!function_exists("buttonizer_custom_connect_message")) {
118 function buttonizer_custom_connect_message(
119 $message,
120 $user_first_name,
121 $plugin_title,
122 $user_login,
123 $site_link,
124 $freemius_link
125 ) {
126 return sprintf(
127 __( 'Hey %1$s' ) . ',<br>' .
128 '<br />' .
129 __( 'Click on Allow & Continue to start Buttonizing your website :)! Create Floating Action Buttons & Floating Menu\'s. Decide on a number of click actions like start chatting with Whatsapp, click-to-call, open a URL and more.') . '<br />' .
130 '<br />' .
131 __('Never miss an important update -- opt-in to our security and feature updates notifications​.') . '<br />' .
132 '<br />' .
133 __('​See you on the other side.')
134 ,
135 $user_first_name,
136 '<b>' . $plugin_title . '</b>',
137 '<b>' . $user_login . '</b>',
138 $site_link,
139 $freemius_link
140 );
141 }
142
143 $oButtonizer->get()->add_filter('connect_message', 'buttonizer_custom_connect_message', 10, 6);
144 }
145
146 $oButtonizer->get()->add_action('after_uninstall', 'buttonizer_uninstall_cleanup');
147
148 // System, buttonizer is loaded
149 do_action('buttonizer_loaded');
150
151 // if(defined("BUTTONIZER_DEFINED")) {
152 // 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>";
153 // trigger_error("Error", E_USER_ERROR);
154 // exit;
155 // }
156
157 // Ok, define
158 define('BUTTONIZER_DEFINED','1.0');
159