1

Update index.php

This commit is contained in:
Evan Pratten 2017-09-10 12:22:13 -04:00 committed by GitHub
parent d7882e4adc
commit 57faada8d8

View File

@ -62,8 +62,12 @@
<div class="rantlist-bg"> <div class="rantlist-bg">
<ul class="rantlist"> <ul class="rantlist">
<?php <?php
$files = glob('content/*.{json}', GLOB_BRACE);
foreach($files as $file) {
//do your work here
$url = './content/test.json';
$url = $file;
$content = file_get_contents($url); $content = file_get_contents($url);
$json = json_decode($content, true); $json = json_decode($content, true);
echo '<li class="rant-comment-row-widget" data-id="829770" data-type="rant"><div class="rantlist-title-text">'; echo '<li class="rant-comment-row-widget" data-id="829770" data-type="rant"><div class="rantlist-title-text">';
@ -73,7 +77,8 @@
echo ' src="'; echo ' src="';
echo $json{src}; echo '" href="'; echo $json{src}; echo '" href="';
echo $json{href}; echo $json{href};
echo '" width=100%></ul></div>' echo '" width=100%></ul></div>';
}
?> ?>