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