Skip to content

Instantly share code, notes, and snippets.

@alexisaguilar
Forked from drmmr763/default.php
Last active August 29, 2015 14:21
Show Gist options
  • Save alexisaguilar/b5ddb619851c37e2d127 to your computer and use it in GitHub Desktop.
Save alexisaguilar/b5ddb619851c37e2d127 to your computer and use it in GitHub Desktop.
// no direct access
defined('_JEXEC') or die;
?>
<ul class="latestnews<?php echo $moduleclass_sfx; ?>">
<?php foreach ($list as $item) : ?>
<li>
<a href="<?php echo $item->link; ?>">
<?php echo $item->title; ?></a>
<?php //json decodes the image object and gets the intro image source. ?>
<img src="<?php echo json_decode($item->images)->image_intro; ?>" />
</li>
<?php endforeach; ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment