__('Primary Navigation', 'sage') ]); /** * Enable post thumbnails * @link http://codex.wordpress.org/Post_Thumbnails * @link http://codex.wordpress.org/Function_Reference/set_post_thumbnail_size * @link http://codex.wordpress.org/Function_Reference/add_image_size */ add_theme_support('post-thumbnails'); /** * Enable post formats * @link http://codex.wordpress.org/Post_Formats */ add_theme_support('post-formats', ['aside', 'gallery', 'link', 'image', 'quote', 'video', 'audio']); /** * Enable HTML5 markup support * @link http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5 */ add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']); /** * Use main stylesheet for visual editor * @see /assets/styles/layouts/_tinymce.scss */ add_editor_style(asset_path('styles/main.css')); }); /** * Register sidebars */ add_action('widgets_init', function () { $config = function ($name, $id = '') { return [ 'name' => __($name, 'sage'), 'id' => 'sidebar-' . $id ?: sanitize_title($name), 'before_widget' => '', 'before_title' => '