Blog article
Emploi
Entreprise
Footer
General wording
Header
Presse
Ressources
Sections
Wording Emploi

Sections

		
<?php if (have_rows('impact_sections') ) {
while ( have_rows('impact_sections') ) : the_row();
if( get_row_layout() == 'wysiwyg' ) {
$wysiwyg = get_sub_field('wysiwyg');
?>
<?php if ($wysiwyg){ ?>
<?php echo $wysiwyg; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'header_01' ) {
$society = get_sub_field('society');
$logo = get_sub_field('logo');
$title = get_sub_field('title');
$image_right = get_sub_field('image_right');
?>
<?php if ($society){ ?>
<?php if ( $society == 'reuz' ) { ?>
<?php } else if( $society == 'nutripack' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($logo){
$image = '';
$image = $logo;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($image_right){
$image = '';
$image = $image_right;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'header_02' ) {
$background_color = get_sub_field('background_color');
$g_color = get_sub_field('g_color');
$logo = get_sub_field('logo');
$subtitle = get_sub_field('subtitle');
$title = get_sub_field('title');
$description = get_sub_field('description');
?>
<?php if ($background_color){ ?>
<?php if ( $background_color == 'section-light-blue' ) { ?>
<?php } else if( $background_color == 'section-light-blue-2' ) { ?>
<?php } else if( $background_color == 'section-blue' ) { ?>
<?php } else if( $background_color == 'section-orange' ) { ?>
<?php } else if( $background_color == 'section-light-orange' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($g_color){ ?>
<?php if ( $g_color == 'g-orange.svg' ) { ?>
<?php } else if( $g_color == 'g-light-orange.svg' ) { ?>
<?php } else if( $g_color == 'g-light-blue.svg' ) { ?>
<?php } else if( $g_color == 'g-blue.svg' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($logo){
$image = '';
$image = $logo;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($subtitle){ ?>
<?php echo $subtitle; ?>
<?php } ?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'punchline' ) {
$text = get_sub_field('text');
?>
<?php if ($text){ ?>
<?php echo $text; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'img_background_2_columns_title_txt_cta' ) {
$image_background = get_sub_field('image_background');
$title = get_sub_field('title');
$description = get_sub_field('description');
$description_2 = get_sub_field('description_2');
$button = get_sub_field('button');
?>
<?php if ($image_background){
$image = '';
$image = $image_background;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($description_2){ ?>
<?php echo $description_2; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'title_text_color_background_image' ) {
$title = get_sub_field('title');
$text = get_sub_field('text');
$color = get_sub_field('color');
$image = get_sub_field('image');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($text){ ?>
<?php echo $text; ?>
<?php } ?>
<?php if ($color){ ?>
<?php if ( $color == 'section-yellow' ) { ?>
<?php } else if( $color == 'section-orange' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'title_text_2_columns' ) {
$title = get_sub_field('title');
$text_left = get_sub_field('text_left');
$text_right = get_sub_field('text_right');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($text_left){ ?>
<?php echo $text_left; ?>
<?php } ?>
<?php if ($text_right){ ?>
<?php echo $text_right; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'logo_cta_pictos' ) {
$background = get_sub_field('background');
$logo = get_sub_field('logo');
$description = get_sub_field('description');
$button = get_sub_field('button');
$pictos = get_sub_field('pictos');
$image_left = get_sub_field('image_left');
?>
<?php if ($background){ ?>
<?php if ( $background == 'yellow' ) { ?>
<?php } else if( $background == 'dark-blue' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($logo){
$image = '';
$image = $logo;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
if ($pictos) {
foreach ($pictos as $pictos_value) {
$picto = $pictos_value['picto'];
$title = $pictos_value['title'];
?>
<?php if ($picto){
$image = '';
$image = $picto;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
}
}
?>
<?php if ($image_left){
$image = '';
$image = $image_left;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'image_full_title' ) {
$image = get_sub_field('image');
$title = get_sub_field('title');
?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'texte_bold_cta_2_columns' ) {
$titre_orange = get_sub_field('titre_orange');
$titre_blue = get_sub_field('titre_blue');
$description = get_sub_field('description');
$button = get_sub_field('button');
?>
<?php if ($titre_orange){ ?>
<?php echo $titre_orange; ?>
<?php } ?>
<?php if ($titre_blue){ ?>
<?php echo $titre_blue; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'slider_actus' ) {
$title = get_sub_field('title');
$buttons = get_sub_field('buttons');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
if ($buttons) {
foreach ($buttons as $buttons_value) {
$style = $buttons_value['style'];
$link = $buttons_value['link'];
?>
<?php if ($style){ ?>
<?php if ( $style == 'Light' ) { ?>
<?php } else if( $style == 'full' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($link){
$link_url = $link["url"];
$link_title = $link["title"];
$link_target = $link["target"] ? $link["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == '_2_columns_title_paragraphs_cta' ) {
$title = get_sub_field('title');
$description = get_sub_field('description');
$title_description_list = get_sub_field('title_description_list');
$button = get_sub_field('button');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
if ($title_description_list) {
foreach ($title_description_list as $title_description_list_value) {
$title = $title_description_list_value['title'];
$description = $title_description_list_value['description'];
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'chiffres_cle' ) {
$title = get_sub_field('title');
$button = get_sub_field('button');
$circle_1 = get_sub_field('circle_1');
$circle_2 = get_sub_field('circle_2');
$circle_3 = get_sub_field('circle_3');
$circle_4 = get_sub_field('circle_4');
$circle_5 = get_sub_field('circle_5');
$circle_6 = get_sub_field('circle_6');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'image_title_text_cta' ) {
$image = get_sub_field('image');
$title = get_sub_field('title');
$text = get_sub_field('text');
$call_to_action = get_sub_field('call_to_action');
$button_color = get_sub_field('button_color');
?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($text){ ?>
<?php echo $text; ?>
<?php } ?>
<?php if ($call_to_action){
$link_url = $call_to_action["url"];
$link_title = $call_to_action["title"];
$link_target = $call_to_action["target"] ? $call_to_action["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php if ($button_color){ ?>
<?php if ( $button_color == 'orange' ) { ?>
<?php } else if( $button_color == 'green' ) { ?>
<?php } ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'contact_block' ) {
$title = get_sub_field('title');
$cards = get_sub_field('cards');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
if ($cards) {
foreach ($cards as $cards_value) {
$picto = $cards_value['picto'];
$title = $cards_value['title'];
$description = $cards_value['description'];
?>
<?php if ($picto){
$image = '';
$image = $picto;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'player_video' ) {
$background_image = get_sub_field('background_image');
$youtube_video_url = get_sub_field('youtube_video_url');
$text_left = get_sub_field('text_left');
$text_right = get_sub_field('text_right');
?>
<?php if ($background_image){
$image = '';
$image = $background_image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($youtube_video_url){ ?>
<a href='<?php echo $youtube_video_url; ?>' title=''>Link</a>
<?php } ?>
<?php if ($text_left){ ?>
<?php echo $text_left; ?>
<?php } ?>
<?php if ($text_right){ ?>
<?php echo $text_right; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'titre_card_text_image_gd' ) {
$background = get_sub_field('background');
$title = get_sub_field('title');
$description = get_sub_field('description');
$left_right = get_sub_field('left_right');
$card = get_sub_field('card');
?>
<?php if ($background){ ?>
<?php if ( $background == 'green' ) { ?>
<?php } else if( $background == 'yellow' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($left_right){ ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'green_block_picto_text' ) {
$title = get_sub_field('title');
$blocks = get_sub_field('blocks');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
if ($blocks) {
foreach ($blocks as $blocks_value) {
$image = $blocks_value['image'];
$title = $blocks_value['title'];
$description = $blocks_value['description'];
?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'green_block_2_columns_txt_cta' ) {
$background = get_sub_field('background');
$title = get_sub_field('title');
$description = get_sub_field('description');
$button = get_sub_field('button');
?>
<?php if ($background){ ?>
<?php if ( $background == 'blue' ) { ?>
<?php } else if( $background == 'green' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'green_block_illu_text' ) {
$title = get_sub_field('title');
$description = get_sub_field('description');
$image = get_sub_field('image');
$wysiwyg = get_sub_field('wysiwyg');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($wysiwyg){ ?>
<?php echo $wysiwyg; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'title_description_light_green' ) {
$title = get_sub_field('title');
$description = get_sub_field('description');
$call_to_action = get_sub_field('call_to_action');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($call_to_action){
$link_url = $call_to_action["url"];
$link_title = $call_to_action["title"];
$link_target = $call_to_action["target"] ? $call_to_action["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'title_h3_description_cta' ) {
$title = get_sub_field('title');
$description = get_sub_field('description');
$button = get_sub_field('button');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'title_h2_image_text_right' ) {
$title = get_sub_field('title');
$image = get_sub_field('image');
$description = get_sub_field('description');
$call_to_action = get_sub_field('call_to_action');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($call_to_action){
$link_url = $call_to_action["url"];
$link_title = $call_to_action["title"];
$link_target = $call_to_action["target"] ? $call_to_action["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'pictos_chiffres' ) {
$numbers = get_sub_field('numbers');
?>
<?php
if ($numbers) {
foreach ($numbers as $numbers_value) {
$picto = $numbers_value['picto'];
$number = $numbers_value['number'];
$description = $numbers_value['description'];
?>
<?php if ($picto){
$image = '';
$image = $picto;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'h2_text_image_basse_droite' ) {
$title = get_sub_field('title');
$description = get_sub_field('description');
$small_description = get_sub_field('small_description');
$image = get_sub_field('image');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($small_description){ ?>
<?php echo $small_description; ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'title_picto_text_2_columns' ) {
$background = get_sub_field('background');
$text_left = get_sub_field('text_left');
$image = get_sub_field('image');
$text_right_1 = get_sub_field('text_right_1');
$text_right_2 = get_sub_field('text_right_2');
?>
<?php if ($background){ ?>
<?php if ( $background == 'section-light-blue' ) { ?>
<?php } else if( $background == 'section-orange' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($text_left){ ?>
<?php echo $text_left; ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($text_right_1){ ?>
<?php echo $text_right_1; ?>
<?php } ?>
<?php if ($text_right_2){ ?>
<?php echo $text_right_2; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'image_full_lenght' ) {
$image = get_sub_field('image');
?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'h2_picto_legende_texte' ) {
$title = get_sub_field('title');
$image = get_sub_field('image');
$legende = get_sub_field('legende');
$description = get_sub_field('description');
$description_small = get_sub_field('description_small');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($legende){ ?>
<?php echo $legende; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($description_small){ ?>
<?php echo $description_small; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'card_brand' ) {
$card = get_sub_field('card');
?>
<?php
if ($card) {
foreach ($card as $card_value) {
$background = $card_value['background'];
$background_hover = $card_value['background_hover'];
$logo = $card_value['logo'];
$title = $card_value['title'];
$description = $card_value['description'];
$link = $card_value['link'];
?>
<?php if ($background){ ?>
<?php if ( $background == 'light-orange' ) { ?>
<?php } else if( $background == 'green' ) { ?>
<?php } ?>
<?php } ?>
<?php if ($background_hover){
$image = '';
$image = $background_hover;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($logo){
$image = '';
$image = $logo;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($link){ ?>
<a href='<?php echo $link; ?>' title=''>Link</a>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'bloc_repeter' ) {
$repeter = get_sub_field('repeter');
?>
<?php
if ($repeter) {
foreach ($repeter as $repeter_value) {
$title = $repeter_value['title'];
$picto = $repeter_value['picto'];
$description = $repeter_value['description'];
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($picto){
$image = '';
$image = $picto;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'faq' ) {
$title = get_sub_field('title');
$questions = get_sub_field('questions');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
if ($questions) {
foreach ($questions as $questions_value) {
$title = $questions_value['title'];
$description = $questions_value['description'];
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'newsletter' ) {
} else if( get_row_layout() == 'title_2_columns_puces' ) {
$title = get_sub_field('title');
$left = get_sub_field('left');
$right = get_sub_field('right');
$image = get_sub_field('image');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($left){ ?>
<?php echo $left; ?>
<?php } ?>
<?php if ($right){ ?>
<?php echo $right; ?>
<?php } ?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'archive_page_content' ) {
$choice = get_sub_field('choice');
$data_presse = get_sub_field('data_presse');
$data_job = get_sub_field('data_job');
$data_blog = get_sub_field('data_blog');
$data_ressources = get_sub_field('data_ressources');
?>
<?php
} else if( get_row_layout() == 'slider_picto' ) {
$title = get_sub_field('title');
$slides = get_sub_field('slides');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
if ($slides) {
foreach ($slides as $slides_value) {
$image = $slides_value['image'];
$title = $slides_value['title'];
$description = $slides_value['description'];
?>
<?php if ($image){
$image = '';
$image = $image;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
$alt_text = get_post_meta($image['ID'] , '_wp_attachment_image_alt', true);
?>
<img class='' alt='<?php echo $alt_text; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'contact_form' ) {
$title = get_sub_field('title');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'orange_block_tilte_descritpion_button' ) {
$title = get_sub_field('title');
$subtitle = get_sub_field('subtitle');
$description = get_sub_field('description');
$button = get_sub_field('button');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php if ($subtitle){ ?>
<?php echo $subtitle; ?>
<?php } ?>
<?php if ($description){ ?>
<?php echo $description; ?>
<?php } ?>
<?php if ($button){
$link_url = $button["url"];
$link_title = $button["title"];
$link_target = $button["target"] ? $button["target"] : "_self" ; ?>
<a class="" title="<?= esc_html($link_title);?>" href="<?= esc_url($link_url) ?>" target="<?= esc_attr($link_target) ?>" ><?= esc_html($link_title) ?></a>
<?php } ?>
<?php
} else if( get_row_layout() == 'title_form' ) {
$title = get_sub_field('title');
$form_number = get_sub_field('form_number');
?>
<?php if ($title){ ?>
<?php echo $title; ?>
<?php } ?>
<?php
}
endwhile;
}?>