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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-offres-emplois"]); ?>>
|
||||
<?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">
|
||||
|
||||
<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>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
|
|
@ -8,15 +8,14 @@ $args = array(
|
|||
|
||||
$offresEmplois = new WP_Query($args);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-offres-emplois"]); ?>>
|
||||
<?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">
|
||||
|
||||
<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>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user