feat: Initial project

This commit is contained in:
2026-04-27 11:12:16 -04:00
parent bbb5f2a459
commit 2214189c27
11 changed files with 151 additions and 188 deletions

View File

@@ -1,9 +0,0 @@
<?php
// Inject the Umami tracking code into the <head> of the site
// add_action( 'wp_head', 'umami_wp_head' );
function umami_wp_head() {
?>
<script defer src="https://umami.websimple.com/script" data-website-id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"></script>
<?php
}

View File

@@ -0,0 +1,7 @@
<?php
// Core
require_once __DIR__ . '/includes/core/theme-setup.php';
// Vendors
require_once __DIR__ . '/includes/core/vendors/acf.php';

View File

@@ -0,0 +1,22 @@
<?php
// Setup theme
add_action( 'after_setup_theme', 'cascapedia_after_setup_theme' );
function cascapedia_after_setup_theme() {
// Load textdomain
load_theme_textdomain( 'cascapedia', get_theme_file_path( 'languages' ) );
// Theme features
add_theme_support( 'custom-logo' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'title-tag' );
remove_theme_support( 'core-block-patterns' );
}
// Enqueue frontend scripts / styles
add_action( 'wp_enqueue_scripts', 'cascapedia_enqueue_scripts' );
function cascapedia_enqueue_scripts() {
if ( ! bricks_is_builder_main() ) {
wp_enqueue_style( 'cascapedia', get_stylesheet_uri(), array( 'bricks-frontend' ), filemtime( get_stylesheet_directory() . '/style.css' ) );
}
}

View File

@@ -0,0 +1,21 @@
<?php
// Disable ACF / ACFE modules
add_filter( 'acf/settings/enable_post_types', '__return_false' );
add_action( 'acf/init', 'cascapedia_acf_init' );
function cascapedia_acf_init() {
acf_update_setting( 'acfe/modules/block_types', false );
acf_update_setting( 'acfe/modules/categories', false );
acf_update_setting( 'acfe/modules/forms', false );
acf_update_setting( 'acfe/modules/options', false );
acf_update_setting( 'acfe/modules/options_pages', false );
acf_update_setting( 'acfe/modules/post_types', false );
acf_update_setting( 'acfe/modules/taxonomies', false );
acf_update_setting( 'acfe/modules/templates', false );
}
// Set ACFE Flexible Content dynamic preview style
add_filter( 'acfe/flexible/render/style', 'cascapedia_acfe_flexible_render_style' );
function cascapedia_acfe_flexible_render_style() {
return 'editor-style.css';
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,9 @@
/*
Theme Name: Cascapedia St-Jules
Theme URI: https://bricksbuilder.io/
Author: Bricks
Author URI: https://bricksbuilder.io/
Template: bricks-v2
Version: 1.1
Text Domain: cascapedia
*/