layout page

This commit is contained in:
Beth Parker 2017-10-30 22:05:34 -05:00
parent 0e7e8a6d41
commit 5451a3ecee
3 changed files with 22 additions and 2 deletions

View file

@ -0,0 +1,12 @@
<?php
foreach($data as $category => $items){
echo "<div class='category'>".$category."</div>";
foreach($items as $item => $value){
echo "<div class='service'>";
echo "<a class='service_link' href='https://".$item.".actcur.com'>";
echo "<span class='service_name' title='".$value['summary']"'>".$value['name']."</span>"
echo "</a>";
echo "</div>";
}
}
?>

View file

@ -1 +1,5 @@
authenticated
<?php
include "../includes/retrieve_data.php";
$data = retrieve_data("/srv/http/sitedata.yml",false);
include "../includes/layout.php"
?>

View file

@ -1 +1,5 @@
unauthenticated
<?php
include "../includes/retrieve_data.php";
$data = retrieve_data("/srv/http/sitedata.yml",true);
include "../includes/layout.php"
?>