blob: 2847f22f66015d62773b153a4b52720377d330be [file] [log] [blame]
<?php
/**
* Copyright (c) 2018 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Christopher Guindon (Eclipse Foundation)
* Eric Poirier (Eclipse Foundation)
*
* SPDX-License-Identifier: EPL-2.0
*/
?>
<!-- Downloads-item -->
<div class="<?php print $project->getProjectsAttributes('container','class'); ?>" style="<?php print $project->getProjectsAttributes('container','style'); ?>">
<div class="match-height-item">
<span class="downloads-logo vertical-align">
<img height="<?php print $project->getProjectsAttributes('image','height'); ?>" alt="<?php print $project->getTitle(); ?>" src="<?php print $project->getLogo(); ?>?version=2">
</span>
<p class="padding-bottom-20"><?php print $project->getDescription(); ?></p>
</div>
<?php if ($project->getProjectType() === "OpenJDK Runtimes"): ?>
<p><a class="btn btn-primary" href="<?php print $project->getDownloadUrl64Bit(); ?>">Download Now</a></p>
<p><a class="grey-link" href="<?php print $project->getLearnMoreUrl(); ?>">Learn More</a></p>
<?php else: ?>
<p class="visible-xs visible-sm"><a href="<?php print $project->getDownloadUrl64Bit(); ?>" class="btn btn-warning btn-xs">Get it</a></p>
<p class="visible-xs visible-sm downloads-items-hover-box-links"><a href="<?php print $project->getLearnMoreUrl(); ?>">Learn More</a></p>
<div class="downloads-items-hover-box">
<h4 class="downloads-items-header"><?php print $project->getTitle(); ?></h4>
<p class="downloads-items-hover-box-text"><?php print $project->getDescription(); ?></p>
<p><a href="<?php print $project->getDownloadUrl64Bit(); ?>" class="btn btn-warning btn-xs">Get it</a></p>
<p class="downloads-items-hover-box-links"><a href="<?php print $project->getLearnMoreUrl(); ?>">Learn More</a></p>
</div>
<?php endif; ?>
</div>