Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFaycal Abka2018-05-22 11:55:38 -0400
committerFaycal Abka2018-05-22 11:55:38 -0400
commit170b218a74476ce02b35d1d9356189d6856de832 (patch)
tree10de11984bb6415eff55ad288232222d67b82704
parent45a717c72d4b47277ee4238f875a23219554a46c (diff)
downloadegf-170b218a74476ce02b35d1d9356189d6856de832.tar.gz
egf-170b218a74476ce02b35d1d9356189d6856de832.tar.xz
egf-170b218a74476ce02b35d1d9356189d6856de832.zip
Apply new button header of page
Change-Id: I8737aea4aec51a080371b82a9fec5f50f1888de8 Signed-off-by: Faycal Abka <abka.faycal@gmail.com>
-rw-r--r--_index.html3
-rwxr-xr-xindex.php44
2 files changed, 45 insertions, 2 deletions
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

Back to the top