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

?>

    <div class="sol-page__holder">
        <div class="section__head">
            <div class="wrapper head__wrapper">
                <h1 class="section__title">Solutions</h1>
                <div class="section__head__links">
                    <a href="index.php" class="section__head__link">Home</a>
                    <span class="section__head__link__text head__link__separator">Solutions</span>
                </div>
            </div>
        </div>
        <div class="wrapper">
            <div class="sol-page__content">
                <?php foreach ($solutions AS $s) { ?>
                    <div class="sol-page__item">
                        <a href="solution.php?id=<?=$s['id'];?>" class="sol-page__image-holder">
                            <img src="<?= thumbnailLink($s['cover_image'],553,375);?>" alt="<?=$s['title'];?>"
                                 title="<?=$s['title'];?>"/>
                            <div class="page__item__entry">
                                <div class="page__entry__image"></div>
                            </div>
                        </a>
                        <h2 class="sol-page__item__title">
                            <a href="solution.php?id=<?=$s['id'];?>" class="sol-page__item__title__link"><?=$s['title'];?></a>
                        </h2>
                    </div>
                <?php } ?>
            </div>
        </div>
    </div>

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