- Fix check vars
This commit is contained in:
parent
c0df508d4f
commit
f70fb5c0d3
3 changed files with 7 additions and 7 deletions
|
|
@ -122,7 +122,7 @@ Template Name: Page Rejoin
|
|||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
set_query_var('quotes', $experience['votre_parcours_de_formation']['quotes']);
|
||||
set_query_var('quotes', !empty($experience['votre_parcours_de_formation']['quotes']) ? $experience['votre_parcours_de_formation']['quotes'] : "");
|
||||
get_template_part('partials/quotes');
|
||||
?>
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ Template Name: Page Rejoin
|
|||
</div>
|
||||
|
||||
<?php
|
||||
set_query_var('quotes', $experience['votre_mobilite_au_sein_du_groupe']['quotes']);
|
||||
set_query_var('quotes', !empty($experience['votre_mobilite_au_sein_du_groupe']['quotes']) ? $experience['votre_mobilite_au_sein_du_groupe']['quotes'] : "");
|
||||
get_template_part('partials/quotes');
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$borders = $h['image_borders'];
|
||||
$borders = !empty($h['image_borders']) ? $h['image_borders'] : [];
|
||||
// var_dump('<pre style="margin: ;">', $borders ,'</pre>'); die;
|
||||
set_query_var('borders', $borders);
|
||||
get_template_part('partials/borders');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
$professions = get_field('professions', 'options');
|
||||
?>
|
||||
|
||||
|
|
@ -33,8 +33,8 @@
|
|||
<div class="image-border-wrap">
|
||||
<img src="<?php echo $p['image']; ?>" alt="<?php echo (!empty($p['title']) ? $p['title'] : ' '); ?>" />
|
||||
|
||||
<?php
|
||||
$borders = $p['image_borders'];
|
||||
<?php
|
||||
$borders = !empty($p['image_borders']) ? $p['image_borders'] : [];
|
||||
set_query_var('borders', $borders);
|
||||
get_template_part('partials/borders');
|
||||
?>
|
||||
|
|
@ -74,4 +74,4 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue