-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnews_conference.php
More file actions
76 lines (62 loc) · 2.32 KB
/
news_conference.php
File metadata and controls
76 lines (62 loc) · 2.32 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
$showchildren = "n";
$showsiblings = "n";
$titleoverride = "";
include("./inc/head.php");
$image = $page->image;
if ($image) {
$img_sized = $image->size(600);
$img = "<div class='pull-right col-sm-6'>
<img src='{$img_sized->url}' class='img-responsive thumbnail' alt='{$page->image->description}'>
</div>";
}
$date_start = date("M j Y", $page->date_start); // Formating the date correctly
$date_end = date("M j Y", $page->date_end); // Formating the date correctly
if ($date_end == $date_start) { unset($date_end); }
$event_time_start = date("g:i A", $page->date_start); // Formating the date correctly
$event_time_end = date("g:i A", $page->date_end); // Formating the date correctly
?>
<div class="row">
<div class="col-sm-9">
<div class="content-space content-border"><h2 class='page-title'><?=$page->title; ?></h2>
<h4 class="margin-xs">
<?
$tempkey = "0"; // This tempkey to zero
$tempcount = $page->relate_event_type->count(); // This checks how many events types are in the array
foreach($page->relate_event_type as $child) {
$tempkey++; // This increments the tempkey above
echo $child->title;
if($tempcount > $tempkey) { echo " | "; } // This checks to see if the event key is less then acount
}
?>
~ <?=$date_start; ?> (<?=$event_time_start; ?>) <span class="text-muted">to</span> <?=$date_end; ?> (<?=$event_time_end; ?>)</h4>
<hr />
<div class="row">
<div class="col-sm-6">
<?=$page->event_location; ?>
<div class="text-muted">
<?=$page->mapmarker->address; ?>
</div>
<hr />
<label>Date</label> <?=$date_start; ?> (<?=$event_time_start; ?>) <span class="text-muted">to</span> <?=$date_end; ?> (<?=$event_time_end; ?>)<br />
<? if($page->webaddress) { ?>
<label>Website</label> <?=$page->url_website; ?>
<? } ?>
</div>
<div class="col-sm-6">
<?
$mapmarker = $modules->get('MarkupGoogleMap');
echo $mapmarker->render($page, 'mapmarker');
?>
</div>
</div>
<hr />
<?=$img; ?>
<span class='bodytext'><?=$page->body; ?> </span>
<? include("./inc/inc_webaddress.php"); ?>
<? include("./inc/inc_files.php"); ?>
</div></div>
<? include("./inc/nav_well_root.php"); ?>
<? include("./inc/nav_well_events.php"); ?>
</div>
<? include("./inc/foot.php");