feat: add editorial query blocks
This commit is contained in:
24 files changed
+1421
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Subscribe CTA block render.
|
||||
*
|
||||
* @package CHRNX
|
||||
*/
|
||||
|
||||
$chrnx_url = chrnx_get_subscribe_url();
|
||||
if ( '' === $chrnx_url ) {
|
||||
return;
|
||||
}
|
||||
$chrnx_heading = chrnx_get_heading_level( $attributes['headingLevel'] ?? 2, 2 );
|
||||
?>
|
||||
<section <?php echo get_block_wrapper_attributes( array( 'class' => 'chrnx-subscribe-cta' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<h<?php echo esc_attr( $chrnx_heading ); ?> class="chrnx-subscribe-cta__title"><?php echo esc_html__( 'Stay in the loop', 'chrnx' ); ?></h<?php echo esc_attr( $chrnx_heading ); ?>>
|
||||
<p><?php echo esc_html__( 'Get new stories and episodes when they are published.', 'chrnx' ); ?></p>
|
||||
<a class="chrnx-subscribe-cta__link" href="<?php echo esc_url( $chrnx_url ); ?>"><?php echo esc_html__( 'Subscribe', 'chrnx' ); ?></a>
|
||||
</section>
|
||||
Reference in new issue
Block a user