File: authors.php

package info (click to toggle)
bagel 0.0~git20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 114,600 kB
  • sloc: cpp: 1,066,140; python: 1,424; ansic: 674; makefile: 237; php: 29; sh: 25
file content (13 lines) | stat: -rw-r--r-- 589 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$authors = "https://raw.github.com/nubakery/bagel/master/doc/authors.json";
$file = file_get_contents($authors);
$json = json_decode($file, true);
echo '<ul>';
foreach ($json as $name) {
    echo '<li style="margin-top:10px"><strong>'.$name['name'].' '.$name['surname'] .'</strong> ('.$name['start'].'&ndash;'.$name['end'].') ';
    echo ($name['affiliation']==""?'':$name['affiliation'].'<br />');
    echo ($name['email']==""?'':$name['email']).'</li>';
}
echo '</ul>';
echo '<div style="margin-top:30px">Generated from bagel/doc/<a href="'.$authors.'">authors.json</a></div>';
?>