-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnews_list.php
More file actions
37 lines (29 loc) · 903 Bytes
/
news_list.php
File metadata and controls
37 lines (29 loc) · 903 Bytes
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
<?php $showchildren = "n";
$showsiblings = "n";
$titleoverride = "";
include("./inc/head.php");
?>
<div class="row">
<div class="col-sm-9">
<div class="content-space content-border">
<h2 class='page-title'><?=$page->title; ?></h2>
<?php
$key = 0;
if($page->numChildren) {
foreach($page->children as $feature) {
$date_media = date("M Y", $feature->date_start); // Formating the date correctly
echo "<div class='row padding-bottom-sm'>
<div class='col-sm-2' >{$date_media}</div>
<div class='col-sm-10' ><a href='{$feature->url}' title='{$date_media} - {$feature->title}'>{$feature->title}</a>";
if($feature->title) {
echo "<br />{$feature->summary}";
}
echo "</div></div>";
}
}
?>
</div>
</div>
<? include("./inc/nav_well_root.php"); ?>
</div>
<? include("./inc/foot.php");