public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 private function on_init()
 {
     Types_Upgrade::initialize();
     // Load Twig - this is a bit hacky way to do it, see Types_Twig_Autoloader class for explanation.
     Types_Twig_Autoloader::register();
     // Load menu - won't be loaded in embedded version.
     if (apply_filters('types_register_pages', true)) {
         Types_Admin_Menu::initialize();
     }
     $this->init_page_extensions();
 }