simpleads_img_element.tpl.php in SimpleAds 7
SimpleAds Image ad.
Avaialable variables array $ad array $settings array $image_attributes array $link_attributes
1 theme call to simpleads_img_element.tpl.php
- _simpleads_render_ajax_template in includes/
simpleads.helper.inc - Helper function. Return rendered SimpleAds block template.
File
templates/simpleads_img_element.tpl.phpView 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>