🔵 other: Initial WP conversion from Eleventy
Sync TODOs with Issues / sync_todos (push) Successful in 7s

This commit is contained in:
Keith Solomon
2026-05-25 16:48:48 -05:00
parent 2e5bfaba89
commit dcb38250f8
56 changed files with 965 additions and 318 deletions
+16 -18
View File
@@ -1,8 +1,8 @@
<?php
/**
* Single Pages
* Default page template
*
* @package BasicWP
* @package GoAskAuntie
* @since 1.0.0
*/
@@ -10,32 +10,30 @@ namespace BasicWP;
get_header();
$clsEntry = '';
// Determine classes based on sidebar presence
if ( hasSidebar() ) {
$classes = 'container grid grid-cols-1 lg:grid-cols-4 gap-8 xl:gap-16 my-section mx-auto';
$clsEntry = 'lg:col-span-3';
} else {
$classes = 'container my-section lg:my-0 mx-auto';
// Determine the H1 color from the page template
$h1_color = 'text-navy';
$template = get_page_template_slug();
if ( str_contains( $template, 'cedar-bath' ) || str_contains( $template, 'resources' ) ) {
$h1_color = 'text-purple';
} elseif ( str_contains( $template, 'contact' ) ) {
$h1_color = 'text-red';
}
?>
<article class="<?php echo esc_attr( $classes ); ?>">
<div class="entry-content <?php echo esc_attr( $clsEntry ); ?>">
<section class="w-full pb-24 bg-teal-light relative">
<div class="prose prose-sm md:prose-lg lg:prose-xl max-w-5xl md:mx-6 lg:mx-auto pt-12 lg:pt-32 text-gray relative">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
?>
<h1 class="text-4xl font-bold md:text-6xl lg:text-7xl tracking-wide uppercase <?php echo esc_attr( $h1_color ); ?> mb-16 mx-auto text-left"><?php the_title(); ?></h1>
<?php
the_content();
}
}
?>
</div>
</section>
<?php if ( hasSidebar() ) : ?>
<?php get_sidebar( 'page' ); ?>
<?php endif; ?>
</article>
<?php get_footer(); ?>
<?php get_footer(); ?>