/** * Fires when the BizPanda connected. */ function onp_sl_init_bizpanda($activationHook = false) { /** * Displays a note about that it's requited to update other plugins. */ if (!$activationHook && !bizpanda_validate(SOCIALLOCKER_BIZPANDA_VERSION, 'Social Locker')) { return; } // enabling features the plugin requires BizPanda::enableFeature('lockers'); BizPanda::enableFeature('terms'); BizPanda::enableFeature('social'); // creating the plugin object global $sociallocker; $sociallocker = new Factory325_Plugin(__FILE__, array('name' => 'sociallocker-next', 'title' => 'Social Locker', 'version' => '4.2.5', 'assembly' => 'free', 'lang' => 'en_US', 'api' => 'http://api.byonepress.com/1.1/', 'premium' => 'http://api.byonepress.com/public/1.0/get/?product=sociallocker-next', 'styleroller' => 'http://sociallocker.org/styleroller', 'account' => 'http://accounts.byonepress.com/', 'updates' => SOCIALLOCKER_DIR . '/plugin/updates/', 'tracker' => '0ec2f14c9e007ba464c230b3ddd98384', 'childPlugins' => array('bizpanda'))); BizPanda::registerPlugin($sociallocker, 'sociallocker', 'free'); // requires factory modules $sociallocker->load(array(array('bizpanda/libs/factory/bootstrap', 'factory_bootstrap_329', 'admin'), array('bizpanda/libs/factory/notices', 'factory_notices_323', 'admin'), array('bizpanda/libs/onepress/api', 'onp_api_320'), array('bizpanda/libs/onepress/licensing', 'onp_licensing_325'), array('bizpanda/libs/onepress/updates', 'onp_updates_324'))); require SOCIALLOCKER_DIR . '/panda-items/signin-locker/boot.php'; require SOCIALLOCKER_DIR . '/panda-items/social-locker/boot.php'; require SOCIALLOCKER_DIR . '/plugin/boot.php'; }