__('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 = [ 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ]; register_sidebar([ 'name' => __('Primary', 'sage'), 'id' => 'sidebar-primary' ] + $config); register_sidebar([ 'name' => __('Footer', 'sage'), 'id' => 'sidebar-footer' ] + $config); });