-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_projectCommon.php
executable file
·66 lines (53 loc) · 2.17 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
<?php
require_once ($_SERVER['DOCUMENT_ROOT'] . '/eclipse.org-common/system/app.class.php');
require_once ($_SERVER['DOCUMENT_ROOT'] . '/eclipse.org-common/system/nav.class.php');
/**
* Copyright (c) 2015-present 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:
* Stuart McCulloch - Custom content for Sisu
*
* SPDX-License-Identifier: EPL-2.0
*/
$currentRelease = '0.3.5';
$projectInfo = 'https://projects.eclipse.org/projects/technology.sisu/';
$projectSource = 'https://github.com/eclipse/sisu.inject';
$projectCi = 'https://ci.eclipse.org/sisu/';
$projectBugs = 'https://github.com/eclipse/sisu.inject/issues';
$projectWiki = 'https://github.com/eclipse/sisu.inject/wiki';
$pageKeywords = 'sisu, dependency injection, inject, ioc, jsr330';
$pageAuthor = 'Stuart McCulloch';
$App = new App();
$Nav = new Nav();
$Nav->addNavSeparator('Sisu', '/sisu/');
$Nav->addCustomNav('Javadoc', 'https://eclipse.github.io/sisu.inject/apidocs/reference/packages.html', '_self', NULL);
$Nav->addCustomNav('Source code', $projectSource, '_self', NULL);
$Nav->addCustomNav('Project info', $projectInfo, '_self', NULL);
$incubation = '<div style="text-align:center"><a href="/projects/what-is-incubation.php"><img class="img-responsive"
align="center" src="https://projects.eclipse.org/sites/all/modules/custom/pmi/project_state/images/incubating.png"
border="0" alt="Incubation" /></a></div>';
$Nav->setHTMLBlock($incubation);
$Theme = $App->getThemeClass();
$Theme->setPageAuthor($pageAuthor);
$Theme->setPageKeywords($pageKeywords);
$Theme->setPageTitle($pageTitle);
$Theme->setBreadcrumb($pageTitle);
$Theme->setNav($Nav);
$variables = array();
$variables['body_classes'] = '';
$variables['breadcrumbs_html'] = '';
$variables['hide_breadcrumbs'] = FALSE;
$variables['leftnav_html'] = '';
$variables['main_container_classes'] = 'container';
$variables['main_container_html'] = '';
// disable big button in header
$variables['btn_cfa'] = array(
'hide' => TRUE,
'text' => ' '
);
$App->setThemeVariables($variables);
?>