-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic_page_children_list.php
42 lines (33 loc) · 1.14 KB
/
basic_page_children_list.php
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
<?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>
<span class='bodytext'><?=$page->body; ?> </span>
<div class='row padding-bottom-xs padding-top-xs'>
<? $matches = $page->children->find("sort=sort");
foreach($matches as $match) {
$image = $match->image;
if ($image) {
$img_sized = $image->size(300, 200);
}
echo "
<div class='col-sm-12 col-xs-12 padding-bottom-md'>
<div class='col-sm-3'>
<a class='' href='{$match->url}' title='{$match->title}'>
<img src='{$img_sized->url}' class='img-responsive' alt='{$match->title}'></a></div>
<div class='col-sm-9'>
<a class='black' href='{$match->url}' title='{$match->title}'><h4>{$match->title}</h4></a><div class=''>{$match->summary}</div>
</div>
";
}
?></div>
<? include("./inc/inc_files.php"); ?>
</div></div>
<? include("./inc/nav_well.php"); ?>
</div>
<? include("./inc/foot.php");