tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'main-menu' => esc_html__( 'Main Menu', 'ailabflow' ), 'footer-menu' => esc_html__( 'Footer Menu', 'ailabflow' ), ) ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 39, 'width' => 224, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); /* * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery', 'audio', 'video', 'quote', 'link', 'status', 'chat' ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); } endif; add_action( 'after_setup_theme', 'ailabflow_setup' ); /* * Prefdefine Global variable */ global $ailabflow_globals; $ailabflow_globals = array( 'theme_options_slug' => 'ailabflow_options', 'theme_options_name' => 'ailabflow_options', ); add_filter('widget_text', 'do_shortcode'); /************************* Custom Files ************************/ // Load theme functions require get_template_directory() . '/inc/tools.php'; // filters and action hooks require get_template_directory() . '/inc/hooks.php'; // Enqueue styles and scripts require get_template_directory() . '/inc/ailabflow-scripts-styles.php'; // theme widgets require get_template_directory() . '/inc/widgets.php'; // theme options require get_template_directory() . '/inc/redux-options/redux-config.php'; // bundled plugins require get_template_directory() .'/inc/tgm/tgm.php'; // about theme require get_template_directory() . '/inc/getting-started.php'; // demo data require get_template_directory() . '/inc/ailabflow-config.php';