This commit is contained in:
@@ -47,7 +47,7 @@ $wrapper = blockWrapperAttributes( $classes, $is_preview );
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! empty( $ctas ) ) : ?>
|
<?php if ( ! empty( $ctas ) ) : ?>
|
||||||
<div class="reset mt-4 sm:mt-6 flex flex-wrap justify-center lg:justify-start gap-2">
|
<div class="reset mt-4 sm:mt-6 flex flex-wrap justify-center lg:justify-start gap-4">
|
||||||
<?php foreach ( $ctas as $index => $cta ) : ?>
|
<?php foreach ( $ctas as $index => $cta ) : ?>
|
||||||
<?php
|
<?php
|
||||||
$ctaLink = $cta['link'];
|
$ctaLink = $cta['link'];
|
||||||
@@ -66,12 +66,10 @@ $wrapper = blockWrapperAttributes( $classes, $is_preview );
|
|||||||
url="<?php echo esc_url( $ctaURL ); ?>"
|
url="<?php echo esc_url( $ctaURL ); ?>"
|
||||||
target="<?php echo esc_attr( $ctaTarget ); ?>"
|
target="<?php echo esc_attr( $ctaTarget ); ?>"
|
||||||
title="<?php echo esc_attr( $ctaTitle ); ?>"
|
title="<?php echo esc_attr( $ctaTitle ); ?>"
|
||||||
<?php if ( $index === 0 ) { ?>
|
color="primary"
|
||||||
color="primary"
|
<?php if ( $index !== 0 ) { ?>
|
||||||
<?php } else { ?>
|
variant="outline"
|
||||||
color="primary" variant="outline"
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
width="small"
|
|
||||||
></x-button>
|
></x-button>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user