From e2cc82712bf296843b2df6a70597783d98450515 Mon, 18 Jun 2012 10:34:06 -0400 From: Christopher Guindon 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 @@ + - -Eclipse Project Downloads - +<?php echo $pageTitle;?> + +
@@ -414,7 +438,22 @@ } } -?> - - +echo ''; +$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 ''; + echo ''; + break; + + default: + #For the default view we use $App->generatePage to generate the page inside nova. + $App->AddExtraHtmlHeader(''); + $App->Promotion = FALSE; + $App->generatePage('Nova', $Menu, NULL , $pageAuthor, $pageKeywords, $pageTitle, $html); + break; +}