first commit
This commit is contained in:
commit
5b8898dfb9
9 changed files with 78 additions and 0 deletions
16
actions/AbsencesAction.php
Normal file
16
actions/AbsencesAction.php
Normal 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
18
actions/NotesAction.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
9
actions/documentation.yaml
Normal file
9
actions/documentation.yaml
Normal 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
15
config.yaml
Normal 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
6
desc.xml
Normal 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
6
index.php
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Vérification de sécurité
|
||||||
|
if (!defined('TOOLS_MANAGER')) {
|
||||||
|
exit('accès direct interdit');
|
||||||
|
}
|
6
lang/meeo_fr.inc.php
Normal file
6
lang/meeo_fr.inc.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'MEEO_ABSENCES_LABEL' => 'Absences',
|
||||||
|
'MEEO_NOTES_LABEL' => 'Notes',
|
||||||
|
];
|
1
templates/absences.twig
Normal file
1
templates/absences.twig
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>Absences</p>
|
1
templates/notes.twig
Normal file
1
templates/notes.twig
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>Notes</p>
|
Loading…
Reference in a new issue