Add page-intro partial for centered narrow intro section
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Page Intro Partial
|
||||||
|
*
|
||||||
|
* Renders the centered narrow intro section beneath the page hero.
|
||||||
|
* Loaded by page.php when the `intro` ACF field is non-empty.
|
||||||
|
*
|
||||||
|
* @package CWC
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace CWC;
|
||||||
|
|
||||||
|
$intro = get_field( 'intro' );
|
||||||
|
|
||||||
|
if ( ! $intro ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<section class="page-intro py-12 lg:py-20 text-center" aria-label="<?php echo esc_attr__( 'Page introduction' ); ?>">
|
||||||
|
<div class="container mx-auto max-w-3xl content-wrapper">
|
||||||
|
<p class="page-intro__text text-lg lg:text-xl leading-relaxed text-dark">
|
||||||
|
<?php echo wp_kses_post( $intro ); ?>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
Reference in New Issue
Block a user