diff options
Diffstat (limited to 'src/sections/6_advertising.php')
| -rw-r--r-- | src/sections/6_advertising.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/sections/6_advertising.php b/src/sections/6_advertising.php new file mode 100644 index 0000000..80ce2d5 --- /dev/null +++ b/src/sections/6_advertising.php | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <?php | ||
| 2 | // src/sections/6_advertising.php | ||
| 3 | // | ||
| 4 | // -- SECTION 6: Communication -- | ||
| 5 | |||
| 6 | function EditAdvertising(): array | ||
| 7 | { | ||
| 8 | $MenuCommunication = new ZenityList(ZenitySetup::$menu_communication['text'], ZenitySetup::$menu_communication['entrees']); | ||
| 9 | |||
| 10 | $choix_niv2 = exec($MenuCommunication->get()); | ||
| 11 | if($choix_niv2 === ZenitySetup::$menu_communication['entrees'][0]) // = Flyer (nécessite gimp) | ||
| 12 | { | ||
| 13 | exec(windowAppCommand(Config::$image_editor, Config::$pub_path . Config::$flyer)); | ||
| 14 | } | ||
| 15 | elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][1]) // = Carte de visite (nécessite scribus) | ||
| 16 | { | ||
| 17 | exec(windowAppCommand(Config::$publishing, Config::$pub_path . Config::$business_card)); | ||
| 18 | } | ||
| 19 | elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][2]) // = Explorateur de fichiers | ||
| 20 | { | ||
| 21 | exec(windowAppCommand(Config::$file_explorer, Config::$pub_path)); | ||
| 22 | } | ||
| 23 | else | ||
| 24 | { | ||
| 25 | return [0, null]; // menu principal | ||
| 26 | } | ||
| 27 | return [6, null]; | ||
| 28 | } | ||
