|
Revision 2, 0.9 kB
(checked in by sven, 3 years ago)
|
importing elgg-0.1.1a
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
$body = <<< END |
|---|
| 6 |
|
|---|
| 7 |
<h2>Folder name</h2> |
|---|
| 8 |
<h3>Subfolders</h3> |
|---|
| 9 |
|
|---|
| 10 |
END; |
|---|
| 11 |
$body .= run("templates:draw", array( |
|---|
| 12 |
'context' => 'folder', |
|---|
| 13 |
'username' => "test", |
|---|
| 14 |
'url' => "", |
|---|
| 15 |
'ident' => 0, |
|---|
| 16 |
'name' => "Subfolder", |
|---|
| 17 |
'icon' => "/_files/folder.png" |
|---|
| 18 |
) |
|---|
| 19 |
); |
|---|
| 20 |
|
|---|
| 21 |
$body .= run("templates:draw", array( |
|---|
| 22 |
'context' => 'file', |
|---|
| 23 |
'username' => "test", |
|---|
| 24 |
'title' => "A sample file", |
|---|
| 25 |
'ident' => 0, |
|---|
| 26 |
'folder' => 0, |
|---|
| 27 |
'description' => "This is a file", |
|---|
| 28 |
'originalname' => "filename", |
|---|
| 29 |
'url' => "#", |
|---|
| 30 |
'icon' => "/_files/file.png" |
|---|
| 31 |
) |
|---|
| 32 |
); |
|---|
| 33 |
|
|---|
| 34 |
$run_result .= run("templates:draw", array( |
|---|
| 35 |
'context' => 'infobox', |
|---|
| 36 |
'name' => 'Files and folders', |
|---|
| 37 |
'contents' => $body |
|---|
| 38 |
) |
|---|
| 39 |
); |
|---|
| 40 |
|
|---|
| 41 |
?> |
|---|