HEX
Server: Apache
System: Linux pdx1-shared-a1-31 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: dh_5jabqq (6436002)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/dh_5jabqq/bermudashipwreckarchive.com/wp-content/themes/carnival-lite/functions.php
<?php
/**
 * Carnival Lite functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Carnival Lite
 * @since 1.0
 */

if ( ! function_exists( 'carnival_lite_support' ) ) :

	/**
	 * Sets up theme defaults and registers support for various WordPress features.
	 *
	 * @since 1.0
	 *
	 * @return void
	 */
	function carnival_lite_support() {
	
		/*
		 * Switch default core markup for search form, comment form, and comments
		 * to output valid HTML5.
		 */
		add_theme_support( 'html5', array(
			'comment-form',
			'comment-list',
			'gallery',
			'caption',
		) );

		// 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', 'carnival_lite_support' );

/*-------------------------------------------------------------
 Enqueue Styles
--------------------------------------------------------------*/

if ( ! function_exists( 'carnival_lite_styles' ) ) :	
	function carnival_lite_styles() {
		// Register theme stylesheet.
		wp_enqueue_style('carnival-lite-style', get_stylesheet_uri(), array(), wp_get_theme()->get('version') );
		wp_enqueue_style('carnival-lite-style-blocks', get_template_directory_uri(). '/assets/css/blocks.css');
	}

endif;
add_action( 'wp_enqueue_scripts', 'carnival_lite_styles' );

// Add block patterns
require get_template_directory() . '/inc/block-patterns.php';

/**
 * Customize Pro included.
 */
require_once get_template_directory() . '/customize-pro/class-customize.php';
// Theme info Page
require_once get_template_directory() . '/inc/theme-info.php';

?>