diff --git downloadsites/eclipse/default_style.css downloadsites/eclipse/default_style.css index d725483..6379825 100755 --- downloadsites/eclipse/default_style.css +++ 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 downloadsites/eclipse/downloads/createIndex4x.php downloadsites/eclipse/downloads/createIndex4x.php index fd9066e..a7d4c3d 100644 --- downloadsites/eclipse/downloads/createIndex4x.php +++ downloadsites/eclipse/downloads/createIndex4x.php @@ -1,20 +1,66 @@ +'; + + #OPTIONS: php, html. If the value of the $_GET['layout'] is something else the value of $layout is 'default'; + $layout = (!isset($_GET['layout']) || ($_GET['layout'] != "php" && $_GET['layout'] != "html")) ? 'default' : $_GET['layout']; + + ob_start(); + + switch($layout){ + case 'html': + #If the old HTML layout is requested echo the legacy headers.?> - -Eclipse Project Downloads - +<?php echo $pageTitle;?> + + $pageTitle = ""; + $pageKeywords = ""; + $pageAuthor = ""; + 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(); + $App->AddExtraHtmlHeader(''); + ob_start(); AddExtraHtmlHeader(''); + break; + }?> +
@@ -386,7 +432,32 @@ } } -?> - - +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; + + case 'php': + #For the php layout since this view output all the code that need's to be copied over to a .php file + #We are going to print all the current html and then print the final php code needed for the nova theme + echo $html; + echo $op; ?> + $html = ob_get_clean(); + $App->Promotion = FALSE; + $App->generatePage('Nova', $Menu, NULL , $pageAuthor, $pageKeywords, $pageTitle, $html);generatePage to generate the page inside nova. + $App->Promotion = FALSE; + $App->generatePage('Nova', $Menu, NULL , $pageAuthor, $pageKeywords, $pageTitle, $html); + break; +}