bbe3a57746
* 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
60 lines
1.1 KiB
PHP
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' );
|