| <?php |
| /******************************************************************************* |
| * Copyright (c) 2010 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 |
| *******************************************************************************/ |
| |
| /* |
| * This script assumes that it is being included by another script. We |
| * assume that the $App variable has already been defined. |
| */ |
| require_once ($_SERVER ['DOCUMENT_ROOT'] . "/projects/classes/Review.class.php"); |
| $reviews = getreviews ('complete', 6); |
| |
| print '<div class="block-box"><h3>Recent Activity <a href="/projects/reviews-rss.php"><i class="fa fa-rss"></i></a></h3><div class="content">'; |
| print '<ul class="list-unstyled reset">'; |
| |
| /** @var \Review $review */ |
| foreach ( $reviews as $review ) { |
| |
| print '<li>' . $review->asHtml() . '</li>'; |
| } |
| |
| print '</ul>'; |
| print '</div></div>'; |