-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.php
More file actions
52 lines (44 loc) · 2.18 KB
/
Copy pathmenu.php
File metadata and controls
52 lines (44 loc) · 2.18 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
if($on and $_SESSION["TourLocRule"]=='PL'){
$ret['PRNT'][] = MENU_DIVIDER;
$ret['PRNT'][] = 'Dyplomy|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/Diplomas/Diplomas.php';
$ret['PRNT'][] = 'Klasyfikacja punktowa|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/PointsRanking/PointsRanking.php';
$ret['PRNT'][] = 'Puchar Polski - klasyfikacja|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/PointsRanking/Cup.php';
$ret['PRNT'][] = 'Mapa województw|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/PointsRanking/VoivodeshipMap.php';
$ret['PART']['SYNC'][] = 'Import by licence|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/Import/BibImport.php';
$ret['PART']['TARG'][] = 'Rozstaw. tarcze ABC/ACD|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/Targets/SetTargetABCACD.php';
$ret['PART']['SYNC'][] = MENU_DIVIDER;
$ret['PART']['SYNC'][] = 'Install Sportzona|' . $CFG->ROOT_DIR . 'Modules/Sets/PL/Lookup/Install.php';
}
/*
You can customize your menus adding lines in this file. The structure is as follows:
· $ret['XXXX'][] = 'Description of the item' . '|' . $CFG->ROOT_DIR . 'Modules/Custom/' . 'Link/To/Your/page.php';
OR
· $ret['XXXX'][] = MENU_DIVIDER;
* Global variables:
- $on: if true, a tournament is selected and open
- $ret['XXXX']: the first level menu items.
You can insert whatever you want as the key to create a new main menu
or add your items in the predefined menus.
A list of first level predefined keys (XXXX) follow:
· COMP: Competition
· PART: Participants
· QUAL: Qualification
· ELIM: Eliminations
· FINI: Individual Finals
· FINT: Team Finals
· CLUB: Club Team Finals
· CAST: Cas-Cag Finals
· PRNT: Printouts
· HHT: HHT features
· MEDI: Media outputs
- MENU_DIVIDER: a constant that writes a separation line in the menu
- $CFG->ROOT_DIR: the prefix for EVERY link you want to insert in your pages.
* Sub menu:
Creating a submenu is straight forward: just add a nested array, giving it a (string)key, as in:
$ret['XXXX']['YYYY']
* Link to resource
Each menu item is a string, that joins the text description of the item and the link itself with a pipe (|) symbol:
$ret['XXXX'][] = 'Description of the item' . '|' . $CFG->ROOT_DIR . 'Modules/Custom/' . 'Link/To/Your/page.php';
*/
?>