<?php require('header.php');
$id = (int)$_GET['id'];
$m = reset($o->findSql("SELECT * FROM media WHERE id = $id"));

?>

    <div class="media-details__holder">
        <div class="section__head">
            <div class="wrapper head__wrapper">
                <h1 class="section__title media-details__section__title"><?=$m['name'];?></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">Media</span>
                </div>
            </div>
        </div>
        <div class="wrapper">
            <div class="media-detailes__container">
                <div class="media-detailes__item media-detailes__item--left">
<!--                    <div class="media-detailes__head">-->
<!--                        <h2 class="media-detailes__title">--><?//=$m['name'];?><!--</h2>-->
<!--                    </div>-->
                    <div class="media-detailes__content">
                        <div class="media-detailes__image-holder">
                            <img src="<?=thumbnailLink($m['image'],400,400,false);?>" alt="Dubai Fire Engines" title="Dubai Fire Engines" />
                        </div>
                        <div class="media-detailes__text-holder">
                            <div class="media-detailes__text"><?=$m['text'];?></div>
                        </div>
                    </div>
                </div>
                <!--<div class="media-detailes__item media-detailes__item--right">
                    <div class="media-detailes__right__item media-detailes__right__first">
                        <h3 class="media-detailes__right__title">Voice & Multimedia</h3>
                        <span class="media-detailes__right__text">Avaya</span>
                        <span class="media-detailes__right__text">Hoistlocatel</span>
                        <span class="media-detailes__right__text">globitel</span>
                    </div>
                    <div class="media-detailes__right__item media-detailes__right__last">
                        <h3 class="media-detailes__right__title">Voice & Multimedia</h3>
                        <span class="media-detailes__right__text">Avaya</span>
                        <span class="media-detailes__right__text">Hoistlocatel</span>
                        <span class="media-detailes__right__text">globitel</span>
                    </div>
                </div>-->
            </div>
        </div>
    </div>
    <div class="">
        <a href="media.php" class="btn footer__link" style="margin: 10px auto">Discover More</a>
    </div>

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