🔵 other: Alignment fix
This commit is contained in:
@@ -50,49 +50,50 @@ if ( $vidBlock && strpos( $vidBlock, '<iframe' ) !== false ) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content-wrapper text-balance <?php echo esc_attr( $contentClass ); ?>">
|
<div class="content-wrapper text-balance <?php echo esc_attr( $contentClass ); ?>">
|
||||||
<?php if ( ! empty( $heading ) ) : ?>
|
<?php if ( ! empty( $heading ) ) : ?>
|
||||||
<h2 class=""><?php echo esc_html( $heading ); ?></h2>
|
<h2 class=""><?php echo esc_html( $heading ); ?></h2>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! empty( $subHeading ) ) : ?>
|
<?php if ( ! empty( $subHead ) ) : ?>
|
||||||
<h3 class=""><?php echo esc_html( $subHeading ); ?></h3>
|
<h3 class=""><?php echo esc_html( $subHead ); ?></h3>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! empty( $content ) ) : ?>
|
<?php if ( ! empty( $content ) ) : ?>
|
||||||
<div><?php echo wp_kses_post( $content ); ?></div>
|
<div><?php echo wp_kses_post( $content ); ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! empty( $ctas ) ) : ?>
|
<?php if ( ! empty( $ctas ) ) : ?>
|
||||||
<div class="reset flex flex-wrap justify-center lg:justify-start gap-6 mt-8">
|
<div class="reset flex flex-wrap justify-center lg:justify-start gap-6 mt-8">
|
||||||
<?php foreach ( $ctas as $cta ) : ?>
|
<?php
|
||||||
<?php
|
foreach ( $ctas as $cta ) :
|
||||||
$ctaLink = $cta['link'];
|
$ctaLink = $cta['link'];
|
||||||
$ctaUrl = $ctaLink['url'] ?? '#';
|
$ctaUrl = $ctaLink['url'] ?? '#';
|
||||||
$ctaTarget = $ctaLink['target'] ?? '_self';
|
$ctaTarget = $ctaLink['target'] ?? '_self';
|
||||||
$ctaTitle = $ctaLink['title'] ?? '';
|
$ctaTitle = $ctaLink['title'] ?? '';
|
||||||
$ctaColor = $cta['color'] ?? '';
|
$ctaColor = $cta['color'] ?? '';
|
||||||
$ctaVariant = $cta['variant'] ?? '';
|
$ctaVariant = $cta['variant'] ?? '';
|
||||||
$ctaSize = $cta['size'] ?? '';
|
$ctaSize = $cta['size'] ?? '';
|
||||||
$ctaWidth = $cta['width'] ?? '';
|
$ctaWidth = $cta['width'] ?? '';
|
||||||
|
|
||||||
// Handle admin preview
|
// Handle admin preview
|
||||||
if ( is_admin() && $ctaURL ) {
|
if ( is_admin() && $ctaURL ) {
|
||||||
$ctaURL = '#';
|
$ctaURL = '#';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<x-button
|
|
||||||
btnclasses="button text-center"
|
<x-button
|
||||||
element="a"
|
btnclasses="button text-center"
|
||||||
url="<?php echo esc_url( $ctaURL ); ?>"
|
element="a"
|
||||||
target="<?php echo esc_attr( $ctaTarget ); ?>"
|
url="<?php echo esc_url( $ctaURL ); ?>"
|
||||||
title="<?php echo esc_attr( $ctaTitle ); ?>"
|
target="<?php echo esc_attr( $ctaTarget ); ?>"
|
||||||
color="<?php echo esc_attr( $ctaColor ); ?>"
|
title="<?php echo esc_attr( $ctaTitle ); ?>"
|
||||||
variant="<?php echo esc_attr( $ctaVariant ); ?>"
|
color="<?php echo esc_attr( $ctaColor ); ?>"
|
||||||
size="<?php echo esc_attr( $ctaSize ); ?>"
|
variant="<?php echo esc_attr( $ctaVariant ); ?>"
|
||||||
width="<?php echo esc_attr( $ctaWidth ); ?>"
|
size="<?php echo esc_attr( $ctaSize ); ?>"
|
||||||
></x-button>
|
width="<?php echo esc_attr( $ctaWidth ); ?>"
|
||||||
<?php endforeach; ?>
|
></x-button>
|
||||||
</div>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user