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 Settings Custom admin page for configuring colours, fonts,
* Theme Settings - Custom admin page for configuring colours, fonts,
* spacing, and border-radius design tokens.
*
* Appearance → Theme Design Settings
@@ -63,7 +63,7 @@ add_action( 'admin_init', function () {
$defaults = oribi_get_theme_defaults();
// Determine action save or reset.
// Determine action - save or reset.
$action = isset( $_POST['oribi_action'] ) ? sanitize_text_field( wp_unslash( $_POST['oribi_action'] ) ) : 'save';
if ( 'reset' === $action ) {
@@ -314,7 +314,7 @@ function oribi_render_settings_page() {
</th>
<td>
<select id="oribi_font_heading" name="oribi_font_heading" class="oribi-font-select">
<option value=""><?php esc_html_e( ' Same as body font ', 'ots-theme' ); ?></option>
<option value=""><?php esc_html_e( '- Same as body font -', 'ots-theme' ); ?></option>
<?php foreach ( $fonts as $f ) : ?>
<option
value="<?php echo esc_attr( $f['slug'] ); ?>"
@@ -631,31 +631,31 @@ document.addEventListener('DOMContentLoaded', function() {
var heroText = document.getElementById('preview-hero-text');
if (hero) {
hero.style.backgroundColor = get('oribi_color_dark') || '#0D1321';
hero.style.backgroundColor = get('oribi_color_dark') || '#111111';
if (heroTitle) heroTitle.style.color = '#fff';
if (heroText) heroText.style.color = 'rgba(255,255,255,.8)';
}
if (btnP) {
btnP.style.backgroundColor = get('oribi_color_primary') || '#D83302';
btnP.style.backgroundColor = get('oribi_color_primary') || '#004225';
btnP.style.borderRadius = (get('oribi_radius_sm') || '6') + 'px';
}
if (btnA) {
btnA.style.backgroundColor = get('oribi_color_accent') || '#00757c';
btnA.style.backgroundColor = get('oribi_color_accent') || '#4CAF50';
btnA.style.borderRadius = (get('oribi_radius_sm') || '6') + 'px';
}
if (section) {
section.style.backgroundColor = get('oribi_color_bg_alt') || '#FFF8F5';
section.style.backgroundColor = get('oribi_color_bg_alt') || '#F5F5F5';
}
if (card) {
card.style.backgroundColor = get('oribi_color_bg') || '#fff';
card.style.borderColor = get('oribi_color_border') || '#E2E8F0';
card.style.borderRadius = (get('oribi_radius_md') || '12') + 'px';
card.style.borderColor = get('oribi_color_border') || '#E0E0E0';
card.style.borderRadius = (get('oribi_radius_md') || '10') + 'px';
var h4 = card.querySelector('h4');
if (h4) h4.style.color = get('oribi_color_dark') || '#0D1321';
if (h4) h4.style.color = get('oribi_color_dark') || '#111111';
var p = card.querySelector('p');
if (p) p.style.color = get('oribi_color_text') || '#2D3748';
if (p) p.style.color = get('oribi_color_text') || '#333333';
var sm = card.querySelector('small');
if (sm) sm.style.color = get('oribi_color_text_muted') || '#718096';
if (sm) sm.style.color = get('oribi_color_text_muted') || '#666666';
}
// Radius previews.