FEATURE Introducing this component variation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d607af7801
commit
641ac8e1ad
18
template-components/artisans/heading-box--artisan.php
Normal file
18
template-components/artisans/heading-box--artisan.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
$title = $args['title'];
|
||||
$description = $args['description'];
|
||||
$pageIcon = $args['pageIcon'] ?? null;
|
||||
$ctaSecondary = $args['ctaSecondary'] ?? false;
|
||||
|
||||
?>
|
||||
|
||||
<div class="heading-box heading-box--artisan">
|
||||
<?php if ($pageIcon) : ?>
|
||||
<img class="heading-box--classic__page-icon" src="<?php echo $pageIcon['url'] ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
<p class="heading-box__description heading-box--classic__description"> <?php echo $description ?></p>
|
||||
<h1 class="heading-box__subtitle heading-box--classic__subtitle"><?php echo $title ?></h1>
|
||||
<?php if ($ctaSecondary) : ?>
|
||||
<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