init(); if(!function_exists("ButtonizerLicense")) { function ButtonizerLicense() { global $oButtonizer; return $oButtonizer->get(); } } /* * Installation, removing and initiallization */ $oButtonizerMaintain = new Buttonizer\Maintain(true, 'init'); /* * Buttonizer admin stuff or button */ if(is_admin()) { // Load admin page new Buttonizer\Admin\InitializeAdmin(); } else { // Buttonizer button new Buttonizer\Button($oButtonizerMaintain->isMobile()); } /* LAST FEW FUNCTIONS */ if(!function_exists("buttonizer_custom_connect_message")) { function buttonizer_custom_connect_message( $message, $user_first_name, $plugin_title, $user_login, $site_link, $freemius_link ) { return sprintf( __( 'Hey %1$s' ) . ',
' . '
' . __( '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.') . '
' . '
' . __('Never miss an important update -- opt-in to our security and feature updates notifications​.') . '
' . '
' . __('​See you on the other side.') , $user_first_name, '' . $plugin_title . '', '' . $user_login . '', $site_link, $freemius_link ); } $oButtonizer->get()->add_filter('connect_message', 'buttonizer_custom_connect_message', 10, 6); } $oButtonizer->get()->add_action('after_uninstall', 'buttonizer_uninstall_cleanup'); // System, buttonizer is loaded do_action('buttonizer_loaded'); // if(defined("BUTTONIZER_DEFINED")) { // echo "
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.
"; // trigger_error("Error", E_USER_ERROR); // exit; // } // Ok, define define('BUTTONIZER_DEFINED','1.0');