themes-wordpress/bibimbap/functions.php
Madhu Dollu 6f06120250
Add "Bibimbap" Theme (#6753)
* add bibimbap theme

* update patterns with escaped strings

fix pattern issues

* address review comments

* remove foreground color
2023-01-04 13:12:20 +05:30

60 lines
1.1 KiB
PHP

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