/**
  * Initializes plugin variables and sets up WordPress hooks/actions.
  *
  * @return void
  */
 public function __construct()
 {
     $this->paths['pluginPath'] = trailingslashit(dirname(dirname(__FILE__)));
     $this->paths['pluginDir'] = trailingslashit(basename($this->paths['pluginPath']));
     $this->paths['pluginUrl'] = apply_filters('avia_builder_plugins_url', plugins_url() . '/' . $this->paths['pluginDir']);
     $this->paths['assetsURL'] = trailingslashit($this->paths['pluginUrl']) . 'assets/';
     $this->paths['imagesURL'] = trailingslashit($this->paths['pluginUrl']) . 'images/';
     $this->paths['configPath'] = apply_filters('avia_builder_config_path', $this->paths['pluginPath'] . 'config/');
     AviaBuilder::$path = $this->paths;
     add_action('load-post.php', array(&$this, 'admin_init'), 5);
     add_action('load-post-new.php', array(&$this, 'admin_init'), 5);
     add_action('init', array(&$this, 'loadLibraries'), 5);
     add_action('init', array(&$this, 'init'), 10);
 }
 /**
  * Initializes plugin variables and sets up WordPress hooks/actions.
  *
  * @return void
  */
 public function __construct()
 {
     $this->paths['pluginPath'] = trailingslashit(dirname(dirname(__FILE__)));
     $this->paths['pluginDir'] = trailingslashit(basename($this->paths['pluginPath']));
     $this->paths['pluginUrl'] = apply_filters('avia_builder_plugins_url', plugins_url() . '/' . $this->paths['pluginDir']);
     $this->paths['assetsURL'] = trailingslashit($this->paths['pluginUrl']) . 'assets/';
     $this->paths['assetsPath'] = trailingslashit($this->paths['pluginPath']) . 'assets/';
     $this->paths['imagesURL'] = trailingslashit($this->paths['pluginUrl']) . 'images/';
     $this->paths['configPath'] = apply_filters('avia_builder_config_path', $this->paths['pluginPath'] . 'config/');
     AviaBuilder::$path = $this->paths;
     AviaBuilder::$default_iconfont = apply_filters('avf_default_iconfont', array('entypo-fontello' => array('append' => '?v=3', 'include' => $this->paths['assetsPath'] . 'fonts', 'folder' => $this->paths['assetsURL'] . 'fonts', 'config' => 'charmap.php', 'compat' => 'charmap-compat.php', 'full_path' => 'true')));
     add_action('load-post.php', array(&$this, 'admin_init'), 5);
     add_action('load-post-new.php', array(&$this, 'admin_init'), 5);
     add_action('init', array(&$this, 'loadLibraries'), 5);
     add_action('init', array(&$this, 'init'), 10);
     //restore meta information if user restores a revision
     add_action('wp_restore_post_revision', array(&$this, 'avia_builder_restore_revision'), 10, 2);
 }