aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/shells/walled_garden.php
blob: 4677ac9a644752cdab38603fbe05ed9eea521f64 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<?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); ?>
</head>
<body>
	<style type="text/css">
	body {background: white;}
	/* ***************************************
		WalledGarden
	*************************************** */
	#walledgarden_container {
		margin:100px auto 0 auto;
		position:relative;
		padding:0;
		width:563px;
		background: url(<?php echo elgg_get_site_url(); ?>_graphics/walled_garden_background_extend.gif) repeat-y left top;
		text-align: left;
		word-wrap:break-word;
	}
	#walledgarden {
		position: relative;
		padding:0;
		width:563px;
		min-height:230px;
		background: url(<?php echo elgg_get_site_url(); ?>_graphics/walled_garden_background_top.gif) no-repeat left top;
	}
	#walledgarden_bottom {
		margin:0 auto;
		background: url(<?php echo elgg_get_site_url(); ?>_graphics/walled_garden_background_bottom.gif) no-repeat left bottom;
		width:563px;
		height:54px;
		/* position: relative; */
	}
	.walledgardenintro {
		float:left;
		min-height:200px;
		width:223px;
		padding:15px;
		margin:19px 0 0 23px;
	}
	.walledgardenlogin {
		float:left;
		min-height:200px;
		width:223px;
		padding:15px 15px 0 15px;
		margin:19px 0 0 11px;
	}
	.walledgardenintro h1 {
		color:#666666;
		margin-top:80px;
		line-height: 1.1em;
	}
	.walledgardenlogin h2 {
		color:#666666;
		border-bottom:1px solid #CCCCCC;
		margin-bottom:5px;
		padding-bottom:5px;
	}
	.walledgardenlogin form input.login-textarea {
		margin:0 0 10px 0;
		width:210px;
	}
	.walledgardenlogin form label {
		color:#666666;
	}
	.walledgardenlogin .remember_me label {
		font-size:1em;
		font-weight:normal;
	}
	.walledgardenlogin .remember_me {
		display:block;
		float:right;
		margin-left:0;
		margin-top:-34px;
		text-align:right;
		width:100%;
	}
	.walledgardenlogin .lost_password {
		margin-bottom: 10px;
		color:#999999;
	}
	.walledgardenlogin a.forgotten_password_link,
	.walledgardenlogin a.registration_link {
		color:#999999;
	}
	
	/* override default form styles (for when a theme is running) */
	.walledgardenlogin input {
		font: 120% Arial, Helvetica, sans-serif;
		padding: 5px;
		border: 1px solid #cccccc;
		color:#666666;
		background-color: white;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
	}
	.walledgardenlogin textarea {
		font: 120% Arial, Helvetica, sans-serif;
		border: solid 1px #cccccc;
		padding: 5px;
		color:#666666;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
	}
	.walledgardenlogin textarea:focus,
	.walledgardenlogin input[type="text"]:focus {
		border: solid 1px #4690d6;
		background: #e4ecf5;
		color:#333333;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;	
	}
	.walledgardenlogin .elgg-input-password {
		width:200px;
	}
	.walledgardenlogin input.elgg-input-password:focus {
		border: solid 1px #4690d6;
		background-color: #e4ecf5;
		color:#333333;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}
	.walledgardenlogin input[type="password"]:focus {
		border: solid 1px #4690d6;
		background-color: #e4ecf5;
		color:#333333;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}
	.walledgardenlogin .submit_button {
		font-size: 14px;
		font-weight: bold;
		color: white;
		text-shadow:1px 1px 0px black;
		text-decoration:none;
		border: 1px solid #4690d6;
		background-color:#4690d6;
		background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/button_graduation.png);
		background-repeat: repeat-x;
		background-position: left 10px;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		width: auto;
		padding: 2px 4px;
		margin:0 10px 10px 0;
		cursor: pointer;
		-webkit-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40);
		-moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40);
	}
	.walledgardenlogin .submit_button:hover {
		color: white;
		border-color: #0054a7;
		text-decoration:none;
		background-color:#0054a7;
		background-image:  url(<?php echo elgg_get_site_url(); ?>_graphics/button_graduation.png);
		background-repeat:  repeat-x;
		background-position:  left 10px;
	}
	.walledgardenlogin input.action_button {
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		background-color:#cccccc;
		background-image:  url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
		background-repeat:  repeat-x;
		background-position: 0 0;
		border:1px solid #999999;
		color:#333333;
		padding:2px 15px 2px 15px;
		text-align:center;
		font-weight:bold;
		text-decoration:none;
		text-shadow:0 1px 0 white;
		cursor:pointer;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
	}
	.walledgardenlogin input.action_button:hover,
	.walledgardenlogin input.action_button:focus {
		background-position:0 -15px;
		background-image:  url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
		background-repeat:  repeat-x;
		color:#111111;
		text-decoration: none;
		background-color:#cccccc;
		border:1px solid #999999;
	}
	.walledgardenlogin .action_button.elgg-state-disabled  {
		color:#999999;
		padding:2px 7px;
	}
	
	/* override some elgg system message styles */
	#walledgarden_sysmessages {
		position: absolute;
		width:100%;
		text-align: center;
		margin:0 auto;
		top:0;
		z-index:9600;
	}
	#walledgarden_sysmessages #elgg-system-message {
		width: 515px;
		max-width: 515px;
		right:auto;
		margin:30px auto 0 auto;
		position: relative;
	}
	
	
	#lostpassword_form,
	#registration_form {
		right:0;
		position:absolute;
		top:0;
		width:260px;
		background-color: white;
		padding:0;
		background: url(<?php echo elgg_get_site_url(); ?>_graphics/walled_garden_backgroundfull_top.gif) no-repeat left top;
		height:auto;
	}
	#hiddenform_body {
		padding:30px 40px 0 40px;
		height:auto;
	}
	#hiddenform_bottom {
		margin:0 auto;
		background: url(<?php echo elgg_get_site_url(); ?>_graphics/walled_garden_backgroundfull_bottom.gif) no-repeat left bottom;
		width:563px;
		height:54px;
		position: relative;
	}
	
	#hiddenform_body .cancel_request {
		margin-left:15px;
	}
	
	/* override some visual_captcha styles */
	.walledgardenlogin .visual_captcha_choices  {
		margin:10px 0 0 0;
		padding:0;
		height:60px;
	}
	.walledgardenlogin ul.visual_captcha_choices li img {
		width:50px;
		height:auto;
	}
		
	</style>
	<div id="walledgarden_sysmessages" class="clearfix">
		<?php echo elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); ?>
	</div>
	<div id="walledgarden_container">
		<div id="walledgarden" class="clearfix">
			<div class="walledgardenintro clearfix">
				<h1>Welcome to:<br /><?php echo $title; ?></h1>
			</div>
			<div class="walledgardenlogin clearfix">
				<?php echo $vars['body']; ?>
			</div>
		</div>
		<div id="walledgarden_bottom"></div>
	</div>
</body>
</html>