Initial commit

This commit is contained in:
2026-01-15 12:23:11 +01:00
commit 92fc092460
52 changed files with 2283 additions and 0 deletions

39
inc/classes/Setup.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
/**
* Klasa Setup
*
* @link https://krzysztof-turek.com
*
* @package tylkofotografia.pl
* @version 0.2
*/
class Setup {
use Singleton;
function __construct() {
$this->setupTheme();
}
protected function setupHooks() {
add_action( 'after_setup_theme', [ $this, 'setupTheme' ] );
}
public function setupTheme() {
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support(
'html5',
[
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'script',
'style',
]
);
add_theme_support( 'custom-header' );
}
}