<div id="viewer-menu" class="lh-0 py-2 px-3"> 
    <div id="v-nav-edit">
        <?php
        if(in_array("arrow",$menu_edit)){
        ?>
        <div class="v-icon arrow arrowprev" onclick="yc_itemPrev()"><img src="app/images/chevron-left.svg" title="Item précédent"></div>
        <div class="v-icon arrow arrownext" onclick="yc_itemNext()"><img src="app/images/chevron-right.svg" title="Item suivant"></div>
        <?php
        }
        if(in_array("edit",$menu_edit) && isadmin()){
            switch($_POST['type']){
                case "page":
                    $link="yc_editPage('".$_POST['source']."')";
                    break;
                case "item":
                    $link="yc_editItem('".$_POST['source']."')";
                    break;
            }
        ?>
        <div class="v-icon edit" onclick="<?= $link ?>"><img src="app/images/pencil-fill.svg"></div>
        <?php
        }
        ?>
    </div>
    <div id="v-viewermode" class="">
        <?php
        if(in_array("iteminfo",$menu_edit) ){
            ?>
            <div class="v-icon docinfobutton" onclick="fw_docinfotoggle(this)" title="Affiche/cacher les infos"><img src="app/images/info-lg.svg"></div>
        <?php
        }
        
        if(in_array("viewmode",$menu_edit)){
        ?>
        <div id="mode-fullscreeen" class="v-icon" onclick="yc_togglefullscreen('#viewer-main')"><img src="app/images/arrows-fullscreen.svg" title="Sortir du mode plein écran"></div>
        <div id="mode-exitfullscreeen" class="v-icon" onclick="yc_togglefullscreen('#viewer-main')"><img src="app/images/arrows-windowed.svg" title="Afficher en plein écran"></div>
        
        <div id="mode-fullwindow" class="v-icon v-type" onclick="yc_viewerTypechange('fullwindow','<?= $_POST['type'] ?>','<?= $_POST['source'] ?>')"><img src="app/images/icon-full.svg" title="Affichage pleine fenêtre"></div>
        <div id="mode-lateral" class="v-icon v-type" onclick="yc_viewerTypechange('lateral','<?= $_POST['type'] ?>','<?= $_POST['source'] ?>')"><img src="app/images/icon-lateral.svg" title="Affichage latéral"></div>

        <?php
        }
        ?>
    </div>
    <div id="v-viewerclose" class="v-icon" onclick="yc_closeViewer()"><img src="app/images/x-lg.svg" title="Fermer le lecteur"></div>
</div>