You are here

simpleads_img_element.tpl.php in SimpleAds 7

SimpleAds Image ad.

Avaialable variables array $ad array $settings array $image_attributes array $link_attributes

File

templates/simpleads_img_element.tpl.php
View source
<?php

/**
 * @file
 * SimpleAds Image ad.
 *
 * Avaialable variables
 * array $ad
 * array $settings
 * array $image_attributes
 * array $link_attributes
 *
 */
?>
<div class="simplead-container image-ad <?php

if (isset($css_attributes)) {
  print $css_attributes;
}
?>">
  <?php

if (!empty($ad['destination_url'])) {
  ?>
    <?php

  print l(theme('image', $image_attributes), $ad['url'], $link_attributes);
  ?>
  <?php

}
else {
  ?>
    <?php

  print theme('image', $image_attributes);
  ?>
  <?php

}
?>
</div>