diff options
| author | Christopher Guindon | 2017-05-08 16:42:55 +0000 |
|---|---|---|
| committer | Christopher Guindon | 2017-05-08 18:27:37 +0000 |
| commit | 06086e12be946804f858154cd0f0aa7791544e70 (patch) | |
| tree | a24c957da20be803cf8853e2a9944eb123e4f78c | |
| parent | 4d27e9dae13cd728cb6f75ff8c237c206a1e3fae (diff) | |
| download | org-06086e12be946804f858154cd0f0aa7791544e70.tar.gz org-06086e12be946804f858154cd0f0aa7791544e70.tar.xz org-06086e12be946804f858154cd0f0aa7791544e70.zip | |
Bug 514416 - EF staff page should link to account site
Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
Change-Id: I9a5bc37d621171df4a942c84e2e50e9caaad92a5
| -rw-r--r-- | foundation/staff.php | 126 | ||||
| -rw-r--r-- | foundation/staff.xml | 36 |
2 files changed, 100 insertions, 62 deletions
diff --git a/foundation/staff.php b/foundation/staff.php index fe7f301c..7f746b90 100644 --- a/foundation/staff.php +++ b/foundation/staff.php @@ -1,72 +1,80 @@ -<?php 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(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop' -/******************************************************************************* -* Copyright (c) 2005, 2011 Eclipse Foundation and others. -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the Eclipse Public License v1.0 -* which accompanies this distribution, and is available at -* http://www.eclipse.org/legal/epl-v10.html -* -* Contributors: -* Wayne Beaton (Eclipse Foundation) - initial API and implementation -*******************************************************************************/ -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"); +<?php +/** + * ***************************************************************************** + * Copyright (c) 2005, 2011, 2017 Eclipse Foundation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Wayne Beaton (Eclipse Foundation) - initial API and implementation + * Christopher Guindon (Eclipse Foundation) - Incremental improvements + * ***************************************************************************** + */ +require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); +require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); $App = new App(); $Nav = new Nav(); -$Menu = new Menu(); - -include($App->getProjectCommon()); - -$pageTitle = "Eclipse Foundation Staff"; -$pageKeywords = "foundation, staff"; -$pageAuthor = "Wayne Beaton"; +include ($App->getProjectCommon()); -function dumpStaffInfo($App) { +$pageTitle = "Eclipse Foundation Staff"; +$ThemeClass = $App->getThemeClass($theme); -} +$ThemeClass->setPageAuthor('Eclipse Foundation'); +$ThemeClass->setPageKeywords("Eclipse Foundation staff, Eclipse staff, Foundation staff"); +$ThemeClass->setPageTitle($pageTitle); ob_start(); ?> - <style>.staffmember { clear:both }</style> +<div id="midcolumn"> + <h1><?php print $pageTitle; ?></h1> + <p>The Eclipse Foundation is fortunate to have some very talented + people working full-time on behalf of the Eclipse community. Below is + the list of our staff.</p> + <p>Eclipse email addresses all follow the firstname.lastname@eclipse.org convention.</p> - <div id="midcolumn"> - <h1><?php echo $pageTitle ?></h1> - <p>The Eclipse Foundation is fortunate to have some very talented people working - full-time on behalf of the Eclipse community. Below is the list of our staff.</p> - <p>Eclipse email addresses all follow the firstname.lastname@eclipse.org convention.</p> - - <?php - $staff = simplexml_load_file(dirname(__FILE__) . '/staff.xml'); - foreach ($staff as $member) { - print '<div class="media clearfix">'; - print '<div class="col-xs-5 col-sm-4">'; - if ($member->image) { - print '<a name="' . $member->id . '"></a><img class="img-thumbnail img-responsive" src="' . $member->image . '" alt="' . $member->name . '">'; - } - print '</div>'; - print '<div class="col-xs-19 col-sm-20">'; - print '<div class="media-body">'; - print '<h4 class="media-heading">' . $member->name . '</h4>'; - if ($member->title) { - print '<h5 class="media-heading">' . $member->title . '</h5>'; + <?php + // @todo: Create a JS widjet to display staff bio from api.eclipse.org + $staff = simplexml_load_file(dirname(__FILE__) . '/staff.xml'); + foreach ($staff as $member) { + print '<div class="media clearfix">'; + print '<div class="col-xs-5 col-sm-4">'; + if ($member->image) { + print '<a name="' . $member->id . '"'; + if (!empty($member->username)) { + print ' href="https://www.eclipse.org/user/' . $member->username . '"'; } - print $member->description; - if ($member->twitter) { - print $App->getTwitterFollowWidget($member->twitter); - } - print '</div></div></div><hr/>'; - - } - ?> - </div> + print '><img class="img-thumbnail img-responsive" src="' . $member->image . '" alt="' . $member->name . '"></a>'; + } + print '</div>'; + print '<div class="col-xs-19 col-sm-20">'; + print '<div class="media-body">'; + print '<h4>'; + if (!empty($member->username)) { + print '<a href="https://www.eclipse.org/user/' . $member->username . '">' . $member->name . ' <i class="fa fa-link" aria-hidden="true"></i></a>'; + } + else { + print $member->name; + } + print '</h4>'; + if ($member->title) { + print '<h5 class="media-heading">' . $member->title . '</h5>'; + } + print $member->description; + if ($member->twitter) { + print $App->getTwitterFollowWidget($member->twitter); + } + print '</div></div></div><hr/>'; + } + ?> + </div> <?php - # Paste your HTML content between the EOHTML markers! - $html = ob_get_contents(); - ob_end_clean(); +$html = ob_get_contents(); +ob_end_clean(); - # Generate the web page - $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); -?> +$ThemeClass->setNav($Nav); +$ThemeClass->setHtml($html); +$ThemeClass->generatePage();
\ No newline at end of file diff --git a/foundation/staff.xml b/foundation/staff.xml index e3265ff7..ce7f3347 100644 --- a/foundation/staff.xml +++ b/foundation/staff.xml @@ -3,6 +3,7 @@ <staffmember id="mike"> <name>Mike Milinkovich</name> + <username>mmilinkovich</username> <title>Executive Director</title> <twitter>mmilinkov</twitter> <image>images_staff/mike.jpg</image> @@ -19,6 +20,7 @@ <staffmember id="thea"> <name>Thea Aldrich</name> + <username>taldrich</username> <title>LocationTech Developer Advocate</title> <twitter>TheaClay</twitter> <image>images_staff/thea.jpg</image> @@ -30,6 +32,7 @@ <staffmember id="darrell"> <name>Darrell Armstrong</name> + <username>darmstrong</username> <title>Web Developer</title> <image>images_staff/darrella.jpg</image> <description><![CDATA[ @@ -43,6 +46,7 @@ <staffmember id="mikael"> <name>Mikaël Barbero</name> + <username>mbarbero</username> <title>Senior Platform Developer</title> <twitter>mikbarbero</twitter> <image>images_staff/mikael.jpg</image> @@ -58,6 +62,7 @@ <staffmember id="wayne"> <name>Wayne Beaton</name> + <username>wbeaton</username> <title>Director of Open Source Projects</title> <twitter>waynebeaton</twitter> <image>images_staff/wayne.jpg</image> @@ -77,6 +82,7 @@ <staffmember id="gael"> <name>Gaël Blondelle</name> + <username>gblondelle</username> <title>Director, European Ecosystem Development</title> <twitter>gblondelle</twitter> <image>images_staff/gael.jpg</image> @@ -89,6 +95,7 @@ <staffmember id="ben"> <name>Benjamin Cabé</name> + <username>bcabe</username> <title>Community Evangelist</title> <twitter>kartben</twitter> <image>images_staff/ben.jpg</image> @@ -101,6 +108,7 @@ <staffmember id="sharonc"> <name>Sharon Corbett</name> + <username>scorbett</username> <image>images_staff/sharonc.jpg</image> <title><![CDATA[Manager, Intellectual Property]]></title> <twitter>mysharona_lc</twitter> @@ -112,6 +120,7 @@ <staffmember id="chrisguindon"> <name>Christopher Guindon</name> + <username>cguindon</username> <image>images_staff/chris.jpg</image> <title>Lead Web Developer</title> <twitter>chrisguindon</twitter> @@ -123,6 +132,7 @@ <staffmember id="fredgurr"> <name>Frederic Gurr</name> + <username>fgurr</username> <image>images_staff/fred.jpg</image> <title>Release Engineer</title> <twitter>fr3dg</twitter> @@ -134,6 +144,7 @@ <staffmember id="kathirsch"> <name>Kat Hirsch</name> + <username>khirsch</username> <image>images_staff/kat.png</image> <title>Marketing and Events</title> <twitter>katvcb</twitter> @@ -146,6 +157,7 @@ <staffmember id="susan"> <name>Susan Iwai</name> + <username>siwai</username> <image>images_staff/susan.jpg</image> <title>European Ecosystem</title> <description> @@ -157,6 +169,7 @@ <staffmember id="anne"> <name>Anne Jacko</name> + <username>ajacko</username> <image>images_staff/Anne.jpg</image> <title>Conference Queen</title> <twitter>annejacko</twitter> @@ -171,6 +184,7 @@ <staffmember id="roxanne"> <name>Roxanne Joncas</name> + <username>rjoncas</username> <image>images_staff/roxanne.jpg</image> <title>Marketing Specialist</title> <twitter>roxannejoncas</twitter> @@ -185,6 +199,7 @@ <staffmember id="philippe"> <name>Philippe Krief</name> + <username>pkriefrvi</username> <image>images_staff/philippe.jpeg</image> <title>Director, Research Relations</title> <twitter>phkrief</twitter> @@ -198,6 +213,7 @@ <staffmember id="larocque"> <name>Chris Larocque</name> + <username>clarocque</username> <title><![CDATA[Director, Operations<br/>Treasurer]]></title> <image>images_staff/chrisl.jpg</image> <description> <