Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Poirier2019-07-26 17:54:17 +0000
committerEric Poirier2019-07-26 17:54:24 +0000
commit19b7aee0f84f63c362043f7e139871da5e71046f (patch)
treed82379c3ceaa62f17a6ff218f700287d54ded8b7
parentf59a11c7ee8edb1dd3b920074821332d26dcea9f (diff)
downloadeclipse.org-common-19b7aee0f84f63c362043f7e139871da5e71046f.tar.gz
eclipse.org-common-19b7aee0f84f63c362043f7e139871da5e71046f.tar.xz
eclipse.org-common-19b7aee0f84f63c362043f7e139871da5e71046f.zip
Bug 534152 - Get proper xml file for featured story
Change-Id: Ia19af545d13a19ac41bb1f57bc3c455a7074601c Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
-rw-r--r--classes/themes/baseTheme.class.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/themes/baseTheme.class.php b/classes/themes/baseTheme.class.php
index bc00a7f6..1717a025 100644
--- a/classes/themes/baseTheme.class.php
+++ b/classes/themes/baseTheme.class.php
@@ -353,9 +353,12 @@ class BaseTheme {
require_once($App->getBasePath() . '/classes/ads/featuredStory.class.php');
$FeaturedStory = new FeaturedStory();
if ($FeaturedStory instanceof FeaturedStory) {
- $FeaturedStory->setXmlData('featured-story.xml');
+ $FeaturedStory->setXmlData($xml_file);
$featured_story = $FeaturedStory->getFeaturedStory();
if (!empty($featured_story)) {
+ if (!empty($featured_story['bg_image'])) {
+ $this->setExtraHeaders('<style>.featured-story-block-content:before {background-image:url(//www.eclipse.org/home/' . $featured_story['bg_image'] . ');}</style>');
+ }
return $featured_story;
}
}

Back to the top