<?php
/**
 * Template Name: About
 *
 * Template for displaying a page without sidebar even if a sidebar widget is published.
 *
 * @package BBase_Code
 */


defined( 'ABSPATH' ) || exit;

get_header(); the_post(); ?>

<?php
if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb( '<div class="container" id="breadcrumbs">','</div>' );
}
?>

<div id="about-s1" class="about-content">
    <div class="container">
        <?php the_content() ?>

        <?php if( have_rows('list_info') ): ?>
        <div class="list-info">

            <?php while( have_rows('list_info') ) : the_row(); ?>
            <div class="about-info">
                <h3 class="subtitle"><?php the_sub_field( 'title' ) ?></h3>
                <div class="content"><?php the_sub_field( 'description' ) ?></div>

                <?php render_link( get_sub_field( 'link' ), 'viewmore' ) ?>
            </div>
            <?php endwhile; ?>

        </div>
        <?php endif; ?>
    </div>
</div>

<div id="about-s2" class="about-brand">
    <div class="container">
        <div class="row">
            <div class="col-md-5">
                <h2 class="title"><?php the_field( 'brand_title' ) ?></h2>

                <div class="text"><?php the_field( 'brand_description' ) ?></div>
            </div>

            <?php $images = get_field('list_logo');
            if( $images ): ?>
            <div class="col-md-7">
                <ul class="list-logo">
                    <?php foreach( $images as $image ): ?>
                    <li><img src="<?php echo esc_url( $image['url'] ); ?>" alt="<?php echo esc_attr($image['alt']); ?>"></li>
                    <?php endforeach; ?>
                </ul>
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>

<?php get_footer() ?>