-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_projectCommon.php
More file actions
executable file
·46 lines (40 loc) · 1.65 KB
/
_projectCommon.php
File metadata and controls
executable file
·46 lines (40 loc) · 1.65 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
<?php
/**
* Copyright (c) 2018 Eclipse Foundation and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Christopher Guindon (Eclipse Foundation)
*
* SPDX-License-Identifier: EPL-2.0
*/
require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
// Load Eclipse Theme
$Theme = $App->getThemeClass("eclipse_ide");
# Define your project-wide Nav bars here.
# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
# these are optional
$Nav = new Nav();
$Nav->setLinkList(array());
$Nav->addNavSeparator("EGit", "/egit/");
$Nav->addCustomNav("Download", "/egit/download/", "_self", 3);
$Nav->addCustomNav("Documentation", "/egit/documentation/", "_self", 3);
$Nav->addCustomNav("Support", "/egit/support/", "_self", 3);
$Nav->addCustomNav("Getting Involved", "/egit/developers/", "_self", 3);
$Theme->setNav($Nav);
$Theme->setPageKeywords("eclipse, egit, git, vcs");
$Theme->setPageAuthor("Chris Aniszczyk");
$Theme->setPageTitle("EGit");
$Menu = new Menu();
$Menu->setMenuItemList(array());
$Menu->addMenuItem("Home", "/egit/", "_self");
$Menu->addMenuItem("Download", "/egit/download/", "_self");
$Menu->addMenuItem("Documentation", "/egit/documentation/", "_self");
$Menu->addMenuItem("Support", "/egit/support/", "_self");
$Menu->addMenuItem("Developers", "/egit/developers/", "_self");
$Theme->setMenu($Menu);
$App->Promotion = TRUE;