set_basename( false, __FILE__ ); } else { define( 'CHATDOZO_VERSION', '0.13.3' ); define( 'CHATDOZO_FILE', __FILE__ ); define( 'CHATDOZO_DIR', plugin_dir_path( __FILE__ ) ); define( 'CHATDOZO_URL', plugin_dir_url( __FILE__ ) ); if ( !function_exists( 'chatdozo_fs' ) ) { function chatdozo_fs() { global $chatdozo_fs; if ( !isset( $chatdozo_fs ) ) { require_once dirname( __FILE__ ) . '/vendor/freemius/start.php'; $chatdozo_fs = fs_dynamic_init( array( 'id' => '44233', 'slug' => 'chatdozo', 'premium_slug' => 'chatdozo-premium', 'type' => 'plugin', 'public_key' => 'pk_5ddb52478355f2e66e53f98e284c7', 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_paid_plans' => true, 'has_addons' => false, 'is_org_compliant' => true, 'trial' => array( 'days' => 14, 'is_require_payment' => false, ), 'menu' => array( 'slug' => 'chatdozo', 'first-path' => 'admin.php?page=chatdozo-settings', 'account' => true, 'contact' => false, 'support' => false, 'pricing' => true, ), 'is_live' => true, ) ); } return $chatdozo_fs; } chatdozo_fs(); do_action( 'chatdozo_fs_loaded' ); } // Deleting the plugin: Freemius records the uninstall, then our clean-up runs (replaces uninstall.php) chatdozo_fs()->add_action( 'after_uninstall', function () { require_once CHATDOZO_DIR . 'src/Install.php'; Chatdozo\Install::uninstall(); } ); spl_autoload_register( function ( $class ) { if ( strpos( $class, 'Chatdozo\\' ) !== 0 ) { return; } $file = CHATDOZO_DIR . 'src/' . str_replace( 'Chatdozo\\', '', $class ) . '.php'; if ( is_readable( $file ) ) { require_once $file; } } ); register_activation_hook( __FILE__, array('Chatdozo\\Install', 'activate') ); register_deactivation_hook( __FILE__, array('Chatdozo\\Install', 'deactivate') ); add_action( 'plugins_loaded', array('Chatdozo\\Plugin', 'boot') ); } // end of the one-edition-per-request guard