f2d6a5f7a6
* Add Lettre * Move patterns out of inc * Remove unused font face * Remove index.php * Remove alignment CSS * Update newsletter bold * Update hidden subscription form * Update about single * Update categories * Update about multiple * Update hidden 404 * Add missing echos * Update hidden footer * Update patterns * Update remaining patterns * Remove image ids * Add footer to 404 template * Use global padding * Fix typo! * Update all subscribe block markup * Remove blank template * Remove reference to .com * Move CSS to theme.json * Add Newsreader font * Manual version bump * Remove page title * Add temp fix for Jetpack issue * Update min version * Remove archive search content * Add search template * Remove content from search block * Remove buttonText attribute * Fix media and text pattern * Remove link hover CSS * Fix button padding * Remove Jetpack CSS fix * Add Jetpack fix back Needed until Jetpack 11.7 is released * Update opacity GB issue link * Add container element to index; remove search template * Enable root padding * Remove top and bottom global padding * Add core/button styles back * Add load_theme_textdomain * Change tested up to versions to 6.1 * Exclude editor from Jetpack fix The fix doesn't need to be applied in the editor, only on the front end * Remove stable tag * Update readme and style.css * Fix echo typos * Version bump
64 lines
1.1 KiB
PHP
64 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Lettre functions and definitions
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
|
*
|
|
* @package Lettre
|
|
* @since Lettre 1.0
|
|
*/
|
|
|
|
|
|
if ( ! function_exists( 'lettre_support' ) ) :
|
|
|
|
/**
|
|
* Sets up theme defaults and registers support for various WordPress features.
|
|
*
|
|
* @since Lettre 1.0
|
|
*
|
|
* @return void
|
|
*/
|
|
function lettre_support() {
|
|
|
|
// Make theme available for translation.
|
|
load_theme_textdomain( 'lettre' );
|
|
|
|
// 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', 'lettre_support' );
|
|
|
|
if ( ! function_exists( 'lettre_styles' ) ) :
|
|
|
|
/**
|
|
* Enqueue styles.
|
|
*
|
|
* @since Lettre 1.0
|
|
*
|
|
* @return void
|
|
*/
|
|
function lettre_styles() {
|
|
|
|
// Register theme stylesheet.
|
|
wp_register_style(
|
|
'lettre-style',
|
|
get_template_directory_uri() . '/style.css',
|
|
array(),
|
|
wp_get_theme()->get( 'Version' )
|
|
);
|
|
|
|
// Enqueue theme stylesheet.
|
|
wp_enqueue_style( 'lettre-style' );
|
|
|
|
}
|
|
|
|
endif;
|
|
|
|
add_action( 'wp_enqueue_scripts', 'lettre_styles' );
|