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
+18
View File
@@ -0,0 +1,18 @@
<?php
defined('ABSPATH') || exit;
/**
* Expects $args = ['icon' => dashicon slug or emoji, 'title' => string, 'desc' => string]
* Called via get_template_part('template-parts/content-feature-card', null, $args).
*/
$icon = $args['icon'] ?? '';
$title = $args['title'] ?? '';
$desc = $args['desc'] ?? '';
?>
<div class="feature-card">
<?php if ($icon) : ?>
<div class="feature-icon" aria-hidden="true"><?php echo esc_html($icon); ?></div>
<?php endif; ?>
<h3><?php echo esc_html($title); ?></h3>
<p><?php echo esc_html($desc); ?></p>
</div>
+16
View File
@@ -0,0 +1,16 @@
<?php
defined('ABSPATH') || exit;
?>
<article <?php post_class('post-card'); ?>>
<?php if (has_post_thumbnail()) : ?>
<a class="post-card-thumb" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('medium'); ?>
</a>
<?php endif; ?>
<div class="post-card-body">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="post-card-date"><?php echo esc_html(get_the_date()); ?></p>
<p class="post-card-excerpt"><?php aurora_card_excerpt(); ?></p>
<a class="post-card-link" href="<?php the_permalink(); ?>"><?php esc_html_e('Read more', 'aurora-admin-theme'); ?> &rarr;</a>
</div>
</article>
+20
View File
@@ -0,0 +1,20 @@
<?php
defined('ABSPATH') || exit;
?>
<section class="cta-band">
<div class="container cta-band-inner">
<h2><?php esc_html_e('Get Aurora Admin — free', 'aurora-admin-theme'); ?></h2>
<p><?php esc_html_e('No license key, no locked features, no upsell. Ever.', 'aurora-admin-theme'); ?></p>
<?php
/**
* TODO: once the plugin is live on WordPress.org, switch this to
* https://wordpress.org/plugins/aurora-admin/ — for now it points at
* the GitHub Releases page, which is the only place it's actually
* downloadable today.
*/
?>
<a class="btn btn-primary" href="https://github.com/WPAuroraAdmin/aurora-admin/releases/latest" target="_blank" rel="noopener">
<?php esc_html_e('Download the latest release', 'aurora-admin-theme'); ?>
</a>
</div>
</section>
+31
View File
@@ -0,0 +1,31 @@
<?php
defined('ABSPATH') || exit;
?>
<nav class="site-nav" id="site-nav-menu" aria-label="<?php esc_attr_e('Primary', 'aurora-admin-theme'); ?>">
<?php
if (has_nav_menu('primary')) {
wp_nav_menu([
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'nav-menu',
'fallback_cb' => false,
]);
} else {
// No menu assigned yet in Appearance > Menus — fall back to the three
// pages this theme expects, so the site is never left with an empty nav.
?>
<ul class="nav-menu">
<li><a href="<?php echo esc_url(home_url('/')); ?>"><?php esc_html_e('Home', 'aurora-admin-theme'); ?></a></li>
<li><a href="<?php echo esc_url(home_url('/features/')); ?>"><?php esc_html_e('Features', 'aurora-admin-theme'); ?></a></li>
<li><a href="<?php echo esc_url(home_url('/blog/')); ?>"><?php esc_html_e('Blog', 'aurora-admin-theme'); ?></a></li>
</ul>
<?php
}
?>
</nav>
<button type="button" class="nav-toggle" aria-expanded="false" aria-controls="site-nav-menu">
<span class="sr-only"><?php esc_html_e('Menu', 'aurora-admin-theme'); ?></span>
<span class="nav-toggle-bar"></span>
<span class="nav-toggle-bar"></span>
<span class="nav-toggle-bar"></span>
</button>