feature: Initial commit
Sync TODOs with Issues / sync_todos (push) Successful in 19s

This commit is contained in:
Keith Solomon
2026-05-02 10:38:21 -05:00
parent a21ad94189
commit d7e721f323
44 changed files with 102 additions and 102 deletions
+10 -10
View File
@@ -1,12 +1,12 @@
<?php
/**
* BasicWP Theme Enqueue Class
* CWC Theme Enqueue Class
*
* @package BasicWP
* @package CWC
* @since 1.0.0
*/
namespace BasicWP;
namespace CWC;
/**
* Class Enqueue
@@ -39,7 +39,7 @@ class Enqueue {
$css_path = '/static/dist/theme.css';
if ( file_exists( $theme_dir . $css_path ) ) {
$version = filemtime( $theme_dir . $css_path );
wp_enqueue_style( 'basicwp-theme', $theme_uri . $css_path, array(), $version );
wp_enqueue_style( 'cwc-theme', $theme_uri . $css_path, array(), $version );
}
$font_ver = gmdate( 'U' );
@@ -53,8 +53,8 @@ class Enqueue {
if ( file_exists( $theme_dir . $js_path ) ) {
$version = filemtime( $theme_dir . $js_path );
wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts.
wp_enqueue_script_module( 'basicwp-theme', $theme_uri . $js_path, array(), $version );
wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-theme' ), $version );
wp_enqueue_script_module( 'cwc-theme', $theme_uri . $js_path, array(), $version );
wp_enqueue_script_module( 'cwc-button', $theme_uri . '/static/js/components/button.js', array( 'cwc-theme' ), $version );
}
}
@@ -74,7 +74,7 @@ class Enqueue {
$admin_css_path = '/styles/backend/admin.css';
if ( file_exists( $theme_dir . $admin_css_path ) ) {
$version = filemtime( $theme_dir . $admin_css_path );
wp_enqueue_style( 'basicwp-admin', $theme_uri . $admin_css_path, array(), $version );
wp_enqueue_style( 'cwc-admin', $theme_uri . $admin_css_path, array(), $version );
}
/**
@@ -84,8 +84,8 @@ class Enqueue {
if ( file_exists( $theme_dir . $admin_js_path ) ) {
$version = filemtime( $theme_dir . $admin_js_path );
wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts.
wp_enqueue_script_module( 'basicwp-admin', $theme_uri . $admin_js_path, array(), $version );
wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-admin' ), $version );
wp_enqueue_script_module( 'cwc-admin', $theme_uri . $admin_js_path, array(), $version );
wp_enqueue_script_module( 'cwc-button', $theme_uri . '/static/js/components/button.js', array( 'cwc-admin' ), $version );
}
}
@@ -103,7 +103,7 @@ class Enqueue {
if ( file_exists( $theme_dir . $editor_css_path ) ) {
$version = filemtime( $theme_dir . $editor_css_path );
wp_enqueue_style( 'basicwp-editor', $theme_uri . $editor_css_path, array(), $version );
wp_enqueue_style( 'cwc-editor', $theme_uri . $editor_css_path, array(), $version );
}
}
}