Moving page-header into the carhop theme
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
776d2411cf
commit
fb9aa257d8
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
$title = $args['title'];
|
||||
$subtitle = $args['subtitle'];
|
||||
$description = $args['description'];
|
||||
$cover = $args['cover'];
|
||||
$cta = $args['cta'];
|
||||
?>
|
||||
|
||||
<section class="page-header content-section content-section--full-width">
|
||||
<div class="content-section__inner page-header__inner">
|
||||
<div class="page-header__content">
|
||||
<h1 class="page-header__title title-small "><?php echo $title; ?></h1>
|
||||
<?php if ($subtitle) : ?>
|
||||
<p class="page-header__subtitle subtitle-big"><?php echo $subtitle; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if ($description) : ?>
|
||||
<p class="page-header__description"><?php echo $description; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if ($cta) : ?>
|
||||
<a href="<?php echo $cta['url']; ?>" class="page-header__cta"><?php echo $cta['title']; ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="page-header__image">
|
||||
<?php if ($cover) : ?>
|
||||
<img src="<?php echo $cover['url']; ?>" alt="<?php echo $title; ?>">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user