Files
Go-Ask-Auntie/page.php
T
Keith Solomon dcb38250f8
Sync TODOs with Issues / sync_todos (push) Successful in 7s
🔵 other: Initial WP conversion from Eleventy
2026-05-25 16:48:48 -05:00

39 lines
943 B
PHP

<?php
/**
* Default page template
*
* @package GoAskAuntie
* @since 1.0.0
*/
namespace BasicWP;
get_header();
// 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';
}
?>
<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 get_footer(); ?>