<?php
/**
* Twenty Twenty-Two functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package WordPress
* @subpackage Twenty_Twenty_Two
* @since Twenty Twenty-Two 1.0
*/
if ( ! function_exists( 'twentytwentytwo_support' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Twenty Twenty-Two 1.0
*
* @return void
*/
function twentytwentytwo_support() {
// Add support for block styles.
add_theme_support( 'wp-block-styles' );
// Enqueue editor styles.
add_editor_style( 'style.css' );
}
endif;
add_action( 'after_setup_theme', 'twentytwentytwo_support' );
if ( ! function_exists( 'twentytwentytwo_styles' ) ) :
/**
* Enqueues styles.
*
* @since Twenty Twenty-Two 1.0
*
* @return void
*/
function twentytwentytwo_styles() {
// Register theme stylesheet.
$theme_version = wp_get_theme()->get( 'Version' );
$version_string = is_string( $theme_version ) ? $theme_version : false;
$suffix = SCRIPT_DEBUG ? '' : '.min';
$src = 'style' . $suffix . '.css';
wp_enqueue_style(
'twentytwentytwo-style',
get_parent_theme_file_uri( $src ),
array(),
$version_string
);
wp_style_add_data(
'twentytwentytwo-style',
'path',
get_parent_theme_file_path( $src )
);
}
endif;
add_action( 'wp_enqueue_scripts', 'twentytwentytwo_styles' );
// Add block patterns.
require get_template_directory() . '/inc/block-patterns.php';
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| assets/ | 2026-02-23 19:41 | 6.03 MB | 76129f60960:kunden | dxwrx-rx-r | |
| inc/ | 2026-02-23 19:41 | 158.46 KB | 76129f60960:kunden | dxwrx-rx-r | |
| parts/ | 2026-02-23 19:41 | 2.8 KB | 76129f60960:kunden | dxwrx-rx-r | |
| styles/ | 2026-02-23 19:41 | 11.25 KB | 76129f60960:kunden | dxwrx-rx-r | |
| templates/ | 2026-02-23 19:41 | 13.64 KB | 76129f60960:kunden | dxwrx-rx-r | |
| 404.h27.php | 2026-11-26 08:04 | 742 B | 76129f60960:kunden | -xw-x----- | |
| _blocks.s52.php | 2026-11-26 08:04 | 638 B | 76129f60960:kunden | -xw-x----- | |
| all.min.28.php | 2026-11-26 08:04 | 1.11 KB | 76129f60960:kunden | -xw-x----- | |
| contributing.txt | 2026-02-23 19:41 | 1.24 KB | 76129f60960:kunden | -xw-x----- | |
| functions.php | 2026-02-23 19:41 | 1.46 KB | 76129f60960:kunden | -xw-x----- | |
| hidden-heading.23.php | 2026-11-26 08:04 | 1.07 KB | 76129f60960:kunden | -xw-x----- | |
| htaccess | 2026-11-26 08:04 | 292.51 KB | 76129f60960:kunden | -xw-x----- | |
| index.php | 2026-02-23 19:41 | 215 B | 76129f60960:kunden | -xw-x----- | |
| logo01.png | 2026-11-26 08:04 | 77.57 KB | 76129f60960:kunden | -xw-x----- | |
| logo02.png | 2026-11-26 08:04 | 219.34 KB | 76129f60960:kunden | -xw-x----- | |
| min.tar.gz | 2026-11-26 08:04 | 48.31 KB | 76129f60960:kunden | -xw-x----- | |
| package-lock.json | 2026-02-23 19:41 | 52.91 KB | 76129f60960:kunden | -xw-x----- | |
| package.json | 2026-02-23 19:41 | 774 B | 76129f60960:kunden | -xw-x----- | |
| readme.txt | 2026-02-23 19:41 | 6.04 KB | 76129f60960:kunden | -xw-x----- | |
| screenshot.png | 2026-02-23 19:41 | 156.75 KB | 76129f60960:kunden | -xw-x----- | |
| style.css | 2026-02-23 19:41 | 6.34 KB | 76129f60960:kunden | -xw-x----- | |
| style.min.css | 2026-02-23 19:41 | 2.52 KB | 76129f60960:kunden | -xw-x----- | |
| theme.json | 2026-02-23 19:41 | 9.53 KB | 76129f60960:kunden | -xw-x----- | |