This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_projectCommon.php
123 lines (101 loc) · 4.16 KB
/
_projectCommon.php
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
/**
* Copyright (c) 2014-2017, 2018 Eclipse Foundation.
*
* 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) - Initial implementation
* Eric Poirier (Eclipse Foundation)
*
* SPDX-License-Identifier: EPL-2.0
*/
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
$Nav = new Nav();
// Set the theme for your project's web pages.
// See the Committer Tools "Phoenix" secion in the How Do I? for list of themes
// https://dev.eclipse.org/committers/
$theme = "solstice";
$Theme->setLayout('thin');
$Theme->setDisplayFooterPrefix(FALSE);
$Theme->getGoogleTagManager();
// Define your project-wide Nav bars here.
// Format is Link text, link URL (can be http://www.someothersite.com/), target
// (_self, _blank).
$Nav->addNavSeparator("Related Links", "/jetty/");
$Nav->addCustomNav("About", "/jetty/about.html", "_self", NULL);
$Nav->addCustomNav("Tools", "/jetty/tools.html", "_self", NULL);
$Nav->addCustomNav("Contribute", "/jetty/contribute.php", "_self", NULL);
$Nav->addCustomNav("Source code", "https://github.com/jetty/jetty.project", "_self", NULL);
$Nav->addCustomNav("Enter Bug", "https://github.com/jetty/jetty.project/issues/new", "_self", NULL);
#$Nav->addCustomNav("Project Page", "https://projects.eclipse.org/projects/rt.jetty", "_self", NULL);
#$Nav->addCustomNav("IP Log", "http://www.eclipse.org/projects/ip_log.php?projectid=rt.jetty", "_self", NULL);
// Initialize custom jetty variables.
include '_jettyVersions.php';
// Initialize custom solstice $variables.
$variables = array();
// Add classes to <body>. (String)
$variables['body_classes'] = '';
// Insert custom HTML in the breadcrumb region. (String)
$variables['breadcrumbs_html'] = "";
// Hide the breadcrumbs. (Bool)
$variables['hide_breadcrumbs'] = FALSE;
// Insert HTML before the left nav. (String)
$variables['leftnav_html'] = '';
// Update the main container class (String) container-full works as well
$variables['main_container_classes'] = 'container';
// Insert HTML after opening the main content container, before the left
// sidebar. (String)
$variables['main_container_html'] = '';
// Insert header navigation for project websites.
// Bug 436108 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=436108
$links = array();
$links[] = array(
'icon' => 'fa-download', // Required
'url' => '/jetty/download.php', // Required
'title' => 'Download', // Required
// 'target' => '_blank', // Optional
'text' => 'Distributions, Javadoc, Checksums' // Optional
);
$links[] = array(
'icon' => 'fa-users', // Required
'url' => '/jetty/get_involved.php', // Required
'title' => 'Get Involved', // Required
// 'target' => '_blank', // Optional
'text' => 'Contributions, Community, Mailing Lists' // Optional
);
$links[] = array(
'icon' => 'fa-book', // Required
'url' => '/jetty/documentation.php', // Required
'title' => 'Documentation', // Required
// 'target' => '_blank', // Optional
'text' => 'Guides: Development, Administration, etc' // Optional
);
$links[] = array(
'icon' => 'fa-anchor', // Required
'url' => '/jetty/support.php', // Required
'title' => 'Support', // Required
// 'target' => '_blank', // Optional
'text' => 'Open Source or Professional Support' // Optional
);
$links[] = array(
'icon' => 'fa-bullhorn', // Required
'url' => '/jetty/security_reports.php', // Required
'title' => 'Security Reports', // Required
// 'target' => '_blank', // Optional
'text' => 'Information on Past Vulnerabilities' // Optional
);
$variables['header_nav'] = array(
'links' => $links, // Required
'logo' => array ( // Required
'src' => '/jetty/common/images/jetty-logo.svg', // Required
'alt' => 'Eclipse Jetty Project', // Optional
'url' => '/jetty' // Optional
// 'target' => '_blank' // Optional
)
);
// Set Solstice theme variables. (Array)
$App->setThemeVariables($variables);