| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $template; |
|---|
| 4 |
global $template_definition; |
|---|
| 5 |
|
|---|
| 6 |
$template_definition[] = array( |
|---|
| 7 |
'id' => 'pageshell', |
|---|
| 8 |
'name' => "Page Shell", |
|---|
| 9 |
'description' => "The main page shell, including headers and footers.", |
|---|
| 10 |
'glossary' => array( |
|---|
| 11 |
'{{metatags}}' => 'Page metatags (mandatory) - must be in the "head" portion of the page', |
|---|
| 12 |
'{{title}}' => 'Page title', |
|---|
| 13 |
'{{menu}}' => 'Menu', |
|---|
| 14 |
'{{mainbody}}' => 'Main body', |
|---|
| 15 |
'{{sidebar}}' => 'Sidebar' |
|---|
| 16 |
) |
|---|
| 17 |
); |
|---|
| 18 |
|
|---|
| 19 |
$template['pageshell'] = <<< END |
|---|
| 20 |
|
|---|
| 21 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 22 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 23 |
<head> |
|---|
| 24 |
<title>{{title}}</title> |
|---|
| 25 |
{{metatags}} |
|---|
| 26 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
|---|
| 27 |
</head> |
|---|
| 28 |
|
|---|
| 29 |
<body> |
|---|
| 30 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="header"> |
|---|
| 31 |
<tr> |
|---|
| 32 |
<td width="4%"><img src="/_templates/default/graphics/leaf.jpg" width="71" height="50" alt="" border="0"></td><td><a href="{{url}}" >{{title}}</a></td><td width="4%"> </td> |
|---|
| 33 |
</tr> |
|---|
| 34 |
</table> |
|---|
| 35 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="menubar"> |
|---|
| 36 |
<tr> |
|---|
| 37 |
<td width="4%"> </td><td align="left" valign="top">{{messageshell}}</td><td width="4%"> </td> |
|---|
| 38 |
</tr> |
|---|
| 39 |
</table> |
|---|
| 40 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|---|
| 41 |
<tr> |
|---|
| 42 |
<td colspan="5"> |
|---|
| 43 |
|
|---|
| 44 |
</td> |
|---|
| 45 |
</tr> |
|---|
| 46 |
<tr> |
|---|
| 47 |
<td width="4%" align="left" valign="top" > </td> |
|---|
| 48 |
<td align="70%" align="right" valign="top" class="mainbody">{{mainbody}}</td> |
|---|
| 49 |
<td width="2%" align="right" valign="top" > </td> |
|---|
| 50 |
<td width="20%" align="center" valign="top" class="sidebar">{{sidebar}}<br />{{menu}}</td> |
|---|
| 51 |
<td width="4%" align="right" valign="top" > </td> |
|---|
| 52 |
</tr> |
|---|
| 53 |
</table><br /> |
|---|
| 54 |
<table width="100%" border="0" cellpadding="4" cellspacing="0" class="footer"> |
|---|
| 55 |
<tr> |
|---|
| 56 |
<td colspan="5" align="center" valign="middle"> |
|---|
| 57 |
<p><a href="http://elgg.net/development/index.php"><img src="/_templates/default/graphics/elgg.powered.png" width="80" height="15" alt="Powered by Elgg" border="0" /></a></p> |
|---|
| 58 |
<p> |
|---|
| 59 |
Copyright © 2004<br /> |
|---|
| 60 |
<a href="/content/faq.php">FAQ</a> | <a href="/content/privacy.php">Privacy Policy</a> |
|---|
| 61 |
</p> |
|---|
| 62 |
</td> |
|---|
| 63 |
</tr> |
|---|
| 64 |
</table> |
|---|
| 65 |
</body> |
|---|
| 66 |
</html> |
|---|
| 67 |
|
|---|
| 68 |
END; |
|---|
| 69 |
|
|---|
| 70 |
$template_definition[] = array( |
|---|
| 71 |
'id' => 'css', |
|---|
| 72 |
'name' => "Stylesheet", |
|---|
| 73 |
'description' => "The Cascading Style Sheet for the template.", |
|---|
| 74 |
'glossary' => array() |
|---|
| 75 |
); |
|---|
| 76 |
|
|---|
| 77 |
$template['css'] = <<< END |
|---|
| 78 |
|
|---|
| 79 |
/* |
|---|
| 80 |
|
|---|
| 81 |
Swish template CSS |
|---|
| 82 |
|
|---|
| 83 |
*/ |
|---|
| 84 |
|
|---|
| 85 |
body { |
|---|
| 86 |
margin: 0px; |
|---|
| 87 |
background-color: #ffffff; |
|---|
| 88 |
font-family: arial, helvetica; |
|---|
| 89 |
font-size: 9pt; |
|---|
| 90 |
line-height: 1.2ems; |
|---|
| 91 |
margin: 0px; |
|---|
| 92 |
padding: 0px; |
|---|
| 93 |
} |
|---|
| 94 |
|
|---|
| 95 |
h1 { |
|---|
| 96 |
13pt; |
|---|
| 97 |
} |
|---|
| 98 |
h2 { |
|---|
| 99 |
12pt; |
|---|
| 100 |
} |
|---|
| 101 |
h3 { |
|---|
| 102 |
11pt; |
|---|
| 103 |
} |
|---|
| 104 |
form { |
|---|
| 105 |
margin: 0px; |
|---|
| 106 |
padding: 0px; |
|---|
| 107 |
} |
|---|
| 108 |
|
|---|
| 109 |
/* Page top */ |
|---|
| 110 |
|
|---|
| 111 |
.header { |
|---|
| 112 |
font-size:16px; |
|---|
| 113 |
padding:8px; |
|---|
| 114 |
background-color: #ffffff; |
|---|
| 115 |
|
|---|
| 116 |
} |
|---|
| 117 |
|
|---|
| 118 |
.header a { |
|---|
| 119 |
text-decoration:none; |
|---|
| 120 |
color:#7E7D7D; |
|---|
| 121 |
font-family: arial, georgia, "times new roman", palatino; |
|---|
| 122 |
font-size: 26pt; |
|---|
| 123 |
text-transform: lowercase; |
|---|
| 124 |
} |
|---|
| 125 |
|
|---|
| 126 |
.messages { |
|---|
| 127 |
background-color: #000000; |
|---|
| 128 |
color: #ffffff; |
|---|
| 129 |
padding: 0px; |
|---|
| 130 |
margin: 0px; |
|---|
| 131 |
} |
|---|
| 132 |
.messages ul { |
|---|
| 133 |
padding: 0px; |
|---|
| 134 |
margin: 0px; |
|---|
| 135 |
list-style-type: none; |
|---|
| 136 |
} |
|---|
| 137 |
.menubar { |
|---|
| 138 |
background-color: #ebebeb; |
|---|
| 139 |
text-align: justify; |
|---|
| 140 |
} |
|---|
| 141 |
.menubar a { |
|---|
| 142 |
padding: 3px; |
|---|
| 143 |
text-decoration: none; |
|---|
| 144 |
margin: 1px; |
|---|
| 145 |
background-color: #F3C886; |
|---|
| 146 |
color: #ffffff; |
|---|
| 147 |
display: block; |
|---|
| 148 |
} |
|---|
| 149 |
.menubar a:hover { |
|---|
| 150 |
background-color: #C95922; |
|---|
| 151 |
} |
|---|
| 152 |
.actionbox { |
|---|
| 153 |
background-color: #FFFFFF; |
|---|
| 154 |
border: 1px; |
|---|
| 155 |
border-color: #000000; |
|---|
| 156 |
border-style: solid; |
|---|
| 157 |
padding: 7px; |
|---|
| 158 |
|
|---|
| 159 |
} |
|---|
| 160 |
.actionbox caption { |
|---|
| 161 |
background-color: #ebebeb; |
|---|
| 162 |
color: #000000; |
|---|
| 163 |
vertical-align: middle; |
|---|
| 164 |
text-align: center; |
|---|
| 165 |
padding: 4px; |
|---|
| 166 |
font-weight: bold; |
|---|
| 167 |
border: 1px; |
|---|
| 168 |
border-color: #000000; |
|---|
| 169 |
border-style: solid; |
|---|
| 170 |
border-bottom: 0px; |
|---|
| 171 |
font-size: 1.1em; |
|---|
| 172 |
|
|---|
| 173 |
} |
|---|
| 174 |
.infobox { |
|---|
| 175 |
border:1px; |
|---|
| 176 |
border-color:#5F5E5E; |
|---|
| 177 |
border-style:solid; |
|---|
| 178 |
} |
|---|
| 179 |
|
|---|
| 180 |
.infobox caption |
|---|
| 181 |
{ |
|---|
| 182 |
font-weight: bold; |
|---|
| 183 |
padding: 10px; |
|---|
| 184 |
color:#000000; |
|---|
| 185 |
} |
|---|
| 186 |
.mainbody .infobox { |
|---|
| 187 |
background-color: #ffffff; |
|---|
| 188 |
padding: 12px; |
|---|
| 189 |
} |
|---|
| 190 |
.mainbody .infobox caption { |
|---|
| 191 |
|
|---|
| 192 |
/*background-color: #ebebeb; |
|---|
| 193 |
color: #000000;*/ |
|---|
| 194 |
display: none; |
|---|
| 195 |
|
|---|
| 196 |
} |
|---|
| 197 |
.sidebar .infobox { |
|---|
| 198 |
background-color: #FFFFFF; |
|---|
| 199 |
padding: 7px; |
|---|
| 200 |
border:1px; |
|---|
| 201 |
border-color:#5F5E5E; |
|---|
| 202 |
border-style:solid; |
|---|
| 203 |
} |
|---|
| 204 |
.sidebar .infobox caption { |
|---|
| 205 |
background-color: #ebebeb; |
|---|
| 206 |
color: #000000; |
|---|
| 207 |
border:0px; |
|---|
| 208 |
border-top:1px; |
|---|
| 209 |
border-right:1px; |
|---|
| 210 |
border-left:1px; |
|---|
| 211 |
border-color:#5F5E5E; |
|---|
| 212 |
border-style:solid; |
|---|
| 213 |
|
|---|
| 214 |
} |
|---|
| 215 |
.profiletable { |
|---|
| 216 |
padding: 5px; |
|---|
| 217 |
} |
|---|
| 218 |
.profiletable .fieldname { |
|---|
| 219 |
background-color: #ebebeb; |
|---|
| 220 |
color: #000000; |
|---|
| 221 |
padding: 5px; |
|---|
| 222 |
} |
|---|
| 223 |
.profiletable input, .profiletable select, .profiletable textarea |
|---|
| 224 |
{ |
|---|
| 225 |
font-family: verdana; |
|---|
| 226 |
font-size: 8pt; |
|---|
| 227 |
background-color: #E0E8F4; |
|---|
| 228 |
border: 2px; |
|---|
| 229 |
border-style: solid; |
|---|
| 230 |
|
|---|
| 231 |
border-color: #E5B54C; |
|---|
| 232 |
} |
|---|
| 233 |
.profiletable input:hover, |
|---|
| 234 |
.profiletable select:hover, |
|---|
| 235 |
.profiletable textarea:hover |
|---|
| 236 |
{ |
|---|
| 237 |
border-color: #000000; |
|---|
| 238 |
} |
|---|
| 239 |
.footer { |
|---|
| 240 |
background-color:#ffffff; |
|---|
| 241 |
color:#000000; |
|---|
| 242 |
font-size: 12px; |
|---|
| 243 |
} |
|---|
| 244 |
|
|---|
| 245 |
.footer a { |
|---|
| 246 |
color:#000000; |
|---|
| 247 |
text-decoration:underline; |
|---|
| 248 |
font-size: 12px; |
|---|
| 249 |
font: Georgia, Verdana, Arial; |
|---|
| 250 |
|
|---|
| 251 |
} |
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 |
.weblogdateheader { |
|---|
| 255 |
|
|---|
| 256 |
font-size: 0.6ems; |
|---|
| 257 |
} |
|---|
| 258 |
|
|---|
| 259 |
.weblog { |
|---|
| 260 |
border:1px; |
|---|
| 261 |
border-color:#7E7D7D; |
|---|
| 262 |
border-style:dashed; |
|---|
| 263 |
} |
|---|
| 264 |
END; |
|---|
| 265 |
|
|---|
| 266 |
$template_definition[] = array( |
|---|
| 267 |
'id' => 'infobox', |
|---|
| 268 |
'name' => "Information Box", |
|---|
| 269 |
'description' => "A box containing a caption and some text, used extensively throughout the site. For example, the 'friends' box and most page bodies are info boxes. Of course, you can alter this template however you wish - it doesn't need to be an actual box.", |
|---|
| 270 |
'glossary' => array( |
|---|
| 271 |
'{{name}}' => 'The title', |
|---|
| 272 |
'{{contents}}' => 'The contents of the box' |
|---|
| 273 |
) |
|---|
| 274 |
); |
|---|
| 275 |
|
|---|
| 276 |
$template['infobox'] = <<< END |
|---|
| 277 |
|
|---|
| 278 |
<table class="infobox" width="100%"> |
|---|
| 279 |
<caption align="top"> |
|---|
| 280 |
{{name}} |
|---|
| 281 |
</caption> |
|---|
| 282 |
<tr> |
|---|
| 283 |
<td align="left"> |
|---|
| 284 |
{{contents}} |
|---|
| 285 |
</td> |
|---|
| 286 |
</tr> |
|---|
| 287 |
</table><br /> |
|---|
| 288 |
|
|---|
| 289 |
END; |
|---|
| 290 |
|
|---|
| 291 |
$template_definition[] = array( |
|---|
| 292 |
'id' => 'messageshell', |
|---|
| 293 |
'name' => "System message shell", |
|---|
| 294 |
'description' => "A list of system messages will be placed within the message shell.", |
|---|
| 295 |
'glossary' => array( |
|---|
| 296 |
'{{messages}}' => 'The messages' |
|---|
| 297 |
) |
|---|
| 298 |
); |
|---|
| 299 |
|
|---|
| 300 |
$template['messageshell'] = <<< END |
|---|
| 301 |
|
|---|
| 302 |
<table width="100%" class="messages"> |
|---|
| 303 |
<tr> |
|---|
| 304 |
<td> |
|---|
| 305 |
<ul> |
|---|
| 306 |
{{messages}} |
|---|
| 307 |
</ul> |
|---|
| 308 |
</td> |
|---|
| 309 |
</tr> |
|---|
| 310 |
</table> |
|---|
| 311 |
|
|---|
| 312 |
END; |
|---|
| 313 |
|
|---|
| 314 |
$template_definition[] = array( |
|---|
| 315 |
'id' => 'messages', |
|---|
| 316 |
'name' => "Individual system messages", |
|---|
| 317 |
'description' => "Each individual system message.", |
|---|
| 318 |
'glossary' => array( |
|---|
| 319 |
'{{message}}' => 'The system message' |
|---|
| 320 |
) |
|---|
| 321 |
); |
|---|
| 322 |
|
|---|
| 323 |
$template['messages'] = <<< END |
|---|
| 324 |
|
|---|
| 325 |
<li> |
|---|
| 326 |
{{message}} |
|---|
| 327 |
</li> |
|---|
| 328 |
|
|---|
| 329 |
END; |
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 |
$template_definition[] = array( |
|---|
| 333 |
'id' => 'menu', |
|---|
| 334 |
'name' => "Menubar shell", |
|---|
| 335 |
'description' => "A list of menu items will be placed within the menubar shell.", |
|---|
| 336 |
'glossary' => array( |
|---|
| 337 |
'{{menuitems}}' => 'The menu items' |
|---|
| 338 |
) |
|---|
| 339 |
); |
|---|
| 340 |
|
|---|
| 341 |
$template['menu'] = <<< END |
|---|
| 342 |
|
|---|
| 343 |
<table width="100%" class="menubar"> |
|---|
| 344 |
<tr> |
|---|
| 345 |
<td> |
|---|
| 346 |
{{menuitems}} |
|---|
| 347 |
</td> |
|---|
| 348 |
</tr> |
|---|
| 349 |
</table> |
|---|
| 350 |
|
|---|
| 351 |
END; |
|---|
| 352 |
|
|---|
| 353 |
$template_definition[] = array( |
|---|
| 354 |
'id' => 'menuitem', |
|---|
| 355 |
'name' => "Individual menu item", |
|---|
| 356 |
'description' => "This is the template for each individual menu item. A series of these is placed within the menubar shell template.", |
|---|
| 357 |
'glossary' => array( |
|---|
| 358 |
'{{location}}' => 'The URL of the menu item', |
|---|
| 359 |
'{{menu}}' => 'The menu item\'s name' |
|---|
| 360 |
) |
|---|
| 361 |
); |
|---|
| 362 |
|
|---|
| 363 |
$template['menuitem'] = <<< END |
|---|
| 364 |
|
|---|
| 365 |
<a href="{{location}}" class="menuitem">{{name}}</a> |
|---|
| 366 |
|
|---|
| 367 |
END; |
|---|
| 368 |
|
|---|
| 369 |
$template_definition[] = array( |
|---|
| 370 |
'id' => 'databox', |
|---|
| 371 |
'name' => "Data input box (two columns)", |
|---|
| 372 |
'description' => "This is mostly used whenever some input is taken from the user. For example, each of the fields in the profile edit screen is a data input box.", |
|---|
| 373 |
'glossary' => array( |
|---|
| 374 |
'{{name}}' => 'The name for the data we\'re inputting', |
|---|
| 375 |
'{{column1}}' => 'The first item of data', |
|---|
| 376 |
'{{column2}}' => 'The second item of data' |
|---|
| 377 |
) |
|---|
| 378 |
); |
|---|
| 379 |
|
|---|
| 380 |
$template['databox'] = <<< END |
|---|
| 381 |
|
|---|
| 382 |
<table width="95%" class="profiletable" align="center" style="margin-bottom: 3px"> |
|---|
| 383 |
<tr> |
|---|
| 384 |
<td width="20%" class="fieldname"> |
|---|
| 385 |
{{name}} |
|---|
| 386 |
|
|---|
| 387 |
</td> |
|---|
| 388 |
<td width="50%"> |
|---|
| 389 |
{{column1}} |
|---|
| 390 |
</td> |
|---|
| 391 |
<td width="30%"> |
|---|
| 392 |
{{column2}} |
|---|
| 393 |
</td> |
|---|
| 394 |
</tr> |
|---|
| 395 |
</table> |
|---|
| 396 |
|
|---|
| 397 |
END; |
|---|
| 398 |
|
|---|
| 399 |
$template_definition[] = array( |
|---|
| 400 |
'id' => 'databox1', |
|---|
| 401 |
'name' => "Data input box (one column)", |
|---|
| 402 |
'description' => "A single-column version of the data box.", |
|---|
| 403 |
'glossary' => array( |
|---|
| 404 |
'{{name}}' => 'The name of the data we\'re inputting', |
|---|
| 405 |
'{{column1}}' => 'The data itself' |
|---|
| 406 |
) |
|---|
| 407 |
); |
|---|
| 408 |
|
|---|
| 409 |
$template['databox1'] = <<< END |
|---|
| 410 |
|
|---|
| 411 |
<table width="95%" class="profiletable" align="center" style="margin-bottom: 3px"> |
|---|
| 412 |
<tr> |
|---|
| 413 |
<td width="15%" class="fieldname"> |
|---|
| 414 |
{{name}} |
|---|
| 415 |
</td> |
|---|
| 416 |
<td width="85%" style="padding-left: 15px"> |
|---|
| 417 |
{{column1}} |
|---|
| 418 |
</td> |
|---|
| 419 |
</tr> |
|---|
| 420 |
</table> |
|---|
| 421 |
|
|---|
| 422 |
END; |
|---|
| 423 |
|
|---|
| 424 |
$template_definition[] = array( |
|---|
| 425 |
'id' => 'databoxvertical', |
|---|
| 426 |
'name' => "Data input box (vertical)", |
|---|
| 427 |
'description' => "A slightly different version of the data box, used on this edit page amongst other places.", |
|---|
| 428 |
'glossary' => array( |
|---|
| 429 |
'{{name}}' => 'Name of the data we\'re inputting', |
|---|
| 430 |
'{{contents}}' => 'The data itself' |
|---|
| 431 |
) |
|---|
| 432 |
); |
|---|
| 433 |
|
|---|
| 434 |
$template['databoxvertical'] = <<< END |
|---|
| 435 |
|
|---|
| 436 |
<table width="95%" class="profiletable" align="center" style="margin-bottom: 3px"> |
|---|
| 437 |
<tr> |
|---|
| 438 |
<td align="center" class="fieldname"> |
|---|
| 439 |
{{name}} |
|---|
| 440 |
</td> |
|---|
| 441 |
</tr> |
|---|
| 442 |
<tr> |
|---|
| 443 |
<td > |
|---|
| 444 |
{{contents}} |
|---|
| 445 |
</td> |
|---|
| 446 |
</tr> |
|---|
| 447 |
</table> |
|---|
| 448 |
|
|---|
| 449 |
END; |
|---|
| 450 |
|
|---|
| 451 |
?> |
|---|