ajout item fluxbb (fixes #66)

This commit is contained in:
afornerot 2019-12-17 11:14:49 +01:00
parent 8c9bd2f8b0
commit e124f3617d
5 changed files with 64 additions and 1 deletions

View File

@ -31,6 +31,7 @@
<variable name="activer_dokuwiki" type="oui/non" description="Activer Dokuwiki" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_econnect" type="oui/non" description="Activer eConnect" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_etherhome" type="oui/non" description="Activer Etherhome" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_fluxbb" type="oui/non" description="Activer Fluxbb" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_gepi" type="oui/non" description="Activer GEPI" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_grr" type="oui/non" description="Activer Grr" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_kanboard" type="oui/non" description="Activer Kanboard" hidden='True' exists='False'><value>non</value></variable>
@ -173,6 +174,12 @@
</variable>
<variable type='string' name='ninegate_widetherhome_url' description='URL complète de votre Etherhome' mandatory='True' />
<!-- FLUXBB -->
<variable type="oui/non" name='ninegate_activate_widfluxbb' description='Activer Fluxbb' mandatory='True'>
<value>non</value>
</variable>
<variable type='string' name='ninegate_widfluxbb_url' description='URL complète de votre Fluxbb' mandatory='True' />
<!-- GEPI -->
<variable type="oui/non" name='ninegate_activate_widgepi' description='Activer GEPI' mandatory='True'>
<value>non</value>
@ -314,6 +321,7 @@
<separator name="ninegate_activate_widdokuwiki">Paramètres associés à Dokuwiki</separator>
<separator name="ninegate_activate_wideconnect">Paramètres associés à eConnect</separator>
<separator name="ninegate_activate_widetherhome">Paramètres associés à Etherhome</separator>
<separator name="ninegate_activate_widfluxbb">Paramètres associés à Fluxbb</separator>
<separator name="ninegate_activate_widgepi">Paramètres associés à GEPI</separator>
<separator name="ninegate_activate_widgrr">Paramètres associés à Grr</separator>
<separator name="ninegate_activate_widkanboard">Paramètres associés à Kanboard</separator>
@ -471,6 +479,7 @@
<target type='variable'>ninegate_activate_widdokuwiki</target>
<target type='variable'>ninegate_activate_wideconnect</target>
<target type='variable'>ninegate_activate_widetherhome</target>
<target type='variable'>ninegate_activate_widfluxbb</target>
<target type='variable'>ninegate_activate_widgepi</target>
<target type='variable'>ninegate_activate_widgrr</target>
<target type='variable'>ninegate_activate_widkanboard</target>
@ -674,6 +683,30 @@
<!-- AFFICHAGE EN FONCTION DU WIDGET FLUXBB -->
<fill name='calc_multi_condition' target='ninegate_activate_widfluxbb'>
<param>oui</param>
<param type='eole' name='condition_1' hidden='False'>activer_fluxbb</param>
<param name='match'>oui</param>
<param name='mismatch'>non</param>
<param name='default_mismatch'>non</param>
</fill>
<condition name='hidden_if_in' source='ninegate_activate_widfluxbb'>
<param>non</param>
<target type='variable'>ninegate_widfluxbb_url</target>
</condition>
<fill name='calc_multi_condition' target='ninegate_widfluxbb_url'>
<param>oui</param>
<param type='eole' name='condition_1' hidden='False'>activer_fluxbb</param>
<param name='match'>/fluxbb</param>
<param name='default_mismatch'>None</param>
</fill>
<!-- AFFICHAGE EN FONCTION DU WIDGET GEPI -->
<fill name='calc_multi_condition' target='ninegate_activate_widgepi'>
<param>oui</param>

View File

@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
(-100, 'DRAAF', '130007107');
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}iEIczoPGRG4AD3gT80NOruss2uA94dV9
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}hTAPycxp8kXFhZIjteFA4fsB2CQcIenW
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');

View File

@ -43,6 +43,7 @@ class InitDataCommand extends ContainerAwareCommand
$activate_widdokuwiki = $this->getContainer()->getParameter('activate_widdokuwiki');
$activate_wideconnect = $this->getContainer()->getParameter('activate_wideconnect');
$activate_widetherhome = $this->getContainer()->getParameter('activate_widetherhome');
$activate_widfluxbb = $this->getContainer()->getParameter('activate_widfluxbb');
$activate_widgepi = $this->getContainer()->getParameter('activate_widgepi');
$activate_widgrr = $this->getContainer()->getParameter('activate_widgrr');
$activate_widkanboard = $this->getContainer()->getParameter('activate_widkanboard');
@ -354,6 +355,28 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityItem);
}
// Item fluxbb
if($activate_widfluxbb) {
$widfluxbb_url =$this->getContainer()->getParameter('widfluxbb_url');
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-397);
if(!$entityItem) {
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_fluxbb.png"]);
$entityItem = new Item();
$entityItem->setId(-397);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Fluxbb');
$entityItem->SetSubtitle("Forum");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
$entityItem->setEssential(true);
$entityItem->addGroup($groupall);
}
$entityItem->setUrl($widfluxbb_url);
$em->persist($entityItem);
}
// Item gepi
if($activate_widgepi) {
$widgepi_url =$this->getContainer()->getParameter('widgepi_url');

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -220,6 +220,13 @@ parameters:
activate_widetherhome: false
%end if
%if %%getVar("ninegate_activate_widfluxbb", 'non') == "oui"
activate_widfluxbb: true
widfluxbb_url: %%ninegate_widfluxbb_url
%else
activate_widfluxbb: false
%end if
%if %%getVar("ninegate_activate_widgepi", 'non') == "oui"
activate_widgepi: true
widgepi_url: %%ninegate_widgepi_url