Scaffold Aurora Admin marketing theme (Home, Features, Blog)

This commit is contained in:
NixReaper
2026-07-26 17:05:06 -05:00
commit e62bfce047
30 changed files with 1036 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
defined('ABSPATH') || exit;
add_action('wp_enqueue_scripts', function () {
$ver = AURORA_THEME_VERSION;
wp_enqueue_style('aurora-theme-style', get_stylesheet_uri(), [], $ver);
wp_enqueue_style('aurora-theme-tokens', AURORA_THEME_URI . '/assets/css/theme.css', ['aurora-theme-style'], $ver);
wp_enqueue_style('aurora-theme-main', AURORA_THEME_URI . '/assets/css/main.css', ['aurora-theme-tokens'], $ver);
wp_enqueue_script('aurora-theme-main', AURORA_THEME_URI . '/assets/js/main.js', [], $ver, true);
});
+29
View File
@@ -0,0 +1,29 @@
<?php
defined('ABSPATH') || exit;
/**
* Renders one FAQ item as a native <details>/<summary> accordion — no JS
* needed for expand/collapse.
*/
function aurora_faq_item($question, $answer_html)
{
?>
<details class="faq-item">
<summary><?php echo esc_html($question); ?></summary>
<div class="faq-answer"><?php echo wp_kses_post($answer_html); ?></div>
</details>
<?php
}
/**
* Short excerpt for blog post cards — respects a manual excerpt if the
* author set one, otherwise trims the_content() to a fixed word count.
*/
function aurora_card_excerpt($word_count = 24)
{
if (has_excerpt()) {
echo esc_html(get_the_excerpt());
return;
}
echo esc_html(wp_trim_words(get_the_content(), $word_count));
}
+24
View File
@@ -0,0 +1,24 @@
<?php
defined('ABSPATH') || exit;
add_action('after_setup_theme', function () {
add_theme_support('title-tag');
add_theme_support('post-thumbnails');
add_theme_support('html5', ['search-form', 'comment-form', 'gallery', 'caption', 'script', 'style']);
add_theme_support('automatic-feed-links');
add_theme_support('custom-logo', [
'height' => 60,
'width' => 240,
'flex-height' => true,
'flex-width' => true,
]);
register_nav_menus([
'primary' => __('Primary Navigation', 'aurora-admin-theme'),
]);
});
// No admin bar on the marketing site — this is a public-facing product site,
// not an app, and the front end should never look like wp-admin leaked
// through.
add_filter('show_admin_bar', '__return_false');