| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $template; |
|---|
| 4 |
global $template_definition; |
|---|
| 5 |
|
|---|
| 6 |
$template_definition[] = array( |
|---|
| 7 |
'id' => 'folder', |
|---|
| 8 |
'name' => "Folder", |
|---|
| 9 |
'description' => "Each individual folder", |
|---|
| 10 |
'glossary' => array( |
|---|
| 11 |
'{{username}}' => 'The owner of the folder', |
|---|
| 12 |
'{{name}}' => 'The name of the folder', |
|---|
| 13 |
'{{url}}' => 'The folder\'s URL', |
|---|
| 14 |
'{{menu}}' => 'Menu items for folder owner (edit, delete, etc)', |
|---|
| 15 |
'{{icon}}' => 'The URL of the file\'s icon', |
|---|
| 16 |
'{{keywords}}' => 'Keywords associated with the folder' |
|---|
| 17 |
) |
|---|
| 18 |
); |
|---|
| 19 |
|
|---|
| 20 |
$template['folder'] = <<< END |
|---|
| 21 |
<table> |
|---|
| 22 |
<tr> |
|---|
| 23 |
<td valign="middle"> |
|---|
| 24 |
<a href="{{url}}"> |
|---|
| 25 |
<img src="{{icon}}" width="93" height="90" border="0" alt="" /> |
|---|
| 26 |
</a> |
|---|
| 27 |
</td> |
|---|
| 28 |
<td valign="middle"> |
|---|
| 29 |
<a href="{{url}}">{{name}}</a> <small>{{menu}}</small><br /> |
|---|
| 30 |
<small>{{keywords}}</small |
|---|
| 31 |
</td> |
|---|
| 32 |
</tr> |
|---|
| 33 |
</table> |
|---|
| 34 |
END; |
|---|
| 35 |
|
|---|
| 36 |
$template_definition[] = array( |
|---|
| 37 |
'id' => 'file', |
|---|
| 38 |
'name' => "File", |
|---|
| 39 |
'description' => "Each individual file within a folder", |
|---|
| 40 |
'glossary' => array( |
|---|
| 41 |
'{{url}}' => 'The file\'s URL', |
|---|
| 42 |
'{{originalname}}' => 'Its filename', |
|---|
| 43 |
'{{description}}' => 'A description of the file', |
|---|
| 44 |
'{{title}}' => 'Its title', |
|---|
| 45 |
'{{menu}}' => 'Menu items for file owner (edit, delete, etc)', |
|---|
| 46 |
'{{icon}}' => 'The URL of its icon', |
|---|
| 47 |
'{{keywords}}' => 'Keywords associated with the folder' |
|---|
| 48 |
) |
|---|
| 49 |
); |
|---|
| 50 |
|
|---|
| 51 |
$template['file'] = <<< END |
|---|
| 52 |
|
|---|
| 53 |
<table> |
|---|
| 54 |
<tr> |
|---|
| 55 |
<td> |
|---|
| 56 |
<a href="{{url}}"> |
|---|
| 57 |
<img src="{{icon}}" width="90" height="90" border="0" alt="" /> |
|---|
| 58 |
</a> |
|---|
| 59 |
</td> |
|---|
| 60 |
<td valign="middle"> |
|---|
| 61 |
<a href="{{url}}"><b>{{title}}</b></a> |
|---|
| 62 |
<small>{{menu}}</small><br /> |
|---|
| 63 |
{{description}}<br /> |
|---|
| 64 |
<small>{{originalname}}</small><br /> |
|---|
| 65 |
<small>{{keywords}}</small> |
|---|
| 66 |
</td> |
|---|
| 67 |
</tr> |
|---|
| 68 |
</table> |
|---|
| 69 |
|
|---|
| 70 |
END; |
|---|
| 71 |
|
|---|
| 72 |
?> |
|---|