-
-
Save alexisaguilar/b5ddb619851c37e2d127 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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