/** * The class constructor */ private function __construct() { // Set Variables self::$framework_dir = get_template_directory_uri() . '/framework'; // Instantiate secondary classes $this->init = new Avada_Init(); $this->admin = new Avada_Admin(); $this->social_icons = new Avada_Social_Icons(); $this->sidebars = new Avada_Sidebars(); $this->portfolio = new Avada_Portfolio(); $this->template = new Avada_Template(); $this->blog = new Avada_Blog(); $this->fonts = new Avada_Fonts(); $this->image = new Avada_Images(); $this->scripts = new Avada_Scripts(); $this->head = new Avada_Head(); $this->dynamic_css = new Avada_Dynamic_CSS(); $this->updater = new Avada_Updater(); $this->upgrade = new Avada_Upgrade(); $this->layout_bbpress = new Avada_Layout_bbPress(); $this->layout = new Avada_Layout(); $this->events_calendar = new Avada_EventsCalendar(); $this->google_map = new Avada_GoogleMap(); add_action('wp', array($this, 'set_page_id')); }