Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Weathermap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@
echo ('Click <a href="plugins/Weathermap/editor.php">here to access the editor</a> where you can create and manage maps.');
$directory = 'plugins/Weathermap/output/';
$images = glob($directory . "*.png");
echo('<div class="container">
<ul class="list-inline">');
echo('<div class="row">
<div class="col-md-12">');
foreach($images as $image) {
$overlib = pathinfo($image);
$overlib = $overlib['dirname'] . '/' . substr($overlib['basename'], 0, strrpos($overlib['basename'], '.')) . '.html';
echo('<li><a href="' . $overlib . '"><img class="img-responsive" src="' . $image . '"/></a></li>');
echo('<div class="panel panel-default panel-condensed">
<a href="' . $overlib . '"><img class="img-responsive" src="' . $image . '"/></a></li>
</div>');
}
echo('</ul>
echo('</div>
</div>');
}

?>