<html lang="en"><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, minimumscale=1.0, maximum-scale=1.0"> <title>RetryLife Community</title> <style> body { font-family: Roboto; margin: 0; padding: 0; background-image: url("../img/Background.png"); background-size: 100% 100%; } .rant-top-bar { background-color:white; } </style> <link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet" type="text/css"> <link href="./style.css" rel="stylesheet" type="text/css"> <link href="https://devrant.io/static/devrant/css/font-style.css?v=5" rel="stylesheet" type="text/css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script> <script src="https://devrant.io/static/devrant/js/script.js?v=23"></script> <script src="https://devrant.io/static/devrant/js/js.cookie-2.1.1.min.js"></script> <script src="https://devrant.io/static/devrant/js/landing.js?v=5"></script> </head> <body > <div class="container"> <div class="interior-centered"> <div class="interior-content" style="min-height: 804px;"> <div class="body-col1"> <h1>RetryLife</h1> </div> <div class="body-col2 page-feed"> <div class="rantlist-bg"> <ul class="rantlist"> <?php $files = glob('content/*.{json}', GLOB_BRACE); foreach($files as $file) { //do your work here $url = $file; $content = file_get_contents($url); $json = json_decode($content, true); echo '<li class="rant-comment-row-widget" data-id="829770" data-type="rant"><div class="rantlist-title-text">'; echo $json{title}; echo '</div> <'; echo $json{type}; echo ' src="'; echo $json{src}; echo '" href="'; echo $json{href}; echo '" width=100%></ul></div>'; } ?> </div> <div class="clearfix"></div> </div> </div> </div> <!-- end container --> </body></html>