blob: 80ce2d525a9ac38240cabe1e229553fd98c832ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
// src/sections/6_advertising.php
//
// -- SECTION 6: Communication --
function EditAdvertising(): array
{
$MenuCommunication = new ZenityList(ZenitySetup::$menu_communication['text'], ZenitySetup::$menu_communication['entrees']);
$choix_niv2 = exec($MenuCommunication->get());
if($choix_niv2 === ZenitySetup::$menu_communication['entrees'][0]) // = Flyer (nécessite gimp)
{
exec(windowAppCommand(Config::$image_editor, Config::$pub_path . Config::$flyer));
}
elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][1]) // = Carte de visite (nécessite scribus)
{
exec(windowAppCommand(Config::$publishing, Config::$pub_path . Config::$business_card));
}
elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][2]) // = Explorateur de fichiers
{
exec(windowAppCommand(Config::$file_explorer, Config::$pub_path));
}
else
{
return [0, null]; // menu principal
}
return [6, null];
}
|