/** * 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'; }
<?php if (defined('BIZPANDA_SIGNIN_LOCKER_ACTIVE')) { return; } define('BIZPANDA_SIGNIN_LOCKER_ACTIVE', true); define('BIZPANDA_SIGNIN_LOCKER_DIR', dirname(__FILE__)); define('BIZPANDA_SIGNIN_LOCKER_URL', plugins_url(null, __FILE__)); if (is_admin()) { require BIZPANDA_SIGNIN_LOCKER_DIR . '/admin/boot.php'; } if (!function_exists('opanda_register_signin_locker')) { global $bizpanda; BizPanda::enableFeature('signin-locker'); /** * Registers the Sign-In Locker item. * * @since 1.0.0 */ function opanda_register_signin_locker($items) { $plugin = null; if (BizPanda::hasPlugin('optinpanda')) { global $optinpanda; $plugin = $optinpanda; } else { global $sociallocker; $plugin = $sociallocker; } global $optinpanda; $items['signin-locker'] = array('name' => 'signin-locker', 'type' => 'premium', 'title' => __('Sign-In Locker', 'signinlocker'), 'help' => opanda_get_help_url('what-is-signin-locker'), 'description' => __('<p>Locks the content until the user signs in through social networks.</p><p>You can set up various social actions to be performed to sign in (e.g. subscribe, follow, share).</p>', 'signinlocker'), 'shortcode' => 'signinlocker', 'plugin' => $plugin);