<?php $this->helper->startMultilang() ?>

<?PHP //TODO : gerer un article dans plusieurs langue ?>


    <div class="container" id="press">
        <div id="inner-press">
            <!--<h2><?/*= $this->helper->input('presse') */?></h2>-->
            <div id="press-articles">

                <?php
                    foreach($this->articles as $a){

                        $icone = $a->icone->path . $a->icone->filename ;

                        $lg = $a->localizedfields->items[$this->lang];

                        if (isset($lg['lien'])){
                            $link = $lg['lien']->direct;
                        }elseif (isset($lg['article'])){
                            $link = $lg['article']->path . $lg['article']->filename;
                        }elseif(isset($a->localizedfields->fr->Lien)){
                            $link = $a->localizedfields->fr->Lien->direct;
                        }else{
                            $link = $a->localizedfields->fr['article']->path . $a->localizedfields->fr['article']->filename;
                        }

                        echo '<a data-lightbox="articles" href="'. $link .'" target="_blank"><img alt="real advice dans la presse" src="' . $icone . '" class="press-img"></a>';
                    }
                ?>
            </div>
        </div>
    </div>

<script src="js/lightbox.min.js"></script>

<?php $this->helper->endMultilang() ?>