Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 217496 Details for
Bug 208422
Eclipse project download page needs love
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Nova theme integration patch for download site
Latest+Nova+theme+integration+patch+for+download+sites.patch (text/plain), 5.29 KB, created by
Christopher Guindon
on 2012-06-18 10:35:24 EDT
(
hide
)
Description:
Nova theme integration patch for download site
Filename:
MIME Type:
Creator:
Christopher Guindon
Created:
2012-06-18 10:35:24 EDT
Size:
5.29 KB
patch
obsolete
>From e2cc82712bf296843b2df6a70597783d98450515 Mon, 18 Jun 2012 10:34:06 -0400 >From: Christopher Guindon <chris.guindon@eclipse.org> >Date: Mon, 18 Jun 2012 10:33:25 -0400 >Subject: [PATCH] Nova theme integration patch for download sites. > >diff --git a/downloadsites/eclipse/default_style.css b/downloadsites/eclipse/default_style.css >old mode 100755 >new mode 100644 >index d725483..6379825 >--- a/downloadsites/eclipse/default_style.css >+++ b/downloadsites/eclipse/default_style.css >@@ -1,11 +1,12 @@ >-p, table, td, th { font-family: arial, helvetica, geneva; font-size: 10pt} >-pre { font-family: "Courier New", Courier, mono; font-size: 10pt} >-h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px} >-code { font-family: "Courier New", Courier, mono; font-size: 10pt} >-sup { font-family: arial,helvetica,geneva; font-size: 10px} >-h3 { font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold} >-li { font-family: arial, helvetica, geneva; font-size: 10pt} >-h1 { font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold} >-body { font-family: arial, helvetica, geneva; font-size: 10pt; clip: rect( ); margin-top: 5mm; margin-left: 3mm} >-.indextop { font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold} >-.indexsub { font-size: xx-small;; font-family: Arial, Helvetica, sans-serif; color: #8080FF} >+p, table, td, th { font-family: arial, helvetica, geneva; font-size: 10pt} >+pre { font-family: "Courier New", Courier, mono; font-size: 10pt} >+h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px} >+code { font-family: "Courier New", Courier, mono; font-size: 10pt} >+sup { font-family: arial,helvetica,geneva; font-size: 10px} >+h3 { font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold} >+li { font-family: arial, helvetica, geneva; font-size: 10pt} >+h1 { font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold} >+body { font-family: arial, helvetica, geneva; font-size: 10pt; clip: rect( ); margin-top: 5mm; margin-left: 3mm} >+.indextop { font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold} >+.indexsub { font-size: xx-small;; font-family: Arial, Helvetica, sans-serif; color: #8080FF} >+.container_php, .container_default{ padding:0 20px} >\ No newline at end of file >diff --git a/downloadsites/eclipse/downloads/createIndex4x.php b/downloadsites/eclipse/downloads/createIndex4x.php >index 43c4af7..c2c7a52 100644 >--- a/downloadsites/eclipse/downloads/createIndex4x.php >+++ b/downloadsites/eclipse/downloads/createIndex4x.php >@@ -1,20 +1,44 @@ >+<?php >+ # Begin: page-specific settings. Change these. >+ $pageTitle = "Eclipse Project Downloads"; >+ $pageKeywords = ""; >+ $pageAuthor = ""; >+ >+ //ini_set("display_errors", "true"); >+ //error_reporting (E_ALL); >+ $eclipseStream="4"; >+ $otherIndexFile="eclipse3x.html"; >+ $otherStream="3"; >+ include('dlconfig4.php'); >+ $subdirDrops="drops4"; >+ >+ # Use the basic white layout if the file is not hosted on download.eclipse.org >+ $layout = (array_key_exists("SERVER_NAME", $_SERVER) && ($_SERVER['SERVER_NAME'] == "download.eclipse.org")) ? "default" : "html"; >+ >+ ob_start(); >+ >+ switch($layout){ >+ case 'html': >+ #If this file is not on download.eclipse.org print the legacy headers.?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> >-<?php >-//ini_set("display_errors", "true"); >-//error_reporting (E_ALL); >-$eclipseStream="4"; >-$otherIndexFile="eclipse3x.html"; >-$otherStream="3"; >-include('dlconfig4.php'); >-$subdirDrops="drops4"; >- >-?> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > <link rel="stylesheet" href="../default_style.css" /> >-<title>Eclipse Project Downloads</title></head> >-<body> >+<title><?php echo $pageTitle;?></title></head> >+<body><?php >+ break; >+ default: >+ #Otherwise use the default layout (content printed inside the nova theme). >+ require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); >+ require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); >+ require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); >+ $App = new App(); >+ $Nav = new Nav(); >+ $Menu = new Menu(); >+ break; >+ }?> >+<div class="container_<?php echo $layout;?>"> > <table border="0" cellspacing="5" cellpadding="2" width="100%" > > > <tr> >@@ -414,7 +438,22 @@ > } > } > >-?> >-</body> >-</html> >+echo '</div>'; >+$html = ob_get_clean(); >+ >+switch($layout){ >+ case 'html': >+ #echo the computed content with the body and html closing tag. This is for the old layout. >+ echo $html; >+ echo '</body>'; >+ echo '</html>'; >+ break; >+ >+ default: >+ #For the default view we use $App->generatePage to generate the page inside nova. >+ $App->AddExtraHtmlHeader('<link rel="stylesheet" href="../default_style.css" />'); >+ $App->Promotion = FALSE; >+ $App->generatePage('Nova', $Menu, NULL , $pageAuthor, $pageKeywords, $pageTitle, $html); >+ break; >+} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208422
:
217373
|
217375
|
217376
|
217377
|
217429
|
217495
| 217496