Use featured story js
Change-Id: I992e714de7085fb67abfd8c62ce8a7dbdd9018aa
Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
diff --git a/content/en_index.php b/content/en_index.php
index fd415cb..a7e2a1b 100644
--- a/content/en_index.php
+++ b/content/en_index.php
@@ -14,18 +14,13 @@
*/
?>
-
-<div class="featured-story featured-alternate margin-bottom-60">
+<div class="eclipsefdn-featured-story featured-story margin-bottom-60" data-publish-target="eclipse_org">
<div class="container">
<div class="row">
- <div class="col-sm-12 col-sm-offset-2 col-md-16 col-md-offset-0 featured-story-block featured-story-block-content match-height-item-by-row" data-mh="featured-story">
- <?php if (!empty($featured_story['prefix'])){ print $featured_story['prefix']; }?>
- <?php print $featured_story['title']; ?>
- <?php print $featured_story['body']; ?>
- <?php print $featured_story['link']; ?>
+ <div class="col-sm-12 col-sm-offset-2 col-md-16 col-md-offset-0 featured-story-block featured-story-block-content featured-container match-height-item-by-row" data-mh="featured-story">
</div>
<div class="col-sm-9 col-md-8 featured-ad featured-story-block match-height-item-by-row" data-mh="featured-story">
- <div class="featured-ad-content clearfix">
+ <div class="featured-ad-content clearfix">
<div style="max-width: 200px;margin:auto;">
<p class="featured-story-description margin-0 text-center">Sponsored Ad</p>
<?php print $Theme->getRandomPromo(TRUE);?>
@@ -34,7 +29,7 @@
</div>
</div>
</div>
- </div>
+ </div>
</div>
<!-- Announcements and Community news -->
diff --git a/index.php b/index.php
index b5c918f..a3f91a9 100644
--- a/index.php
+++ b/index.php
@@ -26,8 +26,6 @@
$Theme->setPageAuthor("Eclipse Foundation, Inc.");
$Theme->setTitle("Enabling Open Innovation & Collaboration");
-$featured_story = $Theme->getFeaturedStory('story');
-
ob_start();
?>
<div class="jumbotron featured-jumbotron">