<div class="generic-viewercontent" data-adminaccess="true">
    <div class="p-3 nodecoration decoration-hover">
        <h2 class="mb-3">Menu administration</h2>
        <div class="link-behavior underlinehover" onclick="yc_editItem('')">
            Ajouter un item
        </div>
        <div class="link-behavior underlinehover" onclick="yc_editPage('')">
            Ajouter une page
        </div>
        <?php if($site->bool('tool_collections')){ ?>
        <hr class="my-3">
        <div class="link-behavior underlinehover" onclick="yc_editCollection(event,'')">
            Ajouter une collection
        </div>
        <?php } ?>

        <hr class="my-3">

        <div class="link-behavior underlinehover" onclick="yc_loadform('items')">
            Ajouter plusieurs items
        </div>
        <div class="link-behavior underlinehover" onclick="yc_modifyitems()">
            Modifier plusieurs items
        </div>
        <div class="link-behavior underlinehover" onclick="yc_deleteitems()">
            Supprimer plusieurs items
        </div>
        <div class="link-behavior underlinehover" onclick="yc_orderItems()">
            Organiser la mosaïque
        </div>

        <hr class="my-3">

        <div class="link-behavior underlinehover" onclick="yc_emptyCache('items')">
            Vider le cache
        </div>
        <div class="link-behavior underlinehover" onclick="yc_emptyCache('vignettes')">
            Vider le cache image
        </div>

        <hr class="my-3">

        <div class="link-behavior underlinehover" onclick="yc_loadform('settings')">
            Modifier les paramètres du site
        </div>
        <div class="link-behavior underlinehover" onclick="yc_loadform('access')">
            Modifier l'accès
        </div>
        <div class="link-behavior underlinehover" onclick="yc_editTheme()">
            Changer de thème
        </div>
        
        <hr class="my-3">
        <div class="link-behavior underlinehover" onclick="yc_adminModules()">
            Gérer les modules
        </div>
        <div class="link-behavior underlinehover" onclick="yc_exportItems()">
            Exporter des items
        </div>
        <?php
        foreach(MODULES['insert_admin'] as $insert){
            echo "<hr class=\"my-3\">";
            include(CHEMIN.$insert);
        }
        ?>
        <hr class="my-3">
        <div class="link-behavior underlinehover" onclick="yc_logout()">Logout - <?= $_SESSION['nom'] ?>
        </div>
    </div>
</div>