first commit

This commit is contained in:
2023-09-08 01:45:46 -07:00
commit 8cbf53172b
108 changed files with 29005 additions and 0 deletions

42
inc/core/Header.php Normal file
View File

@ -0,0 +1,42 @@
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
* Header service.
*
* @package PressBook
*/
namespace PressBook;
/**
* Add support for the custom header.
*/
class Header implements Serviceable {
/**
* Register service features.
*/
public function register() {
add_action( 'after_setup_theme', array( $this, 'custom_header_setup' ) );
}
/**
* Set up the WordPress core custom header feature.
*
* @uses pressbook_header_style()
*/
public function custom_header_setup() {
add_theme_support(
'custom-header',
apply_filters(
'pressbook_custom_header_args',
array(
'default-image' => '',
'width' => 1600,
'height' => 250,
'flex-width' => true,
'flex-height' => true,
'header-text' => false,
)
)
);
}
}