ca302c8e2a
* Lynx: Initial commit. * Update the cloud pattern - specify overlay color. * Lynx: Update default button style. * Lunx: Add a Link in Bio pattern with subtle background and related assets. * Lynx: Add a Link in Bio pattern with colorful buttons and associated assets. * Lynx: Add a Link in Bio pattern with media on the right, and associated assets. * Lynx: Add a Link in Bio pattern with background image, and associated assets. * Lynx: Add a Link in Bio pattern with fixed background image, and associated assets. * Lynx: Add a Link in Bio pattern with dark background, and associated assets. * Lynx: Add a Link in Bio pattern with a large heading. * Lynx: Add a Link in Bio pattern with mesh gradient background, and associated assets. * Lynx: Add a Link in Bio pattern split horizontally with image on the bottom, and associated assets. * Lynx: Update link in bio pattern with image on the bottom - remove untranslated text. * Lynx: Add a Link in Bio pattern with content on the left, and associated assets. * Lynx: Add a centred Link in Bio pattern with purple background. * Lynx: Add a Link in Bio pattern with column layout and dark background. * Lynx: Add a Link in Bio pattern with large heading and column layout, and associated assets. * Lynx: Add a Link in Bio pattern with media embed block, and associated assets. * Lynx: Add readme file with all the image sources. * Update lynx/readme.txt Co-authored-by: Jeff Ong <jonger4@gmail.com> * Lynx: Correct file name of the link in bio with audio embed pattern. * Lynx: Remove index.php as it's not needed in a block theme. * Lynx: Remove tech specs, since they are no longer meaningful in the context of block themes. * Lynx: Remove the "Link in Bio with purple background" pattern (for now) because the setup is too complex. * Lynx: Update theme description. Co-authored-by: Jeff Ong <jonger4@gmail.com>
58 lines
952 B
PHP
58 lines
952 B
PHP
<?php
|
|
/**
|
|
* Lynx functions and definitions
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
|
*
|
|
* @package Lynx
|
|
* @since Lynx 1.0
|
|
*/
|
|
|
|
|
|
if ( ! function_exists( 'lynx_support' ) ) :
|
|
|
|
/**
|
|
* Sets up theme defaults and registers support for various WordPress features.
|
|
*
|
|
* @since Lynx 1.0
|
|
*
|
|
* @return void
|
|
*/
|
|
function lynx_support() {
|
|
|
|
// Enqueue editor styles.
|
|
add_editor_style( 'style.css' );
|
|
|
|
}
|
|
|
|
endif;
|
|
|
|
add_action( 'after_setup_theme', 'lynx_support' );
|
|
|
|
if ( ! function_exists( 'lynx_styles' ) ) :
|
|
|
|
/**
|
|
* Enqueue styles.
|
|
*
|
|
* @since Lynx 1.0
|
|
*
|
|
* @return void
|
|
*/
|
|
function lynx_styles() {
|
|
|
|
// Register theme stylesheet.
|
|
wp_register_style(
|
|
'lynx-style',
|
|
get_template_directory_uri() . '/style.css',
|
|
array(),
|
|
wp_get_theme()->get( 'Version' )
|
|
);
|
|
|
|
// Enqueue theme stylesheet.
|
|
wp_enqueue_style( 'lynx-style' );
|
|
|
|
}
|
|
|
|
endif;
|
|
|
|
add_action( 'wp_enqueue_scripts', 'lynx_styles' );
|