first commit

This commit is contained in:
mckmonster 2024-07-04 07:32:34 +02:00
commit 5b8898dfb9
9 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<?php
use YesWiki\Core\YesWikiAction;
class AbsencesAction extends YesWikiAction
{
public function formatArguments($arg)
{
return [];
}
public function run()
{
return $this->render('@meeo/absences.twig');
}
}

18
actions/NotesAction.php Normal file
View file

@ -0,0 +1,18 @@
<?php
namespace YesWiki\Meeo;
use YesWiki\Core\YesWikiAction;
class NotesAction extends YesWikiAction
{
public function formatArguments($arg)
{
return [];
}
public function run()
{
return $this->render('@meeo/notes.twig');
}
}

View file

@ -0,0 +1,9 @@
label: MeeO # Nom affiché dans la barre d'action de l'éditeur
actions:
absences:
label: _T(MEEO_ABSENCES_LABEL)
description: Absences des élèves
notes:
label: _T(MEEO_NOTES_LABEL)
description: Notes des élèves
# La liste des actions de ce groupe

15
config.yaml Normal file
View file

@ -0,0 +1,15 @@
parameters:
Meeo:
my_param: 'this is a test param defined in tools/meeo/config.yaml. It can be ovewritten in wakka.config.php'
services:
_defaults:
autowire: true
public: true
# YesWiki\MeeO\Service\:
# resource: 'services/*'
# Allows to use controllers as services
# YesWiki\MeeO\Controller\:
# resource: 'controllers/*'

6
desc.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugin name="yes-wiki-meeo" version="0.1" active="1">
<author>mckmonster</author>
<label>Meeo</label>
<desc>Plugin pour Meeo</desc>
</plugin>

6
index.php Executable file
View file

@ -0,0 +1,6 @@
<?php
// Vérification de sécurité
if (!defined('TOOLS_MANAGER')) {
exit('acc&egrave;s direct interdit');
}

6
lang/meeo_fr.inc.php Normal file
View file

@ -0,0 +1,6 @@
<?php
return [
'MEEO_ABSENCES_LABEL' => 'Absences',
'MEEO_NOTES_LABEL' => 'Notes',
];

1
templates/absences.twig Normal file
View file

@ -0,0 +1 @@
<p>Absences</p>

1
templates/notes.twig Normal file
View file

@ -0,0 +1 @@
<p>Notes</p>