daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.             // LOAD DATA
  3.             $string = file_get_contents("../data/sym.json");
  4.             $json_a = json_decode($string, true);
  5.             var_dump($json_a);
  6.             // LOOP FOR TALKS
  7.             foreach ($json_a as $talk_name => $talk_a) {
  8.                 echo "<div class='talk'><div class='time'><img src=" . $PTS . "images/clock.png>" .$talk_a['time'] . "</div><div class='name'><h2>" . $talk_a['title'] . "</h2><i>".$talk_a['speaker']."</i></div></div>";
  9.                 echo "<div class='speaker'>";
  10.                 // loop for avatars
  11.                 echo "</div>";
  12.                 echo "<div class='content'>" . $talk_a['abstract'] . "</div>";
  13.             }
  14.             ?>
RAW Paste Data
Top