Created
September 23, 2015 01:50
-
-
Save buchin/10d24979c9abcff11a4e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
$images = json_decode(file_get_contents('http://tools.dojo.cc/api/trends/p19/images'), true); | |
foreach($images as $image){ | |
echo '<a href="http://domain.com/tag/'. str_replace(' ', '-', $image['title']) . '">' . <img src="{{ $image['mediaurl'] }}" alt="{{ $image['title'] }}" width="150" onError="this.onerror=null;this.src='http://cars.usermanual.site/wp-content/uploads/2015/09/loading.gif';"> . '</a>, '; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment