Bonbon
Content
FAQ
Landing pages sections
Link family
Link product
Listing HowTo
Menu footer
Menu header
News
Page FAQ
Produits
Resellers
Sections
Wording

Sections

		
<?php if (have_rows('tbe_sections') ) {
while ( have_rows('tbe_sections') ) : the_row();
if( get_row_layout() == 'header_hp' ) {
$header_hp_title_big = get_sub_field('header_hp_title_big');
$header_hp_title_small = get_sub_field('header_hp_title_small');
$header_hp_description = get_sub_field('header_hp_description');
$header_hp_link = get_sub_field('header_hp_link');
$header_hp_hover_fabrik = get_sub_field('header_hp_hover_fabrik');
$header_hp_link_hover = get_sub_field('header_hp_link_hover');
?>
<?php if ($header_hp_title_big){ ?>
<?php echo $header_hp_title_big; ?>
<?php } ?>
<?php if ($header_hp_title_small){ ?>
<?php echo $header_hp_title_small; ?>
<?php } ?>
<?php if ($header_hp_description){ ?>
<?php echo $header_hp_description; ?>
<?php } ?>
<?php if ($header_hp_hover_fabrik){ ?>
<?php echo $header_hp_hover_fabrik; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'header_content' ) {
$header_content_title_big = get_sub_field('header_content_title_big');
$header_content_title_small = get_sub_field('header_content_title_small');
$header_content_description = get_sub_field('header_content_description');
$header_content_video = get_sub_field('header_content_video');
$header_content_image_video = get_sub_field('header_content_image_video');
?>
<?php if ($header_content_title_big){ ?>
<?php echo $header_content_title_big; ?>
<?php } ?>
<?php if ($header_content_title_small){ ?>
<?php echo $header_content_title_small; ?>
<?php } ?>
<?php if ($header_content_description){ ?>
<?php echo $header_content_description; ?>
<?php } ?>
<?php if ($header_content_video){ ?>
<?php echo $header_content_video; ?>
<?php } ?>
<?php if ($header_content_image_video){
$image = '';
$image = $header_content_image_video;
if( !empty($image) ){
$size = 'thumbnail';
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
?>
<img class='feature-img' alt='' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'header_howto' ) {
$header_howto_title_big = get_sub_field('header_howto_title_big');
$header_howto_title_small = get_sub_field('header_howto_title_small');
$header_howto_description = get_sub_field('header_howto_description');
$header_howto_type = get_sub_field('header_howto_type');
?>
<?php if ($header_howto_title_big){ ?>
<?php echo $header_howto_title_big; ?>
<?php } ?>
<?php if ($header_howto_title_small){ ?>
<?php echo $header_howto_title_small; ?>
<?php } ?>
<?php if ($header_howto_description){ ?>
<?php echo $header_howto_description; ?>
<?php } ?>
<?php if ($header_howto_type){ ?>
<?php if ( $header_howto_type == 'halloween' ) { ?>
<?php } else if( $header_howto_type == 'birthday' ) { ?>
<?php } else if( $header_howto_type == 'boom' ) { ?>
<?php } else if( $header_howto_type == 'pyjama' ) { ?>
<?php } ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'header_exp' ) {
$header_exp_title_big = get_sub_field('header_exp_title_big');
$header_exp_title_small = get_sub_field('header_exp_title_small');
$header_exp_description = get_sub_field('header_exp_description');
$header_exp_taxonomy = get_sub_field('header_exp_taxonomy');
?>
<?php if ($header_exp_title_big){ ?>
<?php echo $header_exp_title_big; ?>
<?php } ?>
<?php if ($header_exp_title_small){ ?>
<?php echo $header_exp_title_small; ?>
<?php } ?>
<?php if ($header_exp_description){ ?>
<?php echo $header_exp_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'header_pro' ) {
$header_pro_title_big = get_sub_field('header_pro_title_big');
$header_pro_title_small = get_sub_field('header_pro_title_small');
$header_pro_description = get_sub_field('header_pro_description');
$header_pro_link = get_sub_field('header_pro_link');
?>
<?php if ($header_pro_title_big){ ?>
<?php echo $header_pro_title_big; ?>
<?php } ?>
<?php if ($header_pro_title_small){ ?>
<?php echo $header_pro_title_small; ?>
<?php } ?>
<?php if ($header_pro_description){ ?>
<?php echo $header_pro_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'header_bonbon' ) {
$header_bonbon_title_big = get_sub_field('header_bonbon_title_big');
$header_bonbon_description = get_sub_field('header_bonbon_description');
?>
<?php if ($header_bonbon_title_big){ ?>
<?php echo $header_bonbon_title_big; ?>
<?php } ?>
<?php if ($header_bonbon_description){ ?>
<?php echo $header_bonbon_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'header_news' ) {
} else if( get_row_layout() == 'party_organize' ) {
$party_organize_title = get_sub_field('party_organize_title');
$party_organize_description = get_sub_field('party_organize_description');
$party_organize_howto = get_sub_field('party_organize_howto');
$party_organize_link = get_sub_field('party_organize_link');
?>
<?php if ($party_organize_title){ ?>
<?php echo $party_organize_title; ?>
<?php } ?>
<?php if ($party_organize_description){ ?>
<?php echo $party_organize_description; ?>
<?php } ?>
<?php
if ($party_organize_howto) {
foreach ($party_organize_howto as $post) {
setup_postdata($post);
?>
<a href='<?php the_permalink(); ?>'><?php the_title(); ?></a>
<?php
}
wp_reset_postdata();
}
?>
<?php
} else if( get_row_layout() == 'news_hp' ) {
$news_hp_title = get_sub_field('news_hp_title');
$news_hp_description = get_sub_field('news_hp_description');
$news_hp_link = get_sub_field('news_hp_link');
?>
<?php if ($news_hp_title){ ?>
<?php echo $news_hp_title; ?>
<?php } ?>
<?php if ($news_hp_description){ ?>
<?php echo $news_hp_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'newsletter_hp' ) {
$newsletter_hp_title = get_sub_field('newsletter_hp_title');
$newsletter_hp_description = get_sub_field('newsletter_hp_description');
$newsletter_hp_title_social = get_sub_field('newsletter_hp_title_social');
?>
<?php if ($newsletter_hp_title){ ?>
<?php echo $newsletter_hp_title; ?>
<?php } ?>
<?php if ($newsletter_hp_description){ ?>
<?php echo $newsletter_hp_description; ?>
<?php } ?>
<?php if ($newsletter_hp_title_social){ ?>
<?php echo $newsletter_hp_title_social; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'discover_tbe' ) {
$discover_tbe_title = get_sub_field('discover_tbe_title');
$discover_tbe_description = get_sub_field('discover_tbe_description');
$discover_tbe_link = get_sub_field('discover_tbe_link');
?>
<?php if ($discover_tbe_title){ ?>
<?php echo $discover_tbe_title; ?>
<?php } ?>
<?php if ($discover_tbe_description){ ?>
<?php echo $discover_tbe_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'list_news' ) {
} else if( get_row_layout() == 'list_bonbons' ) {
} else if( get_row_layout() == 'list_howto' ) {
$list_howto_title = get_sub_field('list_howto_title');
$list_howto_description = get_sub_field('list_howto_description');
?>
<?php if ($list_howto_title){ ?>
<?php echo $list_howto_title; ?>
<?php } ?>
<?php if ($list_howto_description){ ?>
<?php echo $list_howto_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'list_exp' ) {
} else if( get_row_layout() == 'list_produit_family' ) {
$list_exp_family_family = get_sub_field('list_exp_family_family');
?>
<?php
} else if( get_row_layout() == 'list_news_type' ) {
$list_news_type_type = get_sub_field('list_news_type_type');
?>
<?php
} else if( get_row_layout() == 'header_contact' ) {
$header_contact_title_big = get_sub_field('header_contact_title_big');
$header_contact_description = get_sub_field('header_contact_description');
?>
<?php if ($header_contact_title_big){ ?>
<?php echo $header_contact_title_big; ?>
<?php } ?>
<?php if ($header_contact_description){ ?>
<?php echo $header_contact_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'instagram' ) {
$instagram_title = get_sub_field('instagram_title');
$instagram_description = get_sub_field('instagram_description');
$instagram_instagram = get_sub_field('instagram_instagram');
?>
<?php if ($instagram_title){ ?>
<?php echo $instagram_title; ?>
<?php } ?>
<?php if ($instagram_description){ ?>
<?php echo $instagram_description; ?>
<?php } ?>
<?php
if ($instagram_instagram) {
foreach ($instagram_instagram as $instagram_instagram_value) {
$community_instagram_embed = $instagram_instagram_value['community_instagram_embed'];
?>
<?php if ($community_instagram_embed){ ?>
<?php echo $community_instagram_embed; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'join' ) {
$join_title_big = get_sub_field('join_title_big');
$join_description = get_sub_field('join_description');
?>
<?php if ($join_title_big){ ?>
<?php echo $join_title_big; ?>
<?php } ?>
<?php if ($join_description){ ?>
<?php echo $join_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'word_bubble' ) {
$word_bubble_title = get_sub_field('word_bubble_title');
$word_bubble_description = get_sub_field('word_bubble_description');
$word_bubble_bubbles = get_sub_field('word_bubble_bubbles');
$word_bubble_link = get_sub_field('word_bubble_link');
?>
<?php if ($word_bubble_title){ ?>
<?php echo $word_bubble_title; ?>
<?php } ?>
<?php if ($word_bubble_description){ ?>
<?php echo $word_bubble_description; ?>
<?php } ?>
<?php
if ($word_bubble_bubbles) {
foreach ($word_bubble_bubbles as $word_bubble_bubbles_value) {
$word_bubble_bubbles_title = $word_bubble_bubbles_value['word_bubble_bubbles_title'];
$word_bubble_bubbles_description = $word_bubble_bubbles_value['word_bubble_bubbles_description'];
?>
<?php if ($word_bubble_bubbles_title){ ?>
<?php echo $word_bubble_bubbles_title; ?>
<?php } ?>
<?php if ($word_bubble_bubbles_description){ ?>
<?php echo $word_bubble_bubbles_description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'boy_left_text' ) {
$boy_left_texttitle = get_sub_field('boy_left_texttitle');
$boy_left_text_introduction = get_sub_field('boy_left_text_introduction');
$boy_left_text_description = get_sub_field('boy_left_text_description');
$boy_left_text_link = get_sub_field('boy_left_text_link');
?>
<?php if ($boy_left_texttitle){ ?>
<?php echo $boy_left_texttitle; ?>
<?php } ?>
<?php if ($boy_left_text_introduction){ ?>
<?php echo $boy_left_text_introduction; ?>
<?php } ?>
<?php if ($boy_left_text_description){ ?>
<?php echo $boy_left_text_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'list_with_number' ) {
$list_with_number_title = get_sub_field('list_with_number_title');
$list_with_number_description = get_sub_field('list_with_number_description');
$list_with_number_list = get_sub_field('list_with_number_list');
$list_with_number_link = get_sub_field('list_with_number_link');
?>
<?php if ($list_with_number_title){ ?>
<?php echo $list_with_number_title; ?>
<?php } ?>
<?php if ($list_with_number_description){ ?>
<?php echo $list_with_number_description; ?>
<?php } ?>
<?php
if ($list_with_number_list) {
foreach ($list_with_number_list as $list_with_number_list_value) {
$list_with_number_list_title = $list_with_number_list_value['list_with_number_list_title'];
$list_with_number_list_description = $list_with_number_list_value['list_with_number_list_description'];
?>
<?php if ($list_with_number_list_title){ ?>
<?php echo $list_with_number_list_title; ?>
<?php } ?>
<?php if ($list_with_number_list_description){ ?>
<?php echo $list_with_number_list_description; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'image' ) {
$image_title = get_sub_field('image_title');
$image_description = get_sub_field('image_description');
$image_image = get_sub_field('image_image');
$image_link = get_sub_field('image_link');
?>
<?php if ($image_title){ ?>
<?php echo $image_title; ?>
<?php } ?>
<?php if ($image_description){ ?>
<?php echo $image_description; ?>
<?php } ?>
<?php if ($image_image){
$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'];
?>
<img class='feature-img' alt='' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'market' ) {
$market_title = get_sub_field('market_title');
$market_markets = get_sub_field('market_markets');
$market_link = get_sub_field('market_link');
?>
<?php if ($market_title){ ?>
<?php echo $market_title; ?>
<?php } ?>
<?php
if ($market_markets) {
foreach ($market_markets as $market_markets_value) {
$market_markets_title = $market_markets_value['market_markets_title'];
?>
<?php if ($market_markets_title){ ?>
<?php echo $market_markets_title; ?>
<?php } ?>
<?php
}
}
?>
<?php
} else if( get_row_layout() == 'social' ) {
$social_title = get_sub_field('social_title');
?>
<?php if ($social_title){ ?>
<?php echo $social_title; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'contact' ) {
$contact_title = get_sub_field('contact_title');
$contact_description = get_sub_field('contact_description');
?>
<?php if ($contact_title){ ?>
<?php echo $contact_title; ?>
<?php } ?>
<?php if ($contact_description){ ?>
<?php echo $contact_description; ?>
<?php } ?>
<?php
} else if( get_row_layout() == 'select_form' ) {
$title_form = get_sub_field('title_form');
$description_form = get_sub_field('description_form');
$select_gravity_form = get_sub_field('select_gravity_form');
?>
<?php if ($title_form){ ?>
<?php echo $title_form; ?>
<?php } ?>
<?php if ($description_form){ ?>
<?php echo $description_form; ?>
<?php } ?>
<?php if ($select_gravity_form){ ?>
<?php if ( $select_gravity_form == '4' ) { ?>
<?php } else if( $select_gravity_form == '6' ) { ?>
<?php } else if( $select_gravity_form == '9' ) { ?>
<?php } else if( $select_gravity_form == '10' ) { ?>
<?php } else if( $select_gravity_form == '11' ) { ?>
<?php } else if( $select_gravity_form == '7' ) { ?>
<?php } else if( $select_gravity_form == '12' ) { ?>
<?php } else if( $select_gravity_form == '1' ) { ?>
<?php } else if( $select_gravity_form == '2' ) { ?>
<?php } else if( $select_gravity_form == '3' ) { ?>
<?php } else if( $select_gravity_form == '8' ) { ?>
<?php } ?>
<?php } ?>
<?php
}
endwhile;
}?>