🐞 fix: Remove unneeded else
Sync TODOs with Issues / sync_todos (push) Successful in 6s

This commit is contained in:
Keith Solomon
2026-06-14 16:44:21 -05:00
parent 7c3c95efaf
commit ffaecf2874
+3 -5
View File
@@ -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 } else { ?> <?php if ( $index !== 0 ) { ?>
color="primary" variant="outline" variant="outline"
<?php } ?> <?php } ?>
width="small"
></x-button> ></x-button>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>