get_demo_pages(); if ( ! empty( $pages ) ) { $theme_slug = sanitize_title_with_dashes( $this->get_theme_title() ); if ( ! get_option( 'blockstrap_demo_pages_installed_' . $theme_slug ) ) { foreach ( $pages as $page ) { if(!$this->demo_page_exists( $page['slug'] )){ $page_id = $this->add_demo_page( $page ); } } update_option( 'blockstrap_demo_pages_installed_' . $theme_slug, true ); } } } /** * Load AUI on our settings page. * * @param $aui_screens * * @return mixed */ public function aui_screen_ids( $aui_screens ) { $aui_screens[] = 'appearance_page_blockstrap'; return $aui_screens; } /** * Register the menu item. * @return void */ public function register_menu_page() { add_submenu_page( 'themes.php', __( 'BlockStrap Settings', 'blockstrap' ), __( 'Theme Setup', 'blockstrap' ), 'manage_options', 'blockstrap', array( $this, 'output_settings_page' ), 60 ); } /** * Output the settings page HTML. * * @return void */ public function output_settings_page() { ?>