-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworship-audio.php
More file actions
59 lines (52 loc) · 1.97 KB
/
Copy pathworship-audio.php
File metadata and controls
59 lines (52 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// Turn on Error reporting
// In case the JSON data gets malformed or some such we'll know about it!
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once('./app-code/helper-functions.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require_once('./partials/head-metas.phtml') ?>
<title>Worship Audio Recordings | Emanuel Evangelical Lutheran Church</title>
<?php require_once('./partials/head-includes.phtml') ?>
</head>
<body>
<div class="container layout-v2">
<?php require_once('./partials/masthead-top-nav.phtml') ?>
<div class="row main-content inner-page-content short-content-min-height">
<div class="col-xs-12 col-sm-8">
<h1 class="page-title">Worship Audio Recordings</h1>
<div class="row">
<div class="col-xs-12">
<p>
Emanuel Lutheran Church has started recording its worship services
and providing the audio recordings online!
</p>
</div>
</div>
<div class="audio-file-list-v2">
<?php
$audioFilesJson = file_get_contents('./app-data/audio-files.json');
$audioFiles = json_decode($audioFilesJson, TRUE);
date_sort_descending($audioFiles);
foreach ($audioFiles as $key => $audioFile) {
$fileDateTime = strtotime($audioFile['dateTime']);
$date = date('F j, Y', $fileDateTime);
$time = date('g:i A', $fileDateTime);
$entry = array_merge($audioFile, array('date' => $date, 'time' => $time));
display('./partials/worship-audio-entry-v2.phtml', $entry);
}
?>
</div>
</div>
<div class="col-xs-12 col-sm-4 photo-right no-btm-margin">
<img src="images/who-we-are/emanuel-sign.jpg" alt="Emanuel: God With Us" />
</div>
</div>
<?php require_once('./partials/footer.phtml') ?>
</div>
<?php require_once('./partials/footer-includes.phtml') ?>
</body>
</html>