You are here

simpleads_ajax_call.tpl.php in SimpleAds 7

SimpleAds template for AJAX callback.

File

templates/simpleads_ajax_call.tpl.php
View 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>