ADD Introducing the component
This commit is contained in:
parent
b494233d77
commit
c6f5851014
29
template-parts/page-header.php
Normal file
29
template-parts/page-header.php
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$title = $args['title'];
|
||||||
|
$subtitle = $args['subtitle'];
|
||||||
|
$description = $args['description'];
|
||||||
|
$cover = $args['cover'];
|
||||||
|
?>
|
||||||
|
|
||||||
|
<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; ?>
|
||||||
|
</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