aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/shells/walled_garden.php
blob: 74b4f30291e764a0f8ef02efebcebb8f89e09d56 (plain)
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
77
78
<?php
/**
 * 
 */

// Set the content type
header("Content-type: text/html; charset=UTF-8");

// Set title
$site_title = elgg_get_config('sitename');
if (empty($vars['title'])) {
	$title = $site_title;
} else if (empty($site_title)) {
	$title = $vars['title'];
} else {
	$title = $site_title . ": " . $vars['title'];
}

// @todo - move the css below into it's own style-sheet 
// that is called when running as a private network
?>
<html>
<head>
<?php echo elgg_view('page/elements/head', $vars); ?>
	<style type="text/css">
	/* ***************************************
		WalledGarden
	*************************************** */
	.elgg-grid-walledgarden {
		margin:100px auto 0 auto;
		padding:0;
		width:600px;
		text-align: left;
		word-wrap:break-word;
		background: gray;
	}
	
	.elgg-grid-walledgarden > .elgg-col {
		background: white;
	}
	
	.elgg-heading-walledgarden {
		color:#666666;
		margin-top:80px;
		line-height: 1.1em;
	}
	
	.walledgardenlogin h2 {
		color:#666666;
		border-bottom:1px solid #CCCCCC;
		margin-bottom:5px;
		padding-bottom:5px;
	}

		
	</style>
</head>
<body>
<div class="elgg-page elgg-page-walledgarden">
	<div class="elgg-page-messages">
		<?php echo elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); ?>
	</div>
	<div class="elgg-page-body">
		<div class="elgg-inner">
			<div class="elgg-grid elgg-grid-walledgarden">
				<div class="elgg-col elgg-col-1of2">
					<h1 class="elgg-heading-walledgarden">Welcome to:<br /><?php echo $title; ?></h1>
				</div>
				<div class="elgg-col elgg-col-1of2">
					<?php echo $vars['body']; ?>
				</div>
			</div>
		</div>
	</div>
</div>
<?php echo elgg_view('footer/analytics'); ?>
</body>
</html>