themes-wordpress/eventual/functions.php
Sarah Norris bbe3a57746
Eventual: Add theme (#7308)
* Initial commit

* Tidy up readme, style.css and theme.json

* Add font credits

* Add image credits

* Remove gif

* Remove ids and refs

* Fix copyright info

* Compress images

* Patternise footers

* Translate Designed with WordPress strings

* Remove sample page template

* Remove unused colours
2023-11-07 16:14:11 +00:00

60 lines
1.1 KiB
PHP

<?php
/**
* Eventual functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Eventual
* @since Eventual 1.0
*/
if ( ! function_exists( 'eventual_support' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Eventual 1.0
*
* @return void
*/
function eventual_support() {
// Enqueue editor styles.
add_editor_style( 'style.css' );
// Make theme available for translation.
load_theme_textdomain( 'eventual' );
}
endif;
add_action( 'after_setup_theme', 'eventual_support' );
if ( ! function_exists( 'eventual_styles' ) ) :
/**
* Enqueue styles.
*
* @since Eventual 1.0
*
* @return void
*/
function eventual_styles() {
// Register theme stylesheet.
wp_register_style(
'eventual-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);
// Enqueue theme stylesheet.
wp_enqueue_style( 'eventual-style' );
}
endif;
add_action( 'wp_enqueue_scripts', 'eventual_styles' );