Added multisite support
This commit is contained in:
		@@ -82,5 +82,6 @@ function kompass_load_ajax_content() {
 | 
			
		||||
 | 
			
		||||
$loginHandler = new LoginHandler();
 | 
			
		||||
new BdpVersionChecker();
 | 
			
		||||
 | 
			
		||||
#add_filter( 'plugins_api', array( $class, 'info' ), 20, 3 );
 | 
			
		||||
require_once dirname(__FILE__) . '/action_caller.php';
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ class BdpVersionChecker
 | 
			
		||||
 | 
			
		||||
    public function __construct()
 | 
			
		||||
    {
 | 
			
		||||
		$plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE );
 | 
			
		||||
		$plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE, true, false );
 | 
			
		||||
	    $this->plugin_slug = BDP_LV_PLUGIN_SLUG;
 | 
			
		||||
        $this->updateUrl = $plugin_data['UpdateURI'] . '/info.json';
 | 
			
		||||
		$this->version = $plugin_data['Version'];
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,5 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function _kompass_limit_logins_settings_radio_callback(array $args)
 | 
			
		||||
{
 | 
			
		||||
    kompass_print_radio($args['setting']);
 | 
			
		||||
@@ -11,8 +8,11 @@ function _kompass_limit_logins_settings_checkbox_callback(array $args) {
 | 
			
		||||
    kompass_print_checkbox($args['setting']);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
 | 
			
		||||
    return;
 | 
			
		||||
}
 | 
			
		||||
bdp_kompass_load_plugin_textdomain();
 | 
			
		||||
 | 
			
		||||
add_settings_section(
 | 
			
		||||
    'custom_settings_section',
 | 
			
		||||
    __('Options', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,7 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
 | 
			
		||||
    return;
 | 
			
		||||
}
 | 
			
		||||
add_settings_section(
 | 
			
		||||
	'custom_settings_section',
 | 
			
		||||
	__('Calendar settings', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,7 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
 | 
			
		||||
    return;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
add_settings_section(
 | 
			
		||||
	'custom_settings_section',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user