function init() { parent::init(); $this->refDir = $this->dir . '/external/biblefox-ref'; require_once $this->dir . '/bfox_refs_controller.php'; require_once $this->dir . '/bfox_ref_linker.php'; require_once $this->dir . '/bfox_ref_context.php'; require_once $this->dir . '/bfox_ajax_div.php'; require_once $this->refDir . '/biblefox-ref.php'; require_once $this->apiDir . '/bfox_ref-functions.php'; require_once $this->apiDir . '/bfox_ref-template.php'; $this->stackGroup = new BfoxStackGroup(); $this->refs = new BfoxRefsController(); $this->refs->core = $this; // declare the URL to the file that handles the AJAX request (wp-admin/admin-ajax.php) // See: http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ $this->javaScriptVars = array('ajaxurl' => admin_url('admin-ajax.php'), 'refreshAnimationDuration' => 0, 'refreshAnimationOpacity' => 1.0); }
function __construct($core, $slug, $prefix, $version, $buildVersion) { $this->core = $core; parent::__construct($slug, $prefix, $version, $buildVersion); $this->options = new BfoxOptions($prefix); }