fixing php warning
This commit is contained in:
parent
d49997d4d9
commit
d0d0759039
|
|
@ -1,13 +1,10 @@
|
|||
<?php
|
||||
|
||||
$title = $args['title'];
|
||||
$description = $args['description'];
|
||||
$title = $args['title'] ?? null;
|
||||
$description = $args['description'] ?? null;
|
||||
$subtitle = $args['subtitle'] ?? null;
|
||||
$thumbnail = $args['thumbnail'] ?? null;
|
||||
$modified = $args['modified'] ?? null;
|
||||
$subtitle = $args['subtitle'] ?? null;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="heading-box heading-box--jobs ">
|
||||
|
|
@ -19,17 +16,12 @@ $subtitle = $args['subtitle'] ?? null;
|
|||
<h1 class="heading-box__title heading-box--jobs__title"> <?php echo $title ?></h1>
|
||||
|
||||
<?php
|
||||
|
||||
get_template_part("template-components/post-infos-capsule", null, array(
|
||||
"postID" => get_the_ID(),
|
||||
"modified" => $modified
|
||||
));
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<?php if ($thumbnail) echo $thumbnail ?>
|
||||
|
||||
<!-- <img class="news-heading-box__thumbnail" src="<?php echo $thumbnail ?>" alt=""> -->
|
||||
<?php if ($thumbnail) echo $thumbnail ?>
|
||||
</div>
|
||||
|
|
@ -1,13 +1,10 @@
|
|||
<?php
|
||||
|
||||
$title = $args['title'];
|
||||
$description = $args['description'];
|
||||
$description = $args['description'] ?? null;
|
||||
$news_type = $args['news_type'] ?? null;
|
||||
$thumbnail = $args['thumbnail'] ?? null;
|
||||
$published = $args['published'] ?? null;
|
||||
$subtitle = $args['subtitle'] ?? null;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="heading-box heading-box--news ">
|
||||
|
|
@ -19,15 +16,11 @@ $subtitle = $args['subtitle'] ?? null;
|
|||
<h1 class="heading-box__title heading-box--news__title"> <?php echo $title ?></h1>
|
||||
|
||||
<?php
|
||||
|
||||
get_template_part("template-components/post-infos-capsule", null, array(
|
||||
"postID" => get_the_ID(),
|
||||
"published" => $published
|
||||
));
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<?php if ($thumbnail) echo $thumbnail ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user