1
0

Forgot the image block html template

This commit is contained in:
Tim Almdal 2009-12-22 20:02:45 -08:00
parent ab3655ff37
commit 32a80e5d7f

View File

@ -0,0 +1,17 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script>
$("#image_block").ready(function() {
setTimeout("reloadRandomImage();", 10000); // Change the random image block
});
function reloadRandomImage() {
$.get("/g3_client/index.php/g3_client/block/random", function(data, textStatus) {
$("#image_block").html(data);
});
}
</script>
<h3>Random Image</h3>
<a href="<?= $path ?>">
<img src="<?= $src ?>" alt="<?= $title ?>" />
</a>
<p><?= $title ?></p>