Apply new button header of page
Change-Id: I8737aea4aec51a080371b82a9fec5f50f1888de8
Signed-off-by: Faycal Abka <abka.faycal@gmail.com>
diff --git a/_index.html b/_index.html
index 9d8bbc9..826f54e 100644
--- a/_index.html
+++ b/_index.html
@@ -1,4 +1,5 @@
+<!-- //This is deactivated and replaced by newset style. To be deleted
<div id="bigbuttons">
<h3>Primary Links</h3>
<ul>
@@ -20,7 +21,7 @@
</li>
</ul>
</div>
-
+-->
<div id="midcolumn">
diff --git a/index.php b/index.php
index 40dabe2..738c638 100755
--- a/index.php
+++ b/index.php
@@ -50,5 +50,47 @@
$App->AddExtraHtmlHeader('<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>');
$App->AddExtraHtmlHeader('<link rel="stylesheet" href="/eclipse.org-common/themes/solstice/public/stylesheets/quicksilver.min.css?v1.0">');
$pageKeywords="MDA,MDE,egf,software factories,EMF,EMFT,modeling,Eclipse";
- $App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
+
+ // Initialize $variables.
+ $variables = array();
+ $links = array();
+
+ $links[] = array(
+ 'icon' => 'fa-download', // Required
+ 'url' => 'http://wiki.eclipse.org/EGF_Installation/', // Required
+ 'title' => 'Download', // Required
+ //'target' => '_blank', // Optional
+ 'text' => 'Eclipse Distribution, Update Site, Dropins' // Optional
+ );
+
+ $links[] = array(
+ 'icon' => 'fa-book', // Required
+ 'url' => 'http://wiki.eclipse.org/EGF_Tutorial_and_Use_Cases', // Required
+ 'title' => 'Documentation', // Required
+ //'target' => '_blank', // Optional
+ 'text' => 'Tutorials, Examples, Videos, Online Reference' // Optional
+ );
+
+ $links[] = array(
+ 'icon' => 'fa-support', // Required
+ 'url' => 'http://wiki.eclipse.org/EGF', // Required
+ 'title' => 'Support', // Required
+ //'target' => '_blank', // Optional
+ 'text' => 'Bug Tracker, Newsgroup, Professional Support' // Optional
+ );
+
+ $variables['header_nav'] = array(
+ 'links' => $links, // Required
+ 'logo' => array( // Required
+ 'src' => 'resources/EGF_Overview.png', // Required
+ 'alt' => 'The Eclipse Foundation', // Optional
+ 'url' => 'http://www.eclipse.org', // Optional
+ //'target' => '_blank' // Optional
+ ),
+ );
+
+ // Set Solstice theme variables (Array)
+ $App->setThemeVariables($variables);
+
+ $App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
\ No newline at end of file