<?php require('header.php');
$values = $o->findSql("SELECT * FROM `values`");
?>

    <div class="core-page__holder">
        <div class="section__head">
            <div class="wrapper head__wrapper">
                <h1 class="section__title">Core Values</h1>
                <div class="section__head__links">
                    <a href="index.php" class="section__head__link">Home</a>
                    <a href="about.php" class="section__head__link head__link__separator">About Us</a>
                    <span class="section__head__link__text head__link__separator">Core Values</span>
                </div>
            </div>
        </div>
        <div class="wrapper">
            <div class="media-page__content">
                <?php foreach ($values AS $v) { ?>
                    <div class="media__item">
                        <div href="#" class="media__image-holder">
                            <img src="<?=thumbnailLink($v['image'],200,200);?>" alt="<?=$v['title'];?>"
                                 title="<?=$v['title'];?>"/>

                        </div>
                        <div class="media__text-holder">
                            <a href="#" class="media__title__link">
                                <h2 class="media__item__title"><?=$v['title'];?></h2>
                            </a>
                            <div class="media__text"><?=$v['text'];?></div>
                        </div>

                    </div>
                <?php } ?>
            </div>
        </div>
    </div>

<?php require('footer.php') ?>