/** * The contact section partial for the Page Builder * * @package FlatBook */ $ltitle = get_sub_field('contact_title_left'); $rtitle = get_sub_field('contact_title_right'); $descr = get_sub_field('contact_description', false, false); $cform = get_sub_field('contact_form_selector'); $social = get_sub_field('contact_socials'); ?> <?php // Section Header flatbook_section_header('section-contact'); ?> <?php // Section Content ?> <div class="col-sm-5"><?php if ($ltitle) { echo '<h3 class="no-mg-t">' . $ltitle . '</h3>'; } if ($descr) { echo '<p>' . $descr . '</p><br>'; } if (have_rows('contact_items')) {
<?php /** * The videos section partial for the Page Builder * * @package FlatBook */ $cols = get_sub_field('video_items_col'); $anim = get_sub_field('video_items_anim'); // Section Header flatbook_section_header('section-videos'); // Section Content if (have_rows('video_items')) { while (have_rows('video_items')) { the_row(); $title = get_sub_field('title'); $descr = get_sub_field('descr', false, false); $url = get_sub_field('url'); ?> <div class="<?php echo $cols; if ($anim) { echo ' wow ' . $anim; } ?> video-item"><?php if ($url) { echo ' <div class="embed-responsive embed-responsive-16by9 video-frame">
<?php /** * The custom section partial for the Page Builder * * @package FlatBook */ // Section Header flatbook_section_header('section-custom'); // Section Content the_sub_field('custom_content'); // Section Footer flatbook_section_footer();
<?php /** * The clients section partial for the Page Builder * * @package FlatBook */ $anim = get_sub_field('client_items_anim'); $cols = get_sub_field('client_items_col'); // Section Header flatbook_section_header('section-clients'); // Section Content if (have_rows('client_items')) { ?> <div class="col-xs-12"> <ul class="sponsor-logos"><?php while (have_rows('client_items')) { the_row(); $name = get_sub_field('name'); $link = get_sub_field('link'); $logo = get_sub_field('logo'); ?> <li <?php if ($anim) { echo 'class="wow ' . $anim . '"'; } ?> style="width: <?php
<?php /** * The messages section partial for the Page Builder * * @package FlatBook */ $anim = get_sub_field('message_items_anim'); $i = 1; // Section Header flatbook_section_header('section-messages'); // Section Content if (have_rows('message_items')) { while (have_rows('message_items')) { the_row(); $name = get_sub_field('name'); $quote = get_sub_field('quote'); $avatar = get_sub_field('avatar'); ?> <div class="row <?php if ($anim) { echo ' wow ' . $anim; } ?> "> <div class="testimonial-item"> <?php if ($i % 2 == 0) { ?>
<?php /** * The counters section partial for the Page Builder * * @package FlatBook */ $cols = get_sub_field('counter_items_col'); $anim = get_sub_field('counter_items_anim'); // Section Header flatbook_section_header('section-counters'); // Section Content if (have_rows('counter_items')) { while (have_rows('counter_items')) { the_row(); echo '<div class="' . $cols . ' '; if ($anim) { echo 'wow ' . $anim; } echo ' counter-item">'; $value = get_sub_field('value'); $label = get_sub_field('label'); if ($value) { echo '<p class="counter-value">' . $value . '</p>'; } if ($label) { echo '<p class="counter-desc">' . $label . '</p>'; } echo '</div>'; } }
<?php /** * The overviews section partial for the Page Builder * * @package FlatBook */ $cols = get_sub_field('overview_items_col'); $anim = get_sub_field('overview_items_anim'); // Section Header flatbook_section_header('section-overviews'); // Section Content if (have_rows('overview_items')) { while (have_rows('overview_items')) { the_row(); $title = get_sub_field('title'); $descr = get_sub_field('descr', false, false); $image = get_sub_field('image'); ?> <div class="<?php echo $cols . ' col-sm-6'; if ($anim) { echo ' wow ' . $anim; } ?> overview-item"><?php if ($image) { echo '<img class="thumbnail" src="' . $image . '" alt="' . $title . '">'; }
<?php /** * The author section partial for the Page Builder * * @package FlatBook */ $anim = get_sub_field('author_anim'); $photo = get_sub_field('author_photo'); $descr = get_sub_field('author_descr', false, false); $sign = get_sub_field('author_sign'); // Section Header flatbook_section_header('section-author'); ?> <div class="col-sm-4 author-photo <?php if ($anim) { echo ' wow ' . $anim; } ?> "> <?php if ($photo) { echo '<img class="img-responsive" src="' . $photo . '" alt="">'; } ?> </div>
<?php /** * The features section partial for the Page Builder * * @package FlatBook */ $anim = get_sub_field('feature_items_anim'); // Section Header flatbook_section_header('section-features'); // Section Content if (have_rows('feature_items')) { while (have_rows('feature_items')) { the_row(); $title = get_sub_field('title'); $descr = get_sub_field('descr', false, false); $icon = get_sub_field('icon'); ?> <div class="col-sm-6 feature-item <?php if ($anim) { echo ' wow ' . $anim; } ?> "> <div class="feature-icon"> <?php if ($icon) { echo '<i class="fa ' . $icon . '"></i>'; }
<?php /** * The pricing section partial for the Page Builder * * @package FlatBook */ $cols = get_sub_field('pricing_items_col'); $anim = get_sub_field('pricing_items_anim'); $curr = get_sub_field('pricing_items_currency'); // Section Header flatbook_section_header('section-pricing'); // Section Content if (have_rows('pricing_items')) { while (have_rows('pricing_items')) { the_row(); $title = get_sub_field('title'); $price = get_sub_field('price'); $image = get_sub_field('image'); $btntxt = get_sub_field('btn_label'); $btnurl = get_sub_field('btn_link'); $emphs = get_sub_field('emphasized'); ?> <div class="<?php echo $cols; if ($anim) { echo ' wow ' . $anim; } ?>