Server IP : 85.214.239.14 / Your IP : 3.133.122.95 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/wordpress/wp-content/themes/twentytwentytwo/ |
Upload File : |
<?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' ) ) : /** * Enqueue 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; wp_register_style( 'twentytwentytwo-style', get_template_directory_uri() . '/style.css', array(), $version_string ); // Enqueue theme stylesheet. wp_enqueue_style( 'twentytwentytwo-style' ); } endif; add_action( 'wp_enqueue_scripts', 'twentytwentytwo_styles' ); // Add block patterns require get_template_directory() . '/inc/block-patterns.php';