<?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:
 *   Eric Poirier (Eclipse Foundation) - initial API and implementation
 *   Christopher Guindon (Eclipse Foundation)
 *
 * SPDX-License-Identifier: EPL-2.0
 */

if (basename(__FILE__) == basename($_SERVER['PHP_SELF'])){exit();}
?>

<div class="package-row clearfix zebra promo">
  <div class="row vertical-align-min-md">
    <div class="col-sm-3 icon"><img src="<?php print $this->ad->getImage();?>" width="42" height="42" alt="<?php print $this->ad->getTitle();?>"/></div>
    <div class="col-sm-13 text xs-sm-text-center">
      <h3 class="title">
        <a class="promo-title" href="//eclipse.org/go/<?php print $this->ad->getCampaign() . '?impression_id=' . $impression_id;?>" title="<?php print $this->ad->getTitle();?>"><?php print $this->ad->getTitle();?></a>
      </h3>
      <p><?php print $this->ad->getBody();?></p>
    </div>

    <div class="col-sm-8 download">
      <div class="col-sm-6 downloadLink-icon"><i class="fa fa-download"></i></div>
        <div class="col-xs-24 col-sm-18 downloadLink-content">
          <div class="text-center">
            <p>
              <a class="orange" href="//eclipse.org/go/<?php print $this->ad->getCampaign() . '?impression_id=' . $impression_id;?>" title="<?php print $this->ad->getTitle();?>">
                <span class="text-center"><i class="fa fa-star"></i></span><br/>Promoted<br/>Download
              </a>
            </p>
          </div>
        </div>
    </div>
  </div>
</div>