Refactor theme comments and descriptions to use a consistent hyphen format instead of an em dash. Update color palette values in theme settings and JSON configuration for improved aesthetics. Enhance contact section icons with Font Awesome for better visual representation. Add GitHub Copilot and contributor instructions for improved collaboration and development practices.

This commit is contained in:
Matt Batchelder
2026-02-20 22:06:53 -05:00
parent 19ee98c68d
commit 025df5fd24
24 changed files with 726 additions and 324 deletions

View File

@@ -1,6 +1,6 @@
<?php
/**
* Theme Generator Builds and caches a CSS file from saved design tokens.
* Theme Generator - Builds and caches a CSS file from saved design tokens.
*
* Reads theme-mods written by the admin settings page and produces a
* static CSS file in the uploads directory. The file is enqueued after
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* Return the absolute filesystem path of the generated CSS file.
*
* Multi-site aware each site gets its own file.
* Multi-site aware - each site gets its own file.
*
* @return string
*/
@@ -38,10 +38,10 @@ function oribi_generated_css_url() {
}
/**
* Helper: convert a hex colour like #D83302 to its "r,g,b" string.
* Helper: convert a hex colour like #004225 to its "r,g,b" string.
*
* @param string $hex Hex colour with or without leading #.
* @return string e.g. "216,51,2"
* @return string e.g. "0,66,37"
*/
function oribi_hex_to_rgb( $hex ) {
$hex = ltrim( $hex, '#' );
@@ -124,7 +124,7 @@ function oribi_build_css() {
// Build CSS.
$css = <<<CSS
/* ================================================================
OTS Theme Generated Theme Overrides
OTS Theme - Generated Theme Overrides
Generated: %s
================================================================ */