2022-04-26 15:56:21 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2022-07-12 13:53:24 +00:00
|
|
|
* Vivre functions and definitions
|
2022-04-26 15:56:21 +00:00
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
|
|
|
*
|
2022-07-12 13:53:24 +00:00
|
|
|
* @package Vivre
|
|
|
|
* @since Vivre 1.0
|
2022-04-26 15:56:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2022-07-12 13:53:24 +00:00
|
|
|
if ( ! function_exists( 'vivre_support' ) ) :
|
2022-04-26 15:56:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets up theme defaults and registers support for various WordPress features.
|
|
|
|
*
|
2022-07-12 13:53:24 +00:00
|
|
|
* @since Vivre 1.0
|
2022-04-26 15:56:21 +00:00
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2022-07-12 13:53:24 +00:00
|
|
|
function vivre_support() {
|
2022-10-28 15:43:41 +00:00
|
|
|
// Make theme available for translation.
|
|
|
|
load_theme_textdomain( 'vivre' );
|
2022-04-26 15:56:21 +00:00
|
|
|
|
|
|
|
// Enqueue editor styles.
|
|
|
|
add_editor_style( 'style.css' );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
endif;
|
|
|
|
|
2022-07-12 13:53:24 +00:00
|
|
|
add_action( 'after_setup_theme', 'vivre_support' );
|
2022-04-26 15:56:21 +00:00
|
|
|
|
2022-07-12 13:53:24 +00:00
|
|
|
if ( ! function_exists( 'vivre_styles' ) ) :
|
2022-04-26 15:56:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enqueue styles.
|
|
|
|
*
|
2022-07-12 13:53:24 +00:00
|
|
|
* @since Vivre 1.0
|
2022-04-26 15:56:21 +00:00
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2022-07-12 13:53:24 +00:00
|
|
|
function vivre_styles() {
|
2022-04-26 15:56:21 +00:00
|
|
|
|
|
|
|
// Register theme stylesheet.
|
|
|
|
wp_register_style(
|
2022-07-12 13:53:24 +00:00
|
|
|
'vivre-style',
|
2022-04-26 15:56:21 +00:00
|
|
|
get_template_directory_uri() . '/style.css',
|
|
|
|
array(),
|
|
|
|
wp_get_theme()->get( 'Version' )
|
|
|
|
);
|
|
|
|
|
|
|
|
// Enqueue theme stylesheet.
|
2022-07-12 13:53:24 +00:00
|
|
|
wp_enqueue_style( 'vivre-style' );
|
2022-04-26 15:56:21 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
endif;
|
|
|
|
|
2022-07-12 13:53:24 +00:00
|
|
|
add_action( 'wp_enqueue_scripts', 'vivre_styles' );
|