Skip to content
Snippets Groups Projects
Commit e35c27c4 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

20H32 - Créateur d'écran de chargements

parent 1030cdae
No related branches found
No related tags found
No related merge requests found
<!-- Contenu -->
<div class="page-content d-flex flex-column" leftSidebar="240" rightSidebar="0" style="height:calc(100% - 60px);">
<h3><?=translate("loadingscreens")?></h3>
<p>Voici la liste des écrans de chargements.</p>
<script type="text/javascript">
</script>
</div>
\ No newline at end of file
vbcms-content/extensions/vbcms-loadingscreens/extension-logo.jpg

1.6 KiB

{
"workshopId" : "",
"requiredModules" : ["vbcms-filemanager"],
"type" : "module",
"name": "vbcms-loadingscreens",
"showname": "Créateur d'écrans de chargement",
"version": "1.0",
"compatible": "48",
"author": "1",
"description": "Permet de créer des écrans de chargement. :D ",
"clientAccess": "loadingscreens",
"adminAccess": "loadingscreens",
"permissions": ""
}
\ No newline at end of file
<?php
// Traduction gestionnaire de fichiers
$translation["loadingscreens"] = "Écrans de chargements";
$translation["loadingscreens_browse"] = "Liste des loading screens";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
\ No newline at end of file
<?php
function enable($name, $path, $adminAccess, $clientAccess){
adminNavbarAddCategory($name, "loadingscreens");
adminNavbarAddItem($name, "fas fa-list", "loadingscreens_browse", "/browse");
}
function disable(){
}
function getSettingsHTML($params){
echo('<h5>C\'est bien la page du créateur d\'écrans de chargement</h5>');
}
\ No newline at end of file
<?php
if($type =="admin"){
switch($parameters[1]){
case 'browse':
if(verifyUserPermission($_SESSION['user_id'], $this->name, 'access-browse')){
$pageToInclude = $extensionFullPath."/admin/browse.php";
extensionCreatePage($type, 0, $pageToInclude, translate("gallery_filemanager"), "", "");
}
break;
case 'create':
break;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment