. */ if ( defined( 'ISCVERSION' ) ) { wp_die( 'You can only activate Image Source Control once. Please disable the other version first.' ); } define( 'ISCVERSION', '3.12.0' ); define( 'ISCNAME', 'Image Source Control' ); define( 'ISCDIR', basename( __DIR__ ) ); define( 'ISCPATH', plugin_dir_path( __FILE__ ) ); define( 'ISCBASE', plugin_basename( __FILE__ ) ); // plugin base as used by WordPress to identify it. define( 'ISCBASEURL', plugin_dir_url( __FILE__ ) ); // URL to the plugin directory. // Load the autoloader. require_once ISCPATH . 'includes/class-autoloader.php'; \ISC\Autoloader::get()->initialize(); if ( is_admin() ) { new ISC\Admin(); } elseif ( ! is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { // include frontend functions. new ISC_Public(); require_once ISCPATH . 'includes/functions.php'; } // deprecated. Added here for backward compatibility. Will be removed in future versions. new ISC_Class(); if ( ! class_exists( 'ISC_Pro_Model', false ) && file_exists( ISCPATH . 'pro/isc-pro.php' ) ) { require_once ISCPATH . 'pro/isc-pro.php'; } new ISC_Block_Options();