FEATURE introducing component
This commit is contained in:
parent
3100c9623e
commit
f0dc1106ef
8
template-parts/components/cta--go.php
Normal file
8
template-parts/components/cta--go.php
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
$url = $args['url'] ?? '#';
|
||||||
|
$alt = $args['alt'] ?? 'Lire la suite';
|
||||||
|
$target = $args['target'] ?? '_self';
|
||||||
|
?>
|
||||||
|
<a href="<?php echo $url; ?>" class="cta cta--go cta--primary" target="<?php echo $target; ?>">
|
||||||
|
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/carhop-fleche-full.svg" alt="<?php echo $alt; ?>">
|
||||||
|
</a>
|
||||||
Loading…
Reference in New Issue
Block a user