PHP-Code:
<?php foreach ($this->items as $item): ?>
<div class="item">
<a href="<?= specialchars($item['link']) ?>" title="<?= specialchars($item['caption']['text']) ?>" target="_blank">
<?php
$alttext = specialchars($item['caption']['text']);
$imageString = file_get_contents($item['images']['standard_resolution']['url']);
$path = 'files/instagram/'.$item['id'].'.jpg';
file_put_contents($path,$imageString);
echo Image::getHtml(Image::get($path, 400, 400, 'center_center'), $alttext,'class="inst_photo"');
?>
</a>
</div>
<?php endforeach; ?>
Lesezeichen