<?php

    $this->placeholder("top-bar")->captureStart();



    $switchFr = ( $this->document->getProperty('LangSwitch-fr') == "" ) ? '/fr/' : $this->document->getProperty('LangSwitch-fr')->path . $this->document->getProperty('LangSwitch-fr')->key;

    $switchNl = ( $this->document->getProperty('LangSwitch-nl') == "" ) ? '/nl/' : $this->document->getProperty('LangSwitch-nl')->path . $this->document->getProperty('LangSwitch-nl')->key;

    $switchEn = ( $this->document->getProperty('LangSwitch-en') == "" ) ? '/en/' : $this->document->getProperty('LangSwitch-en')->path . $this->document->getProperty('LangSwitch-en')->key;



    switch($this->lang){

        case 'fr' : $switchFr = $this->document->path . $switchFr = $this->document->key; break;

        case 'nl' : $switchNl = $this->document->path . $switchNl = $this->document->key; break;

        case 'en' : $switchEn = $this->document->path . $switchEn = $this->document->key; break;

    }

?>



<div id="top_bar">

    <ul class="container">

        <li><a class="active" href="<?= $switchFr ?>">Français</a></li>

        <li><a class="" href="<?= $switchNl ?>">Néerlandais</a></li>

        <li><a class="" href="<?= $switchEn ?>">Anglais</a></li>

        <li><a class="" target="_blank" href="<?= $this->config->fb_link ?>"><img src="/website/views/layouts/images/facebook.png"></a></li>

        <li><a class="" target="_blank" href="<?= $this->config->li_link ?>"><img src="/website/views/layouts/images/linkedin.png"></a></li>

        <li><a class="" target="_blank" href="<?= $this->config->tw_link ?>"><img src="/website/views/layouts/images/twitter.png"></a></li>

    </ul>

</div>



<?php $this->placeholder("top-bar")->captureEnd(); ?>