handling when no jobs
This commit is contained in:
parent
0063545bbc
commit
65a8769861
File diff suppressed because one or more lines are too long
|
|
@ -8,15 +8,14 @@ $args = array(
|
||||||
|
|
||||||
$offresEmplois = new WP_Query($args);
|
$offresEmplois = new WP_Query($args);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-offres-emplois"]); ?>>
|
<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-offres-emplois"]); ?>>
|
||||||
<?php echo $content; ?>
|
<?php echo $content; ?>
|
||||||
|
<?php if (!$offresEmplois->have_posts()) : ?>
|
||||||
|
<p><?php echo __("Il n’y a pas de poste à pourvoir en ce moment.", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($offresEmplois->have_posts()) : ?>
|
||||||
<ul class="homegrade-blocks-offres-emplois__offres-grid-datas">
|
<ul class="homegrade-blocks-offres-emplois__offres-grid-datas">
|
||||||
|
|
||||||
<div class="table_head">
|
<div class="table_head">
|
||||||
|
|
@ -35,11 +34,10 @@ $offresEmplois = new WP_Query($args);
|
||||||
<a class="homegrade-blocks-offres-emplois__offre-download cta cta--secondary cta--button" href="<?php echo $offrePermalink ?>"><?php echo __("Consulter l'offre", "homegrade-blocks") ?></a>
|
<a class="homegrade-blocks-offres-emplois__offre-download cta cta--secondary cta--button" href="<?php echo $offrePermalink ?>"><?php echo __("Consulter l'offre", "homegrade-blocks") ?></a>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -8,15 +8,14 @@ $args = array(
|
||||||
|
|
||||||
$offresEmplois = new WP_Query($args);
|
$offresEmplois = new WP_Query($args);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-offres-emplois"]); ?>>
|
<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-offres-emplois"]); ?>>
|
||||||
<?php echo $content; ?>
|
<?php echo $content; ?>
|
||||||
|
<?php if (!$offresEmplois->have_posts()) : ?>
|
||||||
|
<p><?php echo __("Il n’y a pas de poste à pourvoir en ce moment.", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($offresEmplois->have_posts()) : ?>
|
||||||
<ul class="homegrade-blocks-offres-emplois__offres-grid-datas">
|
<ul class="homegrade-blocks-offres-emplois__offres-grid-datas">
|
||||||
|
|
||||||
<div class="table_head">
|
<div class="table_head">
|
||||||
|
|
@ -35,11 +34,10 @@ $offresEmplois = new WP_Query($args);
|
||||||
<a class="homegrade-blocks-offres-emplois__offre-download cta cta--secondary cta--button" href="<?php echo $offrePermalink ?>"><?php echo __("Consulter l'offre", "homegrade-blocks") ?></a>
|
<a class="homegrade-blocks-offres-emplois__offre-download cta cta--secondary cta--button" href="<?php echo $offrePermalink ?>"><?php echo __("Consulter l'offre", "homegrade-blocks") ?></a>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
Loading…
Reference in New Issue
Block a user