reorg theme
This commit is contained in:
parent
9ddb9f3c60
commit
e63af0b7ce
243 changed files with 10 additions and 11506 deletions
50
library/theme-support.php
Normal file
50
library/theme-support.php
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
/**
|
||||
* Register theme support for languages, menus, post-thumbnails, post-formats etc.
|
||||
*
|
||||
* @package FoundationPress
|
||||
* @since FoundationPress 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'foundationpress_theme_support' ) ) :
|
||||
function foundationpress_theme_support() {
|
||||
// Add language support
|
||||
load_theme_textdomain( 'foundationpress', get_template_directory() . '/languages' );
|
||||
|
||||
// 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',
|
||||
)
|
||||
);
|
||||
|
||||
// Add menu support
|
||||
add_theme_support( 'menus' );
|
||||
|
||||
// Let WordPress manage the document title
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
// Add post thumbnail support: http://codex.wordpress.org/Post_Thumbnails
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
// RSS thingy
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
// Add post formats support: http://codex.wordpress.org/Post_Formats
|
||||
add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat' ) );
|
||||
|
||||
// Additional theme support for woocommerce 3.0.+
|
||||
add_theme_support( 'wc-product-gallery-zoom' );
|
||||
add_theme_support( 'wc-product-gallery-lightbox' );
|
||||
add_theme_support( 'wc-product-gallery-slider' );
|
||||
|
||||
// Add foundation.css as editor style https://codex.wordpress.org/Editor_Style
|
||||
add_editor_style( 'dist/assets/css/' . foundationpress_asset_path( 'app.css' ) );
|
||||
}
|
||||
|
||||
add_action( 'after_setup_theme', 'foundationpress_theme_support' );
|
||||
endif;
|
Loading…
Add table
Add a link
Reference in a new issue