simpleads_ajax_call.tpl.php in SimpleAds 7
SimpleAds template for AJAX callback.
1 theme call to simpleads_ajax_call.tpl.php
- _simpleads_render_ajax_template in includes/
simpleads.helper.inc - Helper function. Return rendered SimpleAds block template.
File
templates/simpleads_ajax_call.tpl.phpView source
<?php
/**
* @file
* SimpleAds template for AJAX callback.
*/
if (isset($settings['ads_rotation_type']) && $total_ads > 1 && $settings['ads_rotation_type'] > 0) {
?>
<script type="text/javascript">
(function ($) {
$(document).ready(function() {
$("div#<?php
print $settings['block_delta'];
?>").simpleads_rotator({
rotation_type: <?php
print $settings['ads_rotation_type'];
?>,
delay: <?php
print $settings['ads_rotation_delay'] * 1000;
?>,
delta: '<?php
print $settings['block_delta'];
?>'
});
});
}(jQuery));
</script>
<?php
}
?>
<?php
// $content - list of ads
?>
<div id="<?php
print $settings['block_delta'];
?>">
<?php
print $content;
?>
</div>