passing custom class to cta
This commit is contained in:
parent
40b6ea19e1
commit
62796a3617
|
|
@ -3,15 +3,16 @@ $title = $args['title'];
|
|||
$description = $args['description'];
|
||||
$pageIcon = $args['pageIcon'] ?? null;
|
||||
$ctaSecondary = $args['ctaSecondary'] ?? false;
|
||||
|
||||
?>
|
||||
|
||||
<div class="heading-box heading-box--classic ">
|
||||
<div class="heading-box heading-box--classic">
|
||||
<?php if ($pageIcon) : ?>
|
||||
<img class="heading-box--classic__page-icon" src="<?php echo $pageIcon['url'] ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
<h1 class="heading-box__subtitle heading-box--classic__subtitle"><?php echo $title ?></h1>
|
||||
<p class="heading-box__description heading-box--classic__description"> <?php echo $description ?></p>
|
||||
<?php if ($ctaSecondary) : ?>
|
||||
<a class="cta cta--secondary cta--button cta--centered" href="<?php echo $ctaSecondary['url'] ?>" target="<?php echo $ctaSecondary['target'] ?>"><?php echo $ctaSecondary['title'] ?></a>
|
||||
<a class="cta cta--secondary cta--button cta--centered <?php echo $ctaSecondary['custom-class'] ?>" href="<?php echo $ctaSecondary['url'] ?>" target="<?php echo $ctaSecondary['target'] ?>"><?php echo $ctaSecondary['title'] ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user